diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index acdabbf..dc12ee1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,11 +1,6 @@ name: Update data on: - push: - branches: [ main ] - pull_request: - branches: - - main schedule: - cron: "0 8 * * *" workflow_dispatch: @@ -21,6 +16,8 @@ jobs: with: node-version: 15.x - run: node generate.js + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Commit & Push Generated Data run: | git config --local user.email "actions@github.com" diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..68f394d --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @github/primer-reviewers diff --git a/README.md b/README.md index dcab746..9edb38a 100644 --- a/README.md +++ b/README.md @@ -2,100 +2,106 @@ GitHub's Web Component collection. -We have 16 open source custom elements: +We have 17 open source custom elements: ### [github/auto-check-element](https://github.com/github/auto-check-element) An input element that validates its value with a server endpoint. -[Link](https://github.com/github/auto-check-element) +[Repository](https://github.com/github/auto-check-element) | [Example](https://github.github.com/auto-check-element/examples/) ### [github/auto-complete-element](https://github.com/github/auto-complete-element) Auto-complete input values from server search results. -[Link](https://github.com/github/auto-complete-element) +[Repository](https://github.com/github/auto-complete-element) | [Example](https://github.github.com/auto-complete-element/examples/) ### [github/clipboard-copy-element](https://github.com/github/clipboard-copy-element) Copy element text content or input values to the clipboard. -[Link](https://github.com/github/clipboard-copy-element) +[Repository](https://github.com/github/clipboard-copy-element) | [Example](https://github.github.io/clipboard-copy-element/examples/) ### [github/details-dialog-element](https://github.com/github/details-dialog-element) A modal dialog that's opened with <details>. -[Link](https://github.com/github/details-dialog-element) +[Repository](https://github.com/github/details-dialog-element) | [Example](https://github.github.io/details-dialog-element/example/index.html) ### [github/details-menu-element](https://github.com/github/details-menu-element) A menu opened with <details>. -[Link](https://github.com/github/details-menu-element) +[Repository](https://github.com/github/details-menu-element) | [Example](https://github.github.io/details-menu-element/examples) ### [github/file-attachment-element](https://github.com/github/file-attachment-element) Attach files via drag and drop or file input. -[Link](https://github.com/github/file-attachment-element) +[Repository](https://github.com/github/file-attachment-element) | [Example](https://github.github.com/file-attachment-element/examples/) ### [github/filter-input-element](https://github.com/github/filter-input-element) Display elements in a subtree that match filter input text. -[Link](https://github.com/github/filter-input-element) +[Repository](https://github.com/github/filter-input-element) | [Example](https://github.github.io/filter-input-element/examples/) ### [github/g-emoji-element](https://github.com/github/g-emoji-element) Backports native emoji characters to browsers that don't support them by replacing the characters with fallback images. -[Link](https://github.com/github/g-emoji-element) +[Repository](https://github.com/github/g-emoji-element) | [Example](https://github.github.io/g-emoji-element/examples/) ### [github/image-crop-element](https://github.com/github/image-crop-element) A custom element for cropping a square image. Returns x, y, width, and height. -[Link](https://github.com/github/image-crop-element) +[Repository](https://github.com/github/image-crop-element) | [Example](https://github.github.io/image-crop-element/examples/) ### [github/include-fragment-element](https://github.com/github/include-fragment-element) A client-side includes tag. -[Link](https://github.com/github/include-fragment-element) +[Repository](https://github.com/github/include-fragment-element) | [Example](https://github.github.io/include-fragment-element/examples) ### [github/markdown-toolbar-element](https://github.com/github/markdown-toolbar-element) Markdown formatting buttons for text inputs. -[Link](https://github.com/github/markdown-toolbar-element) +[Repository](https://github.com/github/markdown-toolbar-element) | [Example](https://github.github.com/markdown-toolbar-element/examples/) + +### [github/relative-time-element](https://github.com/github/relative-time-element) + +Web component extensions to the standard <time> element. + +[Repository](https://github.com/github/relative-time-element) | [Example](https://github.github.io/relative-time-element/examples/) ### [github/remote-input-element](https://github.com/github/remote-input-element) An input element that sends its value to a server endpoint and renders the response body. -[Link](https://github.com/github/remote-input-element) +[Repository](https://github.com/github/remote-input-element) | [Example](https://github.github.io/remote-input-element/examples) ### [github/tab-container-element](https://github.com/github/tab-container-element) An accessible tab container element with keyboard support. -[Link](https://github.com/github/tab-container-element) +[Repository](https://github.com/github/tab-container-element) | [Example](https://github.github.com/tab-container-element/examples/) ### [github/task-lists-element](https://github.com/github/task-lists-element) Drag and drop task list items. -[Link](https://github.com/github/task-lists-element) +[Repository](https://github.com/github/task-lists-element) | [Example](https://github.github.io/task-lists-element/examples/) ### [github/text-expander-element](https://github.com/github/text-expander-element) Activates a suggestion menu to expand text snippets as you type. -[Link](https://github.com/github/text-expander-element) +[Repository](https://github.com/github/text-expander-element) | [Example](http://github.github.io/text-expander-element/examples) -### [github/time-elements](https://github.com/github/time-elements) +### [github/typing-effect-element](https://github.com/github/typing-effect-element) -Web component extensions to the standard <time> element. +A custom element that shows text as if it were being typed -[Link](https://github.com/github/time-elements) +[Repository](https://github.com/github/typing-effect-element) | [Example](https://github.github.com/typing-effect-element/examples/) diff --git a/bower.json b/bower.json index c0ae04b..fbb349c 100644 --- a/bower.json +++ b/bower.json @@ -19,11 +19,11 @@ "image-crop-element": "github/image-crop-element", "include-fragment-element": "github/include-fragment-element", "markdown-toolbar-element": "github/markdown-toolbar-element", + "relative-time-element": "github/relative-time-element", "remote-input-element": "github/remote-input-element", "tab-container-element": "github/tab-container-element", "task-lists-element": "github/task-lists-element", "text-expander-element": "github/text-expander-element", - "remote-input-element": "github/remote-input-element", - "time-elements": "github/time-elements" + "typing-effect-element": "github/typing-effect-element" } } \ No newline at end of file diff --git a/generate.js b/generate.js index 41cf3ab..5dda923 100755 --- a/generate.js +++ b/generate.js @@ -16,6 +16,10 @@ function escape(str) { function json(url) { return new Promise((resolve, reject) => { + if (!process.env['GITHUB_TOKEN']) { + return reject(new Error('GITHUB_TOKEN is not defined')) + } + const req = request(url, { headers: { 'User-Agent': `nodejs ${process.version}`, @@ -67,12 +71,16 @@ We have ${repos.length} open source custom elements: for (const repo of repos) { bowerJson.dependencies[repo.name] = repo.full_name packageJson.dependencies[`@${repo.full_name}`] = '*' + let exampleLink = ''; + if (repo.homepage) { + exampleLink = ` | [Example](${repo.homepage})` + } readme += ` ### [${escape(repo.full_name)}](${repo.html_url}) ${escape(repo.description)} -[Link](${repo.html_url}) +[Repository](${repo.html_url})${exampleLink} ` } readme += readFileSync('readme.tail.md', 'utf-8') diff --git a/package.json b/package.json index dccece3..68fa6ff 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,11 @@ "@github/image-crop-element": "*", "@github/include-fragment-element": "*", "@github/markdown-toolbar-element": "*", + "@github/relative-time-element": "*", "@github/remote-input-element": "*", "@github/tab-container-element": "*", "@github/task-lists-element": "*", "@github/text-expander-element": "*", - "@github/time-elements": "*" + "@github/typing-effect-element": "*" } } \ No newline at end of file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy