From 0502a44f2eb798761f3a87e7f413e220591b7bab Mon Sep 17 00:00:00 2001 From: William Chong <6198816+williamchong@users.noreply.github.com> Date: Fri, 6 Dec 2024 01:00:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Disable=20auto=20fo?= =?UTF-8?q?nt=20sizing=20on=20mobile=20(#1976)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 👽️ Disable auto font sizing on mobile * 🐛 Disable auto size on body Co-authored-by: Ng Wing Tat, David --------- Co-authored-by: Ng Wing Tat, David --- src/pages/reader/epub.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/reader/epub.vue b/src/pages/reader/epub.vue index 406925862..b5c24c091 100644 --- a/src/pages/reader/epub.vue +++ b/src/pages/reader/epub.vue @@ -368,6 +368,12 @@ export default { ), }); const cfi = this.resumeFromLocalStorage(); + this.rendition.themes.default({ + body: { + '-webkit-text-size-adjust': 'none', + 'text-size-adjust': 'none', + }, + }); this.rendition.themes.fontSize(`${this.fontSize}px`); this.rendition.display(cfi); this.rendition.on('rendered', (_, view) => { From d19716fc6d3ff09e4b601ae01d9944f47370e939 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 29 Nov 2024 15:40:50 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=91=B7=20Add=20sepolia=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-sepolia.yml | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/deploy-sepolia.yml diff --git a/.github/workflows/deploy-sepolia.yml b/.github/workflows/deploy-sepolia.yml new file mode 100644 index 000000000..665520fa0 --- /dev/null +++ b/.github/workflows/deploy-sepolia.yml @@ -0,0 +1,47 @@ +name: Deploy to sepolia.liker.land + +on: + push: + branches: + - 'deploy/sepolia' + +env: + IS_TESTNET: 'TRUE' + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + environment: sepolia + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Setup node env 🏗 + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + cache-dependency-path: | + src/package-lock.json + functions/package-lock.json + - name: Dependencies + run: npm --prefix src install && npm --prefix functions install && cp -r src/nuxt.config.js src/config src/tailwind.config.js functions/ + - name: Add robots.txt + run: | + echo 'User-agent: *' > public_base/robots.txt + echo 'Disallow: /' >> public_base/robots.txt + - uses: w9jds/setup-firebase@main + with: + tools-version: 11.30.0 + firebase_token: ${{ secrets.FIREBASE_TOKEN }} + - run: firebase deploy --project civic-liker-sepolia -f + env: + GA_TRACKING_ID: ${{ vars.GA_TRACKING_ID }} + AD_CONVERSION_ID: ${{ vars.AD_CONVERSION_ID }} + CRISP_WEBSITE_ID: ${{ vars.CRISP_WEBSITE_ID }} + STRIPE_PUBLIC_KEY: ${{ vars.STRIPE_PUBLIC_KEY }} + SENTRY_DSN: ${{ vars.SENTRY_DSN }} + SENTRY_ORG: ${{ vars.SENTRY_ORG }} + SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_PUBLISH_RELEASE: 'TRUE' From 5da5af7b55334bcef229c4cc8604ba10b3561450 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 6 Dec 2024 01:02:37 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=92=A9=20Support=20wnft=20status=20in?= =?UTF-8?q?=20claim=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/nft/claim/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/nft/claim/index.vue b/src/pages/nft/claim/index.vue index 9a4d3c7d6..7d48a6ef9 100644 --- a/src/pages/nft/claim/index.vue +++ b/src/pages/nft/claim/index.vue @@ -1027,7 +1027,11 @@ export default { this.status === 'pendingNFT' ) { this.navigateToState(NFT_CLAIM_STATE.CLAIMED); - } else if (!free && this.status !== 'paid') { + } else if ( + !free && + this.status !== 'paid' && // nft book + this.status !== 'pendingClaim' // wnft + ) { this.alertPromptError( this.$t('nft_free_claim_error_message', { error: `Payment status is ${this.status}`, From 0cffda7772dadfd1826da5dd1341cc66396c81fd Mon Sep 17 00:00:00 2001 From: "Ng Wing Tat, David" Date: Fri, 6 Dec 2024 15:48:45 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=92=A9=20Force=20EPUB=20direction=20t?= =?UTF-8?q?o=20ltr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/reader/epub.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/reader/epub.vue b/src/pages/reader/epub.vue index b5c24c091..07149a83c 100644 --- a/src/pages/reader/epub.vue +++ b/src/pages/reader/epub.vue @@ -372,6 +372,7 @@ export default { body: { '-webkit-text-size-adjust': 'none', 'text-size-adjust': 'none', + direction: 'ltr', }, }); this.rendition.themes.fontSize(`${this.fontSize}px`);