Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 9a2db6b

Browse files
authored
Merge pull request #2015 from kodadot/main
Minimum Viable Pull Request till CloudFlare Pages builds stuff
2 parents d75bb4f + dcca282 commit 9a2db6b

30 files changed

+1244
-1396
lines changed

.github/renovate.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"timezone": "Europe/Berlin",
3+
"lockFileMaintenance": {
4+
"enabled": true
5+
},
6+
"prHourlyLimit": 5,
7+
"commitMessagePrefix" : "[skip netlify]",
8+
"automerge": true,
9+
"automergeType": "pr-comment",
10+
"automergeComment": "lgtm",
11+
"rangeStrategy": "bump",
12+
"schedule": ["after 10pm and before 5am every weekday"
13+
"packageRules": [
14+
{
15+
"matchUpdateTypes": [
16+
"minor",
17+
"patch",
18+
"pin",
19+
"digest"
20+
],
21+
"matchSourceUrlPrefixes": [
22+
"https://github.com/DefinitelyTyped",
23+
"https://github.com/vuejs",
24+
"https://github.com/FortAwesome",
25+
"https://github.com/babel"
26+
],
27+
"groupName": "merge with hazmat suit types & vue & fonts & babel",
28+
"prHeader": "merge with hazmat suit, may include new vuejs & types",
29+
"rangeStrategy": "bump",
30+
"schedule": ["after 10pm and before 5am every weekday"
31+
},
32+
{
33+
"matchUpdateTypes": [
34+
"minor",
35+
"patch",
36+
"pin",
37+
"digest"
38+
],
39+
"matchPackagePatterns": [
40+
"^axios",
41+
"^nuxt",
42+
"^model-viewer",
43+
"^vue",
44+
"^eslint",
45+
"^lint",
46+
"^buefy",
47+
"^graphql",
48+
"^typescript",
49+
"^chartjs",
50+
"^ws"
51+
],
52+
"groupName": "merge with hazmat suit bundle",
53+
"prHeader": "merge with hazmat suit, may include new packages bumps",
54+
"rangeStrategy": "bump",
55+
"schedule": ["after 10pm and before 5am every weekday"
56+
},
57+
{
58+
"matchUpdateTypes": [
59+
"minor",
60+
"patch",
61+
"pin",
62+
"digest"
63+
],
64+
"matchSourceUrlPrefixes": [
65+
"https://github.com/polkadot-js/",
66+
"https://github.com/vue-polkadot/"
67+
],
68+
"groupName": "merge with hazmat suit",
69+
"enabled": false
70+
}
71+
],
72+
"extends": [
73+
"config:base"
74+
]
75+
}

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint, Build & Test workflow
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: "16"
18+
19+
- name: Install Dependencies
20+
run: yarn
21+
22+
- name: Run Code Lint
23+
run: yarn lint:quiet
24+
25+
- name: Run Build
26+
run: yarn build
27+
28+
- name: Run Test
29+
run: yarn test

.github/workflows/lint.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Lint Files
1+
# name: Lint Files
22

3-
on:
4-
push:
5-
branches: [main]
3+
# on:
4+
# push:
5+
# branches: [main]
66

7-
jobs:
8-
lint:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
7+
# jobs:
8+
# lint:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Checkout
12+
# uses: actions/checkout@v2
1313

14-
- name: Setup Node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: "16"
14+
# - name: Setup Node.js
15+
# uses: actions/setup-node@v2
16+
# with:
17+
# node-version: "16"
1818

19-
- name: Install Dependencies
20-
run: yarn
19+
# - name: Install Dependencies
20+
# run: yarn
2121

22-
- name: Run Code Lint
23-
run: yarn lint:quiet
22+
# - name: Run Code Lint
23+
# run: yarn lint:quiet
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: pr-fix-feat
1+
# name: pr-fix-feat
22

3-
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the master branch
5-
on:
6-
pull_request:
7-
branches: [main]
8-
jobs:
9-
pr_check:
10-
runs-on: ubuntu-latest
11-
name: A job to Post comment on PR
12-
steps:
13-
- uses: actions/checkout@v2
14-
- name: PR Action
15-
uses: koushikmohan1996/action-pr-gifs@master
16-
with:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3+
# # Controls when the action will run. Triggers the workflow on push or pull request
4+
# # events but only for the master branch
5+
# on:
6+
# pull_request:
7+
# branches: [main]
8+
# jobs:
9+
# pr_check:
10+
# runs-on: ubuntu-latest
11+
# name: A job to Post comment on PR
12+
# steps:
13+
# - uses: actions/checkout@v2
14+
# - name: PR Action
15+
# uses: koushikmohan1996/action-pr-gifs@master
16+
# with:
17+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/reviewdog.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: reviewdog
1+
name: Reviewdog
2+
23
on:
34
pull_request:
45
branches: [main]
6+
57
jobs:
68
eslint:
79
name: runner / eslint
@@ -10,12 +12,15 @@ jobs:
1012
- uses: actions/checkout@v2
1113

1214
- name: Setup Node.js
13-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v2
1416
with:
1517
node-version: "16"
1618

19+
- name: Install Dependencies
20+
run: yarn
21+
1722
- name: Run eslint with reviewdog
18-
uses: reviewdog/action-eslint@v1.14.0
23+
uses: reviewdog/action-eslint@v1.15.0
1924
with:
2025
level: error
2126
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sentiment-pr.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# This is a basic workflow to help you get started with Actions
1+
# # This is a basic workflow to help you get started with Actions
22

3-
name: sentiment-pr
3+
# name: sentiment-pr
44

5-
# Controls when the action will run.
6-
on:
7-
pull_request:
8-
types: [opened]
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
5+
# # Controls when the action will run.
6+
# on:
7+
# pull_request:
8+
# types: [opened]
9+
# # Allows you to run this workflow manually from the Actions tab
10+
# workflow_dispatch:
1111

12-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13-
jobs:
14-
# This workflow contains a single job called "build"
15-
build:
16-
# The type of runner that the job will run on
17-
runs-on: ubuntu-latest
12+
# # A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
# jobs:
14+
# # This workflow contains a single job called "build"
15+
# build:
16+
# # The type of runner that the job will run on
17+
# runs-on: ubuntu-latest
1818

19-
# Steps represent a sequence of tasks that will be executed as part of the job
20-
steps:
21-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: TerabyteTiger/action-happyPR@v3
23-
id: happy
24-
with:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
# # Steps represent a sequence of tasks that will be executed as part of the job
20+
# steps:
21+
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22+
# - uses: TerabyteTiger/action-happyPR@v3
23+
# id: happy
24+
# with:
25+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/snyk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
name: Example workflow for Node using Snyk
1+
name: Snyk Security Testing
2+
23
on: push
4+
35
jobs:
46
security:
57
runs-on: ubuntu-latest

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.7.0
1+
16.13.2
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<template>
2+
<div>
3+
<p class="title is-size-3">
4+
{{ $t(label) }}
5+
</p>
6+
<slot name="header"></slot>
7+
<b-field>
8+
<Auth />
9+
</b-field>
10+
11+
<MetadataUpload
12+
v-model="vFile"
13+
label="Drop collection logo here or click to upload or simple paste image from clipboard. We support various media types (PNG, JPEG, GIF, SVG)"
14+
expanded
15+
preview
16+
accept="image/png, image/jpeg, image/gif, image/svg+xml, image/svg" />
17+
18+
<BasicInput
19+
v-model="vName"
20+
:label="$t('mint.collection.name.label')"
21+
:message="$t('mint.collection.name.message')"
22+
:placeholder="$t('mint.collection.name.placeholder')"
23+
expanded
24+
spellcheck="true" />
25+
26+
<slot name="main"></slot>
27+
28+
<BasicInput
29+
v-model="vDescription"
30+
maxlength="500"
31+
type="textarea"
32+
spellcheck="true"
33+
:label="$t('mint.collection.description.label')"
34+
:message="$t('mint.collection.description.message')"
35+
:placeholder="$t('mint.collection.description.placeholder')" />
36+
37+
<slot name="footer"></slot>
38+
</div>
39+
</template>
40+
41+
<script lang="ts">
42+
import { Component, Prop, PropSync, Vue } from 'nuxt-property-decorator'
43+
44+
const components = {
45+
Auth: () => import('@/components/shared/Auth.vue'),
46+
MetadataUpload: () => import('@/components/rmrk/Create/DropUpload.vue'),
47+
BasicInput: () => import('@/components/shared/form/BasicInput.vue'),
48+
}
49+
50+
@Component({ components })
51+
export default class BaseCollectionForm extends Vue {
52+
@Prop({ type: String, default: 'context' }) label!: string
53+
@Prop(Boolean) protectiveMargin!: boolean
54+
@PropSync('name', { type: String }) vName!: string
55+
@PropSync('description', { type: String }) vDescription!: string
56+
@PropSync('file', { type: Blob }) vFile!: Blob | null
57+
}
58+
</script>

components/base/SubmitButton.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<b-field>
3+
<b-button
4+
type="is-primary"
5+
icon-left="paper-plane"
6+
@click="$emit('click')"
7+
:disabled="disabled"
8+
:loading="loading"
9+
outlined>
10+
{{ $t(label) }}
11+
</b-button>
12+
</b-field>
13+
</template>
14+
15+
<script lang="ts">
16+
import { Component, Prop, Vue } from 'nuxt-property-decorator'
17+
18+
@Component({})
19+
export default class SubmitButton extends Vue {
20+
@Prop(Boolean) public disabled!: boolean
21+
@Prop(Boolean) public loading!: boolean
22+
@Prop(String) public label!: string
23+
}
24+
</script>

0 commit comments

Comments
 (0)