Skip to content

Commit

Permalink
Merge pull request #7609 from kodadot/main
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao authored Oct 11, 2023
2 parents 8745fca + 4876c66 commit fecacd2
Show file tree
Hide file tree
Showing 843 changed files with 14,509 additions and 22,165 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ VUE_APP_PERMAFROST_URL=""
VUE_APP_AR_URL=""
MATRIX=""
SUBSQUID_ENDPOINT=""
RAMP_API_KEY=""
TRANSAK_API_KEY=""
TRANSAK_ENV="" #STAGING|PRODUCTION
TRANSAK_ENV="" #STAGING|PRODUCTION
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
node: true,
},
extends: [
'plugin:vue/recommended',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue-scoped-css/recommended',
'plugin:vue-scoped-css/vue3-recommended',
'prettier',
],
parser: 'vue-eslint-parser',
Expand All @@ -16,8 +16,10 @@ module.exports = {
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: ['vue', 'prettier', '@typescript-eslint', 'unicorn'],
plugins: ['prettier', '@typescript-eslint', 'unicorn'],
rules: {
'prettier/prettier': 'error',
'no-empty-function': 'warn',
'no-trailing-spaces': 'error',
'unicorn/no-for-loop': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
Expand Down Expand Up @@ -48,6 +50,7 @@ module.exports = {
],
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
'vue-scoped-css/v-deep-pseudo-style': ['error', ':deep'],
'vue-scoped-css/no-deprecated-deep-combinator': 'error',
'vue-scoped-css/require-v-deep-argument': 'error',
Expand Down
2 changes: 1 addition & 1 deletion .github/diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches: [main]
pull_request:
branches: [main, beta, hyper-jpeg]
branches: [main, beta, production, nuxt]

jobs:
test:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
branches: [ main, beta, production, nuxt ]
pull_request:
branches: [ main, master ]
branches: [ main, beta, production, nuxt ]
jobs:
test:
timeout-minutes: 15
Expand All @@ -19,9 +19,9 @@ jobs:

- name: Run Build
run: pnpm generate

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
run: pnpm exec playwright install --with-deps chromium

- name: Run Playwright tests
run: pnpm exec playwright test
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ We might give retro-active reward, where the bounty label wasn't present, **if w

**For better coordination, please join our [Development channel (#coordination) on [KodaDot Ecosystem Telegram](https://t.me/kodadot_eco)**

## Deploy Kodadot nft gallery to Netlify
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/kodadot/nft-gallery)

## Getting started

Before you being:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# Contributing

[![Twitter Follow](https://img.shields.io/twitter/follow/kodadot?style=social)](https://twitter.com/intent/follow?screen_name=kodadot)

[![Test & Build app](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/build.yml) [![Reviewdog](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/kodadot/nft-gallery/actions/workflows/reviewdog.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/7d14fab327c632d5f0ce/maintainability)](https://codeclimate.com/github/kodadot/nft-gallery/maintainability)

![image](https://user-images.githubusercontent.com/5887929/217076362-464e1293-8a2d-43ee-829f-fba17408e4c3.png)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '~/node_modules/highlight.js/styles/github-dark.css';
@import '@/styles/abstracts/variables';
@import '@/assets/styles/abstracts/variables';

.content-markdown {
code {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@

.search-bar-container {
position: relative;
width: 100%;

.search-bar-collection-search {
z-index: 2;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 40 additions & 1 deletion styles/global.scss → assets/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ main {
// without this, footer image is above main contents
// block hover, click events
z-index: 100;
height: 100%;
}

main {
Expand Down Expand Up @@ -229,6 +228,12 @@ hr {
}
}

.has-text-grey-fix {
@include ktheme() {
color: theme('k-grey-fix') !important;
}
}

.has-text-inverse {
@include ktheme() {
color: theme('text-color-inverse');
Expand Down Expand Up @@ -326,6 +331,18 @@ a.has-text-grey {
}
}

.border-k-grey {
@include ktheme() {
border-color: theme('k-grey') !important;
}
}

.border-top-k-shade {
@include ktheme() {
border-top: 1px solid theme('k-shade');
}
}

.has-text-k-shade {
@include ktheme() {
color: theme('k-shade');
Expand Down Expand Up @@ -362,6 +379,12 @@ a.has-text-grey {
}
}

.has-text-k-grey {
@include ktheme() {
color: theme('k-grey');
}
}

.has-text-color {
@include ktheme() {
color: theme('text-color') !important;
Expand Down Expand Up @@ -391,6 +414,13 @@ a.has-text-grey {
}
}

.k-shade {
@include ktheme() {
background-color: theme('k-shade');
}
}


.k-yellow {
@include ktheme() {
background-color: theme('k-yellow');
Expand Down Expand Up @@ -430,6 +460,10 @@ a.has-text-grey {
}
}


.is-cursor-pointer {
cursor: pointer !important;
}
//hover

.is-hoverable-item {
Expand Down Expand Up @@ -490,3 +524,8 @@ a.has-text-grey {
.no-border-left {
border-left: none !important;
}

.is-rounded {
border-radius: 50%;
}

2 changes: 1 addition & 1 deletion styles/index.scss → assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "abstracts/theme";

// FRAMEWORK (note: don't move this on top)
@import "~bulma";
@import "bulma/bulma.sass";

// GLOBAL
@import "./global.scss";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@

.navbar-start {
flex: 1;
margin-top: 10px;
@media screen and (max-width: 1024px) {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@/styles/abstracts/variables';
@import '@/assets/styles/abstracts/variables';

:deep(.o-field__label) {
margin-bottom: 4px;
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions components/CookieBanner.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div v-if="!hasDisplayedCookieBanner" class="cookie-banner">
<transition name="slide">
<transition name="slide">
<div v-if="!hasDisplayedCookieBanner" class="cookie-banner">
<div class="notices is-bottom is-flex w-100 is-align-items-center">
<div
role="alertdialog"
Expand All @@ -14,21 +14,21 @@
</div>
<div class="bar ml-4 mr-4" />
<div class="action is-success">
<NeoButton variant="text" no-shadow @click.native="declineCookies">
<NeoButton variant="text" no-shadow @click="declineCookies">
{{ $t('cookies.decline') }}
</NeoButton>
<NeoButton
variant="text"
no-shadow
class="has-text-weight-bold ml-3"
@click.native="acceptCookies">
@click="acceptCookies">
{{ $t('cookies.accept') }}
</NeoButton>
</div>
</div>
</div>
</transition>
</div>
</div>
</transition>
</template>

<script lang="ts" setup>
Expand All @@ -37,7 +37,7 @@ import { NeoButton } from '@kodadot1/brick'
// const { isEnabled } = useState()
const hasDisplayedCookieBanner = ref(
localStorage.getItem('cookies_enabled') !== null || false
localStorage.getItem('cookies_enabled') !== null || false,
)
const acceptCookies = () => {
// if (isEnabled) {
Expand Down
21 changes: 21 additions & 0 deletions components/CustomSubstackEmbed.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<div id="custom-substack-embed" data-testid="footer-subscribe"></div>
</template>

<script lang="ts" setup>
useHead({
script: [{ src: 'https://substackapi.com/widget.js', async: true }],
})
window.CustomSubstackWidget = {
substackUrl: 'kodadot.substack.com',
placeholder: 'jane.doe@kodadot.xyz',
theme: 'custom',
colors: {
primary: '#FF7AC3',
input: '#FFFFFF',
email: '#000000',
text: '#000000',
},
}
</script>
2 changes: 1 addition & 1 deletion components/shared/Error.vue → components/Error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const props = withDefaults(
hasImg: true,
errorTitle: 'Indexer Error',
errorSubtitle: 'Indexer is not working properly.',
}
},
)
const imgSrc = computed(() => `https://http.cat/${props.errorCode}`)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<template>
<NeoMessage
class="message-box"
:class="{
'message-box--toast': !noToast,
}"
:duration="realDuration"
auto-close
:auto-close="autoClose"
@close="$emit('close')">
<img src="/congrats-message-header.svg" class="congrats-message" />
<div class="is-flex is-flex-direction-column">
Expand Down Expand Up @@ -33,29 +36,35 @@ const props = defineProps<{
title?: string
subtitle?: string
duration?: number
noToast?: boolean
}>()
const realDuration = computed(() => {
return props.duration || 10000
})
const autoClose = computed(() => !props.noToast)
const realworldFullPath = computed(() => {
return `${window.location.origin}${route.fullPath}`
})
</script>

<style lang="scss">
@import '@/styles/abstracts/variables';
@import '@/assets/styles/abstracts/variables';
.message-box {
z-index: 10;
max-width: 500px;
position: absolute;
border-radius: 0;
top: 100px;
right: 0;
margin-left: auto;
margin-right: auto;
&--toast {
z-index: 100;
position: fixed;
border-radius: 0;
top: 100px;
right: 0;
margin-left: auto;
margin-right: auto;
}
@include ktheme() {
box-shadow: theme('primary-shadow');
Expand Down
Loading

0 comments on commit fecacd2

Please sign in to comment.