Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alelliott committed Jun 11, 2024
0 parents commit 606a4cf
Show file tree
Hide file tree
Showing 167 changed files with 25,881 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.git
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#Development
VITE_ENVIRONMENT=development
VITE_PORT=8095

#General
VITE_APP_NAME='Nounspace Dashboard'
VITE_APP_DESCRIPTION='Nounspace Dashboard'
VITE_APP_URL='https://morpheus.206.189.243.3.sslip.io'
VITE_APP_GRAPHQL_API_URL='https://api.thegraph.com/subgraphs/name/ruslanprogrammer/morpheus-dashboard'
VITE_APP_WALLET_CONNECT_PROJECT_ID='abcdefghijklmnopqrstuvwxyz'
#VITE_APP_BUILD_VERSION='1.0.0'

#Testnet
VITE_APP_ERC1967_PROXY_TESTNET_CONTRACT_ADDRESS='0x0ad2fa5d8f420ff6d87192b32d89faf70466b30b'
VITE_APP_STETH_TESTNET_CONTRACT_ADDRESS='0x84BE06be19F956dEe06d4870CdDa76AF2e0385f5'
VITE_APP_MOR_TESTNET_CONTRACT_ADDRESS='0xe6D01D086a844a61641C75f1BCA572e7aa70e154'
VITE_APP_ENDPOINT_TESTNET_CONTRACT_ADDRESS='0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1'

#Mainnet
VITE_APP_ERC1967_PROXY_MAINNET_CONTRACT_ADDRESS='0x47176B2Af9885dC6C4575d4eFd63895f7Aaa4790'
VITE_APP_STETH_MAINNET_CONTRACT_ADDRESS='0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84'
VITE_APP_MOR_MAINNET_CONTRACT_ADDRESS='0x7431aDa8a591C955a994a21710752EF9b882b8e3'
VITE_APP_ENDPOINT_MAINNET_CONTRACT_ADDRESS='0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675'
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build/*.js
dist/*.js
config/*.js
playground
*.schema.js
index.html
*.md
static/env.js
vite.config.ts
158 changes: 158 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
settings: {
'vue-i18n': {
localeDir: 'src/localization/**/*.(json|json5)',
},
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 'latest',
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'@vue/eslint-config-typescript/recommended',
'plugin:vue-i18n/recommended',
'@vue/prettier',
'@vue/eslint-config-prettier',
],
plugins: ['promise'],
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
rules: {
'prettier/prettier': [
'warn',
{
vueIndentScriptAndStyle: false,
printWidth: 80,
trailingComma: 'all',
endOfLine: 'auto',
tabWidth: 2,
semi: false,
singleQuote: true,
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'avoid',
},
],
'vue-i18n/no-v-html': 'off',
'vue-i18n/no-dynamic-keys': 'warn',
'vue-i18n/no-missing-keys': 'warn',
'vue-i18n/no-unused-keys': [
'error',
{
extensions: ['.js', '.ts', '.vue'],
},
],
'vue-i18n/no-raw-text': [
'error',
{
ignoreText: ['—', '|', '×'],
},
],
'arrow-parens': 0,
'no-debugger': 1,
'no-warning-comments': [
1,
{
terms: ['hardcoded'],
location: 'anywhere',
},
],
'no-return-await': 1,
'object-curly-spacing': ['error', 'always'],
'no-var': 'error',
'comma-dangle': [1, 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'generator-star-spacing': 0,
'no-tabs': 2,
'max-len': [
1,
{
code: 80,
comments: 80,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
quotes: [2, 'single', { avoidEscape: false }],
'no-multiple-empty-lines': [2, { max: 1, maxEOF: 0, maxBOF: 0 }],
semi: [2, 'never'],
'vue/multi-word-component-names': 0,
'vue/component-definition-name-casing': ['error', 'kebab-case'],
'vue/valid-v-for': 2,
'vue/attributes-order': 0,
'vue/order-in-components': 1,
'vue/html-closing-bracket-newline': 0,
'vue/attribute-hyphenation': 1,
'vue/component-name-in-template-casing': [2, 'kebab-case'],
'vue/html-end-tags': 2,
'vue/html-quotes': 1,
'vue/multiline-html-element-content-newline': 1,
'vue/mustache-interpolation-spacing': 1,
'vue/no-async-in-computed-properties': 2,
'vue/no-use-v-if-with-v-for': 1,
'vue/no-dupe-keys': 2,
'vue/no-duplicate-attributes': 2,
'vue/no-multi-spaces': 1,
'vue/no-reserved-keys': 2,
'vue/no-shared-component-data': 2,
'vue/no-side-effects-in-computed-properties': 2,
'vue/no-spaces-around-equal-signs-in-attribute': 2,
'vue/no-template-key': 2,
'vue/no-textarea-mustache': 2,
'vue/no-unused-components': 1,
'vue/no-unused-vars': 1,
'vue/no-v-html': 1,
'vue/prop-name-casing': 2,
'vue/require-default-prop': 2,
'vue/require-prop-types': 2,
'vue/require-valid-default-prop': 2,
'vue/this-in-template': 2,
'vue/v-bind-style': 2,
'vue/v-on-style': 2,
'vue/valid-template-root': 2,
'vue/valid-v-bind': 2,
'vue/valid-v-else-if': 2,
'vue/valid-v-else': 2,
'vue/valid-v-model': 2,
'vue/valid-v-on': 2,
'vue/singleline-html-element-content-newline': [
1,
{
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea', 'span'],
},
],
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'error',
'promise/catch-or-return': 'error',
'promise/no-nesting': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/prefer-await-to-then': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
},
}
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Set the default behavior, in case devs don't have core.autocrlf set.
* text=auto

# Declare files that will always have LF line endings on checkout.
*.* text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.ttf binary
*.woff binary
*.woff2 binary
51 changes: 51 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches:
- "dev"
- "main"

permissions:
packages: write

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/[email protected]

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_SHA
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/morpheusais/dashboard:$GITHUB_SHA --dev
deploy:
name: Deploy
needs: converge
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
- name: ConfigCreate
run: |
mkdir ~/.kube/
echo "${{ secrets.KUBECONFIG }}" > config
mv config ~/.kube/
ls ~/.kube/
kubectl set image deployment/morpheus-dev-webclient webclient=ghcr.io/morpheusais/dashboard:$GITHUB_SHA -n morpheus-dev
34 changes: 34 additions & 0 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/[email protected]

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_REF_NAME
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME --dev
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.DS_Store
node_modules/
OLD/
dist/
dist-ssr/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
test/unit/coverage
selenium-debug.log
.eslintcache
package-lock.json

deprecated

# Editor directories and files
.idea
.vscode
.fleet
*.suo
*.ntvs*
*.njsproj
*.sln
*.local
stats.html
.yarn
.yarnrc.yml

.env
.env.production
.env.analyze
tsconfig.tsbuildinfo
Loading

0 comments on commit 606a4cf

Please sign in to comment.