Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Live demo#1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Live demo #1
Changes from all commits
f02e202ca6d7fcd49de1180ea707c54e804608ec4dc8010e4cb40aa8e50835f11c3ba690fad68c5ce4c643f6790e421311fda050ec7070b3bf5c6de910e9b47f6d4c30a4b8ff0e568a750fbc5b85bea0b0cc8b9239508896dbf6ed46464cd80741cf1e958303974f4280ab333002eac4341d9d15a8a8b490c0991feb25779cdfccd4392c3916ae05bb4b683d3ce791b4cd39de00e016ce877a011b509c08948dd6737add82cb43c8e748ce9e1785c82f0f15b3308e24d4e96ef22cb9454a404611873386b163188e675d49f3d7bd3aba6a2f1bf5d2137639856940f144433a4c49c35ec35b0973604fcacfb133515daef02ed70e4a0b9049d7acb683c7840d5d154ffc93e1c0bc9ecd0b491e921c916358a1520fb40d03e241d4510305a1a5c710aeed76dcb59bd446b857a586baa6893ec7753a8ae54e2b4e533d783d7597759edc08e855baa98a8d18ff342206a4e6a618a98bf30540501b0fde100ae686a8d3ed4d973d150ccb235b83ded08903182f2a0eef3dd31bfbae9ebad6d9cdcdec48f08dbf3aa5136b7d6315e5db8b3397ce76f4cb445d20e0dfb8fadeae70d6ab1bcadb68196cf6011ffb640bc846d06ce58f0d93ace4fd7e48fa5b3ce2ea519c4baad18a920b0ae2b2d1dd4f59939fb6ff5f24426d8be8029959bc695bbd4cd53e6017e26a111cc680e02caf0b70ba48e94b1ab18ca1df6d98eb7e5e90de3a32955ec40034a343dd78f71bbb88e236c1271d13b106e0174d24631a8fca15045551e2f24010b70738e801769f6f4a6691cd617ae2b85c2128aed147585cbe5260c8515787f100cd42554ec3c43117882c6bd67b4b29c5ab6172f6422018614060c795f299c54e3d8905612be567f7a2File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "sourceType": "module", | ||
| "presets": [ | ||
| [ | ||
| "@babel/preset-env", | ||
| { | ||
| "targets": { | ||
| "chrome": 100 | ||
| } | ||
| } | ||
| ], | ||
| "@babel/preset-typescript", | ||
| "@babel/preset-react" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ARG VARIANT="18" | ||
| FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT} | ||
| USER node | ||
| WORKDIR /home/node | ||
| RUN mkdir -p .config/git \ | ||
| && echo ".vscode/*" >> .config/git/ignore \ | ||
| && echo "*.code-workspace" >> .config/git/ignore \ | ||
| && echo ".history/" >> .config/git/ignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "name": "TypeScript", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "args": { | ||
| "VARIANT": "18" | ||
| } | ||
| }, | ||
| "extensions": [ | ||
| "ms-vsliveshare.vsliveshare", | ||
| "dbaeumer.vscode-eslint", | ||
| "EditorConfig.EditorConfig", | ||
| "esbenp.prettier-vscode" | ||
| ], | ||
| "forwardPorts": [6006, 6007, 8080], | ||
| "portsAttributes": { | ||
| "6006": { "label": "Storybook" }, | ||
| "6007": { "label": "Docs" }, | ||
| "8080": { "label": "Example" } | ||
| }, | ||
| "postCreateCommand": "npm install", | ||
razor-x marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "remoteUser": "node" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "root": true, | ||
| "extends": [ | ||
| "standard-with-typescript", | ||
| "standard-jsx", | ||
| "standard-react", | ||
| "plugin:react/jsx-runtime", | ||
| "plugin:storybook/recommended", | ||
| "prettier" | ||
| ], | ||
| "plugins": ["simple-import-sort", "unused-imports"], | ||
| "parserOptions": { | ||
| "project": "./tsconfig.json" | ||
| }, | ||
| "rules": { | ||
| "no-console": "warn", | ||
| "@typescript-eslint/consistent-type-imports": [ | ||
| "error", | ||
| { | ||
| "fixStyle": "inline-type-imports" | ||
| } | ||
| ], | ||
| "@typescript-eslint/no-unused-vars": "off", | ||
razor-x marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "unused-imports/no-unused-imports": "error", | ||
razor-x marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "unused-imports/no-unused-vars": [ | ||
| "error", | ||
| { | ||
| "vars": "all", | ||
| "varsIgnorePattern": "^_", | ||
| "args": "after-used", | ||
| "argsIgnorePattern": "^_", | ||
| "ignoreRestSiblings": true | ||
| } | ||
| ], | ||
| "import/extensions": ["error", "ignorePackages"], | ||
| "import/no-duplicates": ["error", { "prefer-inline": true }], | ||
| "simple-import-sort/imports": [ | ||
| "error", | ||
| { | ||
| "groups": [ | ||
| ["^\\u0000"], | ||
| ["^node:"], | ||
| ["^@?\\w"], | ||
| ["index.js"], | ||
| ["^fixtures/", "^lib/"], | ||
| ["^"], | ||
| ["^\\."] | ||
| ] | ||
| } | ||
| ], | ||
| "simple-import-sort/exports": "error" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| * @razor-x | ||
| * @azat-co |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| name: Setup | ||
| description: Setup Node.js and install dependencies. | ||
| inputs: | ||
| node_version: | ||
| description: The Node.js version. | ||
| required: false | ||
| default: '18' | ||
| registry_url: | ||
| description: The Node.js package registry URL. | ||
| required: false | ||
| default: https://registry.npmjs.org | ||
| install_dependencies: | ||
| description: Install dependencies. | ||
| required: false | ||
| default: 'true' | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| if: inputs.install_dependencies == 'true' | ||
| with: | ||
| cache: npm | ||
| node-version: ${{ inputs.node_version }} | ||
| registry-url: ${{ inputs.registry_url }} | ||
| - name: Setup Node.js without cache | ||
| uses: actions/setup-node@v3 | ||
| if: inputs.install_dependencies == 'false' | ||
| with: | ||
| node-version: ${{ inputs.node_version }} | ||
| registry-url: ${{ inputs.registry_url }} | ||
| - name: Install dependencies | ||
| if: inputs.install_dependencies == 'true' | ||
| shell: bash | ||
| run: npm ci |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| daysUntilStale: 21 | ||
| daysUntilClose: 7 | ||
| exemptLabels: | ||
| - pinned | ||
| - security | ||
| staleLabel: wontfix | ||
| markComment: > | ||
| This issue has been automatically marked as stale because it has not had | ||
| recent activity. It will be closed if no further activity occurs. | ||
| closeComment: false | ||
| pulls: | ||
| daysUntilStale: 3 | ||
| daysUntilClose: 1 | ||
| staleLabel: stale | ||
| markComment: > | ||
| This pull request has been automatically marked as stale because it has not had | ||
| recent activity. It will be closed if no further activity occurs. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| name: _build | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| node_version: | ||
| description: The Node.js version. | ||
| type: string | ||
| required: false | ||
| default: '18' | ||
| outputs: | ||
| artifact_name: | ||
| description: The artifact name. | ||
| value: build-${{ github.sha }} | ||
| jobs: | ||
| build: | ||
| name: Package | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
| with: | ||
| node_version: ${{ inputs.node_version }} | ||
| - name: Build | ||
| run: npm run build | ||
| - name: Package | ||
| run: npm pack | ||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: build-${{ github.sha }} | ||
| if-no-files-found: error | ||
| path: '*.tgz' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| name: _publish | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| artifact_name: | ||
| description: The artifact name. | ||
| type: string | ||
| required: true | ||
| registry_host: | ||
| description: The package registry host. | ||
| type: string | ||
| required: true | ||
| secrets: | ||
| registry_token: | ||
| description: The package registry token. | ||
| required: true | ||
| jobs: | ||
| publish: | ||
| name: Publish package | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
| with: | ||
| install_dependencies: 'false' | ||
| - name: Download artifact | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: ${{ inputs.artifact_name }} | ||
| path: . | ||
| - name: Get meta | ||
| id: meta | ||
| run: echo "tgz=$(ls *.tgz | head -n1)" >> $GITHUB_OUTPUT | ||
| - name: Publish | ||
| uses: rxfork/npm-publish@v1 | ||
| with: | ||
| access: public | ||
| target: ${{ steps.meta.outputs.tgz }} | ||
| token: ${{ secrets.registry_token }} | ||
| registry: ${{ inputs.registry_host }} |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.