9 Commits

Author SHA1 Message Date
Oliver Dunk
d2296fac85 Update dependencies (#1096)
Updates a nunber of dependencies in a single PR. These were
suggested by dependabot but updating them individually would
mean the reposistory would be in a broken state until everything
had merged.

I'm not personally a huge fan of lowercasing doctype, but
Prettier has taken an opinionated stance here and there is not a
way to disable it:

https://github.com/prettier/prettier/issues/15096
2024-02-20 12:53:23 +01:00
Xuezhou Dai
45bbd8d68d Update description fields for all samples (#994)
* Update `action` sample

* Update `alarms` sample

* Update `bookmarks` sample

* Update `browsingData` sample

* Update `contentSettings` sample

* Update `cookies/cookie-clearer` sample

* Update `debugger` sample

* Update wasm functional sample

* Update `functional/cookbook.geolocation-contentscript` sample

* Update `cookbook.geolocation-offscreen` sample

* Update `cookbook.geolocation-popup` sample

* Update `cookbook.offscreen-clipboard-write` sample

* Update `cookbook.offscreen-dom` sample

* Fix browsingData description

* Fix bookmarks description

* Update offscreen document descriptions

* Update descriptions

* Update browsingData description

* Update descriptions for all api samples

* Update descriptions for cookbook samples

* Update api-samples/browsingData/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/action/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/contextMenus/basic/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/cookies/cookie-clearer/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/debugger/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/sample.favicon-cs/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update functional-samples/cookbook.sidepanel-site-specific/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/devtools/inspectedWindow/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Apply suggestions from code review

Co-authored-by: Joe Medley <jmedley@google.com>

* Update wasm samples description

* Update description

* Update functional-samples/sample.co2meter/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Apply suggestions from code review

---------

Co-authored-by: Joe Medley <jmedley@google.com>
Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
2023-08-17 18:19:42 +01:00
Xuezhou Dai
a3966b4d92 Add readme files to existing samples & fix typos (#981)
* Add `Running this extension` section

* Change title

* Fix title typo

* Fix wrong operation

* Update `Running this extension` section

* Add `Running this extension` section
2023-07-17 10:05:43 -06:00
IanStanion-google
05b8106ce5 Adds readme files for every mv3 sample (#973)
* Adds readme files for every mv3 sample

* Update api-samples/alarms/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/alarms/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/omnibox/new-tab-search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/contextMenus/global_context_search/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/cookies/cookie-clearer/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/default_command_override/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/il8n/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/il8n/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/default_command_override/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/favicon/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/favicon/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/override/blank_ntp/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/fontSettings/fontSettings Basic/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update README.md

* Update api-samples/fontSettings/fontSettings Basic/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Updates omnibox sample with small clarity improvement

---------

Co-authored-by: Joe Medley <jmedley@google.com>
2023-06-30 14:13:53 -04:00
Benjamin Lörincz
dc5d34f0f7 pretty print (#895)
* added json for prettier, npm run prettier in lint-staged
2023-05-01 11:29:59 -04:00
Benjamin Lörincz
688fa932dd removed unused variables, cleanup (#905) 2023-05-01 10:00:36 -04:00
IanStanion-google
6b334ca8d1 Added Basic contextMenus sample (#859)
* Added Basic contextMenus sample

* Updated license header

* Update sample.js

* Update api-samples/contextMenus/basic/sample.js

Co-authored-by: Oliver Dunk <oliverdunk@google.com>

* Update api-samples/contextMenus/basic/sample.js

Co-authored-by: Oliver Dunk <oliverdunk@google.com>

* Update sample.js

* Update sample.js

* Create README.md

* Update api-samples/contextMenus/basic/README.md

Co-authored-by: Oliver Dunk <oliverdunk@google.com>

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2023-04-28 09:58:57 -04:00
Sebastian Benz
dc2174377a Add prettier and eslint (#831)
* Ignores archived samples
* Uses eslint/recommended rules
* Runs prettier and eslint (including --fix) pre-commit via husky
* Adds new npm scripts: 'lint', 'lint:fix' and 'prettier'
* Does not lint inline js code
* Fix all prettier and eslint errors
* Add custom prettier rules
* Apply custom prettier rules
* Update readme to explain how to setup the repo
* addressed comments
2023-02-22 13:25:39 +01:00
Oliver Dunk
5bf419b385 Reorganize directory structure (#825)
* Remove docs folder.

This was a redirect from a GitHub pages site that does not appear
to be in use.

* Rename api folder to api-samples.

* Move examples to functional-samples folder.

* Move cookbook sample to functional-samples.

* Move tutorials to functional-samples folder.

* Move mv2 and apps folders to _archive.

* Rename tools folder to .repo.

* Move reference folder to functional-samples.

* Update README.

Update README with new relative links for reorg.

* Update README.md

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>

---------

Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
2023-02-03 10:58:04 -06:00