-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from EpicsDAO/adding/doc
moved the solv-doc to this monorepo
- Loading branch information
Showing
326 changed files
with
18,968 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.next | ||
out | ||
dist | ||
build | ||
build | ||
.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
env: { | ||
es6: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'off', | ||
{ | ||
'ts-ignore': 'allow-with-description', | ||
}, | ||
], | ||
// temprary disable | ||
// "@typescript-eslint/no-floating-promises": "error", | ||
// "@typescript-eslint/no-misused-promises": [ | ||
// "error", | ||
// { | ||
// "checksVoidReturn": false | ||
// } | ||
// ] | ||
// temporary enable | ||
'no-useless-escape': 'off', | ||
'no-useless-catch': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'no-empty': 'off', | ||
'no-case-declarations': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['./website/**/*.ts', './website/**/*.tsx'], | ||
extends: [ | ||
'next/core-web-vitals', | ||
'eslint:recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'react-hooks'], | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
rules: { | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'react-native/no-inline-styles': 0, | ||
'no-constant-condition': 0, | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
'@typescript-eslint/no-misused-promises': [ | ||
'error', | ||
{ | ||
checksVoidReturn: false, | ||
}, | ||
], | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'off', | ||
{ | ||
'ts-ignore': 'allow-with-description', | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"projects": { | ||
"default": "epics-dao" | ||
}, | ||
"targets": { | ||
"epics-dao": { | ||
"hosting": { | ||
"solv-doc": [ | ||
"solv-doc" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: solv-doc | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'website/solv-doc/**' | ||
- '.github/workflows/website-solv-doc.yml' | ||
- 'package.json' | ||
- 'firebase.json' | ||
- '.firebaserc' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
node-version: [20.11.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.SKEET_GCP_SA_KEY }} | ||
- name: Install firebase tools | ||
run: pnpm i -g firebase-tools | ||
- name: GitHub repository setting | ||
run: git config --global url."https://github.com".insteadOf ssh://[email protected] | ||
- name: Install dependencies | ||
run: pnpm -F solv-doc i | ||
- name: Build App | ||
run: pnpm -F solv-doc build | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=8192 | ||
- name: Deploy to Firebase | ||
run: firebase deploy --only hosting | ||
- name: Send sitemap | ||
run: pnpm -F solv-doc send:sitemap | ||
env: | ||
BING_API_KEY: ${{ secrets.BING_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,8 +49,6 @@ firebase-debug.log | |
/apps/ | ||
keyfile.json | ||
/functions/ | ||
.firebase* | ||
tmp | ||
firebase.json | ||
/sql/ | ||
dist/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"hosting": { | ||
"target": "solv-doc", | ||
"public": "website/solv-doc/out", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"headers": [ | ||
{ | ||
"source": "/resource/**/**/install", | ||
"headers": [ | ||
{ | ||
"key": "Content-Disposition", | ||
"value": "attachment; filename=install" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.