Skip to content

Commit

Permalink
init new jstaking
Browse files Browse the repository at this point in the history
  • Loading branch information
rleukhin93 committed Jan 17, 2022
0 parents commit b037efc
Show file tree
Hide file tree
Showing 170 changed files with 29,818 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/public
/docs
/bin
node_modules
dist
.vscode
.idea
.husky
.local
*.woff
*.ttf
*.sh
*.scss
*.css
*.svg
118 changes: 118 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/*
* This file is part of the Web3 Library developed by mFactory GmbH.
*
* Copyright © 2021, mFactory GmbH
*
* Solana Reference Stake Pool is free software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Solana Reference Stake Pool is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program.
* If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
*
* You can be released from the requirements of the Affero GNU General Public License
* by purchasing a commercial license. The purchase of such a license is
* mandatory as soon as you develop commercial activities using the
* Solana Reference Stake Pool code without disclosing the source code of
* your own applications.
*
* The developer of this program can be contacted at <[email protected]>.
*/

module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
rules: {
'no-use-before-define': 'off',
'no-unused-vars': 'off',
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
'prettier/prettier': 2,
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'space-before-function-paren': 'off',
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
{
registeredComponentsOnly: true,
ignores: [],
},
],
'vue/custom-event-name-casing': 'off',
'vue/script-setup-uses-vars': 'error',
'vue/attributes-order': 'off',
'vue/multi-word-component-names': 'off',
'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
},
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
};
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "@jpool/common"]
path = ./packages/common
url = https://github.com/mfactory-lab/jfactory-web3-common
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.8.0
19 changes: 19 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/node_modules
/dist
/pbulic
.husky
**/*.svg
.DS_Store
.eslintignore
*.png
*.gif
*.jpg
*.jpeg
*.toml
.editorconfig
.gitignore
.prettierignore
LICENSE
.eslintcache
*.lock
yarn-error.log
37 changes: 37 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* This file is part of the Web3 Library developed by mFactory GmbH.
*
* Copyright © 2021, mFactory GmbH
*
* Solana Reference Stake Pool is free software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Solana Reference Stake Pool is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program.
* If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
*
* You can be released from the requirements of the Affero GNU General Public License
* by purchasing a commercial license. The purchase of such a license is
* mandatory as soon as you develop commercial activities using the
* Solana Reference Stake Pool code without disclosing the source code of
* your own applications.
*
* The developer of this program can be contacted at <[email protected]>.
*/

module.exports = {
semi: true,
singleQuote: true,
vueIndentScriptAndStyle: true,
htmlWhitespaceSensitivity: 'strict',
trailingComma: 'all',
endOfLine: 'lf',
printWidth: 100,
}
29 changes: 29 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399

declare module 'vue' {
export interface GlobalComponents {
AppFooter: typeof import('./src/components/home/AppFooter.vue')['default']
AppHeader: typeof import('./src/components/home/AppHeader.vue')['default']
ConnectionLost: typeof import('./src/components/ConnectionLost.vue')['default']
CookieModal: typeof import('./src/components/CookieModal.vue')['default']
ErrorContainer: typeof import('./src/components/ErrorContainer.vue')['default']
FaqSection: typeof import('./src/components/home/FaqSection.vue')['default']
QBtn: typeof import('quasar')['QBtn']
QCard: typeof import('quasar')['QCard']
QCardActions: typeof import('quasar')['QCardActions']
QCardSection: typeof import('quasar')['QCardSection']
QDialog: typeof import('quasar')['QDialog']
QFooter: typeof import('quasar')['QFooter']
QHeader: typeof import('quasar')['QHeader']
QLayout: typeof import('quasar')['QLayout']
QPage: typeof import('quasar')['QPage']
QPageContainer: typeof import('quasar')['QPageContainer']
TeamSection: typeof import('./src/components/home/TeamSection.vue')['default']
TelegramSvg: typeof import('./src/components/icons/TelegramSvg.vue')['default']
TwitterSvg: typeof import('./src/components/icons/TwitterSvg.vue')['default']
}
}

export { }
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title><%- title %></title>
<meta charset="utf-8"/>
<meta name="description" content="<%- description %>"/>
<meta name="keywords" content="<%- keywords %>"/>
<meta content="ie=edge" http-equiv="x-ua-compatible"/>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"/>
<meta property="og:title" content="<%- title %>"/>
<meta property="og:description" content="<%- description %>"/>
<meta property="og:type" content="website"/>
<meta name="og:image" content="/img/logo.svg"/>
<meta name="twitter:creator" content="@JPoolSolana"/>
<meta name="twitter:title" content="<%- title %>"/>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link href="/img/favicon.svg" rel="icon"/>
<link href="/img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180"/>
<link href="/site.webmanifest" rel="manifest"/>
</head>
<body>
<div id="app"></div>
<script src="/src/main.ts" type="module"></script>
</body>
</html>
86 changes: 86 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"name": "jpool",
"version": "0.0.6",
"license": "ISC",
"private": true,
"workspaces": [
"packages/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mfactory-lab/jpool-webapp.git"
},
"bugs": {
"url": "https://github.com/mfactory-lab/jpool-webapp/issues"
},
"homepage": "https://github.com/mfactory-lab/jpool-webapp#readme",
"scripts": {
"dev": "vite --port 3333",
"build": "vite build --mode production",
"build:report": "vite build --mode report",
"build:ssg": "cross-env NODE_ENV=production vite-ssg build",
"serve": "vite preview",
"linter": "eslint -c .eslintrc.js --ext .js,.vue,.ts, src",
"linter:fix": "eslint -c .eslintrc.js --fix --ext .js,.vue,.ts, src",
"stylelint": "stylelint --config stylelint.config.js 'src/**/*.{vue,scss}'",
"stylelint:fix": "stylelint --config stylelint.config.js --fix 'src/**/*.{vue,scss}'",
"deploy:gh-pages": "push-dir --dir=dist --branch=gh-pages --cleanup"
},
"dependencies": {
"@quasar/extras": "^1.12.3",
"@vue/server-renderer": "^3.2.26",
"@vueuse/core": "^7.5.3",
"@vueuse/head": "^0.7.4",
"apexcharts": "^3.30.0",
"axios": "^0.24.0",
"quasar": "^2.4.3",
"vue": "^3.2.26",
"vue-gtag": "^2.0.1",
"vue-router": "^4.0.12",
"vue3-apexcharts": "^1.4.1"
},
"devDependencies": {
"@types/node": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vitejs/plugin-legacy": "^1.6.4",
"@vitejs/plugin-vue": "^2.0.1",
"@vue/compiler-sfc": "^3.2.26",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^10.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.6.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.7",
"path": "^0.12.7",
"prettier": "^2.5.1",
"push-dir": "^0.4.1",
"rollup-plugin-visualizer": "^5.5.2",
"sass": "1.32.0",
"stylelint": "^14.2.0",
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-standard": "^24.0.0",
"typescript": "^4.5.4",
"unplugin-vue-components": "^0.17.11",
"vite": "^2.7.10",
"vite-plugin-html": "^2.1.2",
"vue-eslint-parser": "^8.0.1"
},
"peerDependencies": {
"rollup": "^2.0.0"
},
"husky": {
"hooks": {}
},
"lint-staged": {
"*.{ts,vue}": "eslint --fix",
"*": "prettier -w -u"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}
Loading

0 comments on commit b037efc

Please sign in to comment.