-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5659fe
commit 4d1509e
Showing
274 changed files
with
24,714 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
NUXT_PUBLIC_SENTRY_DSN= | ||
NUXT_PUBLIC_APP_DOMAIN=localhost:8080 | ||
NUXT_PUBLIC_MIDDLEWARE_URL=https://mainnet.aeternity.io/mdw | ||
NUXT_PUBLIC_NODE_URL=https://mainnet.aeternity.io/v3 | ||
NUXT_PUBLIC_WEBSOCKET_URL=wss://mainnet.aeternity.io/mdw/websocket | ||
NUXT_PUBLIC_DEX_BACKEND_URL=https://dex-backend-mainnet.prd.aepps.com | ||
NUXT_PUBLIC_NETWORK_NAME=MAINNET | ||
NUXT_PUBLIC_ALTERNATIVE_NETWORK_URL=http://localhost:8081 | ||
NUXT_PUBLIC_ALTERNATIVE_NETWORK_NAME=TESTNET |
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,3 @@ | ||
dist | ||
.nuxt | ||
.output |
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,86 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.vue'], | ||
ecmaFeatures: { | ||
jsx: false, | ||
}, | ||
}, | ||
globals: { | ||
defineProps: 'readonly', | ||
defineEmits: 'readonly', | ||
defineExpose: 'readonly', | ||
withDefaults: 'readonly', | ||
}, | ||
extends: [ | ||
'standard', | ||
'plugin:vue/base', | ||
'plugin:vue/vue3-recommended', | ||
'plugin:import/recommended', | ||
'eslint:recommended', | ||
'@nuxtjs/eslint-config-typescript', | ||
], | ||
plugins: ['prettier'], | ||
settings: { | ||
'import/resolver': { | ||
alias: { | ||
map: [ | ||
['@', './src'], | ||
], | ||
'extensions': ['.js','.vue'] | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
quotes: ['error', 'single'], | ||
'no-use-before-define': 'off', | ||
'no-useless-constructor': 'off', | ||
'comma-dangle': ['error', 'always-multiline'], | ||
indent: ['error', 2], | ||
'space-before-function-paren': ['error', 'never'], | ||
'arrow-parens': ['error', 'as-needed'], | ||
'no-restricted-imports': ['error', { | ||
patterns: ['./'], | ||
}], | ||
'import/extensions': ['error', 'never'], | ||
'vue/html-indent': ['error', 2, { | ||
attribute: 1, | ||
baseIndent: 1, | ||
closeBracket: 0, | ||
alignAttributesVertically: true, | ||
}], | ||
'vue/multi-word-component-names': 'off', | ||
'vue/mustache-interpolation-spacing': ['error', 'always'], | ||
'vue/no-multiple-template-root': 'off', | ||
'vue/no-unused-components': ['error', { | ||
ignoreWhenBindingPresent: false, | ||
}], | ||
'vue/html-closing-bracket-newline': ['error', { | ||
singleline: 'never', | ||
multiline: 'never', | ||
}], | ||
'vue/multiline-html-element-content-newline': ["error", { | ||
'ignoreWhenEmpty': true, | ||
'ignores': ['pre', 'textarea', 'a', 'span', 'app-link', 'router-link'], | ||
'allowEmptyLines': false | ||
}], | ||
'vue/html-closing-bracket-spacing': ['error', { | ||
startTag: 'never', | ||
endTag: 'never', | ||
selfClosingTag: 'never', | ||
}], | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: 1, | ||
multiline: { max: 1 }, | ||
}], | ||
'vue/require-v-for-key': 'error', | ||
'vue/no-v-html': 0, | ||
semi: ['error', 'never'], | ||
camelcase: ['error', { | ||
properties: 'never', | ||
}], | ||
}, | ||
} |
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,24 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug to help us improve the application. | ||
title: "" | ||
labels: "bug" | ||
assignees: "" | ||
--- | ||
|
||
<!-- **IMPORTANT!** | ||
Before reporting a bug, please make sure that you have read through our documentation. --> | ||
|
||
### Context information | ||
|
||
application version: <!-- e.g. 0.4.0 --> | ||
device: <!-- e.g. PC, 2022 macbook pro, Iphone SE, Samsung Galaxy Fold 2 --> | ||
browser: <!-- e.g. Firefox 111.0 --> | ||
operating system: <!-- e.g. Ubuntu 22.04.1 --> | ||
|
||
### Steps to reproduce | ||
|
||
### What is expected? | ||
|
||
### What is actually happening? | ||
<!-- A video or screenshots of the issue are highly appreciated --> |
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Aeternity forum | ||
url: https://forum.aeternity.com/ | ||
about: Join the æternity community! |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest a new feature or enhancement for the application. | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Please describe the problem that your request should resolve. | ||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> | ||
|
||
### Describe the solution you'd like | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Is it already possible to achieve the same outcome in any other way? If so, how? | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
### Additional context | ||
<!-- Add any other context, screenshots or designs about the feature request go here. --> |
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,17 @@ | ||
<!--- Ensure the title of the Pull Request follows conventional commits syntax. If it resolves an issue, provide its ID in the scope section. --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #137" --> | ||
<!--- If it doesn't resolve any open issues, tell us why is this change required? What problem does it solve? --> | ||
|
||
## Demo | ||
<!--- Show us a video or screenshots that present the changes. Before/after comparison is very welcome --> | ||
|
||
## Checklist: | ||
<!--- Put an `x` in all the boxes that apply. --> | ||
<!--- If your change requires a documentation PR, please link it appropriately --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] I have read and followed the [Contributing Guide](../../CONTRIBUTING.md) | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. |
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,30 @@ | ||
name: Code validation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
jobs: | ||
lint: | ||
name: Code linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn lint:ci |
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,45 @@ | ||
name: Pull Request validation | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
|
||
jobs: | ||
pr-lint: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
id: lint_pr_title | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
# When the previous steps fails, the workflow would stop. By adding this | ||
# condition you can continue the execution with the populated error message. | ||
if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
with: | ||
header: pr-title-lint-error | ||
message: | | ||
Hey there and thank you for opening this pull request! 👋🏼 | ||
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. | ||
Details: | ||
``` | ||
${{ steps.lint_pr_title.outputs.error_message }} | ||
``` | ||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.lint_pr_title.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: pr-title-lint-error | ||
delete: true |
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,106 @@ | ||
name: Develop pipelines | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
env: | ||
ENV: "dev" | ||
APP: "aescan" | ||
|
||
concurrency: aescan_develop_environment | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
environment: develop | ||
name: Develop Pipeline Aescan Frontend | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get commit sha on PR Sync | ||
if: github.event_name == 'push' | ||
id: git-sha | ||
shell: bash | ||
run: | | ||
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@master | ||
# Only worked for us with this option on | ||
with: | ||
install: true | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
# Key is named differently to avoid collision | ||
key: ${{ runner.os }}-${{ env.ENV }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ env.ENV }}-buildx | ||
- name: Log in to dockerhub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
- name: Extract metadata for docker | ||
if: github.event_name == 'push' | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: aeternity/aescan | ||
tags: | | ||
type=raw,value=develop,enable=${{ endsWith(GitHub.ref, 'develop') }} | ||
- name: Build and push docker image | ||
if: github.event_name == 'push' | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: true | ||
build-args: BUILD_MODE=development | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
# Note the mode=max here | ||
# More: https://github.com/moby/buildkit#--export-cache-options | ||
# And: https://github.com/docker/buildx#--cache-tonametypetypekeyvalue | ||
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new | ||
|
||
- name: Move cache | ||
if: github.event_name == 'push' | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: aeternity/gitops-apps-aelabs.git | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
ref: dev | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Latest Develop Branch Deploy on Push | ||
if: github.event_name == 'push' | ||
uses: aeternity/ae-github-actions/argocd-pr-sync@v4 | ||
with: | ||
git-sha: ${{ steps.git-sha.outputs.GIT_SHA }} | ||
url-prefix: develop | ||
env: ${{ env.ENV }} | ||
app: ${{ env.APP }} | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
repository: aeternity/gitops-apps-aelabs | ||
github_token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
branch: dev |
Oops, something went wrong.