Skip to content

Commit 3cea3e4

Browse files
committed
Streamline all templates
1 parent fd0a059 commit 3cea3e4

287 files changed

Lines changed: 915 additions & 348 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 8 additions & 8 deletions

examples/action-locales/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
3-
"name": "@extension-js/action-locales",
3+
"name": "action-locales",
44
"description": "Action popup example demonstrating i18n with _locales and message placeholders.",
5-
"version": "0.0.1",
5+
"version": "1.0.0",
66
"license": "MIT",
77
"type": "module",
88
"author": {

examples/action-locales/src/action/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
console.log('[From the action popup context] Hello regular page!')
12
if (
23
import.meta.env.EXTENSION_PUBLIC_BROWSER === 'firefox' ||
34
import.meta.env.EXTENSION_PUBLIC_BROWSER === 'firefox-based'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
console.log(
2+
'[From the background context] Hello from the background worker/script!'
3+
)
14
console.log('Action extension background script running')

examples/action-locales/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/chrome-manifest.json",
33
"chromium:manifest_version": 3,
44
"firefox:manifest_version": 2,
5-
"version": "3.0.0",
5+
"version": "1.0.0",
66
"name": "JavaScript Action Locales Example",
77
"description": "Action popup example demonstrating i18n with _locales and message placeholders.",
88
"default_locale": "en",

examples/action/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
3-
"name": "@extension-js/action",
3+
"name": "action",
44
"description": "Action popup example. Opens a toolbar popup with a simple page.",
5-
"version": "0.0.1",
5+
"version": "1.0.0",
66
"license": "MIT",
77
"type": "module",
88
"author": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console.log('Hello from the browser action page')
1+
console.log('[From the action popup context] Hello regular page!')

examples/action/src/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
console.log('[From the background context] Hello from the background!')
1+
console.log(
2+
'[From the background context] Hello from the background worker/script!'
3+
)

examples/action/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/chrome-manifest.json",
33
"chromium:manifest_version": 3,
44
"firefox:manifest_version": 2,
5-
"version": "3.0.0",
5+
"version": "1.0.0",
66
"name": "JavaScript Action Example",
77
"description": "Action popup example. Opens a toolbar popup with a simple page.",
88
"icons": {

examples/ai-chatgpt/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
3-
"name": "@extension-js/ai-chatgpt",
3+
"name": "ai-chatgpt",
44
"description": "React sidebar with ChatGPT chat. Adds a side panel with a conversational interface powered by the OpenAI SDK.",
5-
"version": "0.0.1",
5+
"version": "1.0.0",
66
"license": "MIT",
77
"type": "module",
88
"author": {

0 commit comments

Comments
 (0)