Skip to content

Commit

Permalink
fix: fix debug and ui size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Apr 9, 2024
1 parent 75dd02b commit a5fb999
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ jobs:
env:
TF_VAR_aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
TF_VAR_aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@sindresorhus/slugify": "2.2.1",
"@size-limit/file": "11.1.2",
"@tailwindcss/typography": "0.5.12",
"@thedutchcoder/postcss-rem-to-px": "0.0.2",
"@types/eslint": "8.56.7",
"@vitejs/plugin-vue": "5.0.4",
"@vitest/coverage-v8": "1.4.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/script-provider/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ tasks:
- --minify
- src/index.ts
platform: node
options:
runInCI: false
deps:
- ^:build
dev:
Expand Down
26 changes: 26 additions & 0 deletions packages/storipress-client/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ export type Billing = {
has_historical_subscriptions: Scalars['Boolean']['output'];
/** user has a payment method or not */
has_pm: Scalars['Boolean']['output'];
has_prophet: Scalars['Boolean']['output'];
/** user id */
id: Scalars['ID']['output'];
/**
Expand Down Expand Up @@ -1881,6 +1882,8 @@ export type Mutation = {
runScraper: Scraper;
/** manually send article newsletter */
sendArticleNewsletter: Article;
/** send cold email to subscriber */
sendColdEmailToSubscriber: Scalars['Boolean']['output'];
/** setup shopify oauth */
setupShopifyOauth: Scalars['Boolean']['output'];
/** setup shopify redirections */
Expand Down Expand Up @@ -2557,6 +2560,11 @@ export type MutationSendArticleNewsletterArgs = {
};


export type MutationSendColdEmailToSubscriberArgs = {
input: SendColdEmailToSubscriberInput;
};


export type MutationSetupShopifyOauthArgs = {
code: Scalars['String']['input'];
};
Expand Down Expand Up @@ -3784,6 +3792,17 @@ export enum ScraperType {
Preview = 'preview'
}

export type SendColdEmailToSubscriberInput = {
/** email content */
content: Scalars['String']['input'];
/** subscriber id */
id: Scalars['String']['input'];
/** reply to for the email */
reply_to?: InputMaybe<Scalars['EmailString']['input']>;
/** email subject */
subject: Scalars['String']['input'];
};

export type ShopifyCollection = {
__typename?: 'ShopifyCollection';
page_info?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -3907,6 +3926,7 @@ export type Site = {
enabled: Scalars['Boolean']['output'];
/** publication favicon, base64 type */
favicon?: Maybe<Scalars['String']['output']>;
has_prophet: Scalars['Boolean']['output'];
/** main hosting site */
hosting?: Maybe<SiteHosting>;
/** publication id */
Expand All @@ -3928,6 +3948,8 @@ export type Site = {
newsletter: Scalars['Boolean']['output'];
/** newstand api key */
newstand_key?: Maybe<Scalars['String']['output']>;
/** leaky paywall configurations */
paywall_config?: Maybe<Scalars['JSON']['output']>;
/** static site url structures */
permalinks?: Maybe<Scalars['JSON']['output']>;
/**
Expand Down Expand Up @@ -3999,6 +4021,8 @@ export type SiteSubscriptionInfo = {
name: Scalars['String']['output'];
/** publication has enabled newsletter or not */
newsletter: Scalars['Boolean']['output'];
/** leaky paywall configurations */
paywall_config?: Maybe<Scalars['JSON']['output']>;
/** stripe account id */
stripe_account_id?: Maybe<Scalars['String']['output']>;
/** publication has enabled subscription or not */
Expand Down Expand Up @@ -4697,6 +4721,8 @@ export type UpdateSiteInput = {
lang?: InputMaybe<Scalars['String']['input']>;
/** publication name */
name?: InputMaybe<Scalars['String']['input']>;
/** leaky paywall configurations */
paywall_config?: InputMaybe<Scalars['JSON']['input']>;
/** static site url structures */
permalinks?: InputMaybe<Scalars['JSON']['input']>;
/** customized sitemap */
Expand Down
2 changes: 2 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export default {
plugins: {
tailwindcss: {},
// workaround to prevent shopify override root font size
'@thedutchcoder/postcss-rem-to-px': {},
autoprefixer: {},
},
}
2 changes: 1 addition & 1 deletion src/components/LeakyPaywallDebug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const hasArticle = computed(() => !!debugInfo.value._a)
</script>

<template>
<div class="fixed right-0 top-0 p-1 text-sm shadow-lg">
<div class="fixed right-0 top-0 z-[99999] bg-white p-1 text-sm shadow-lg">
<h3 class="text-bold text-lg">Storipress Prophet</h3>
<div v-if="isLoading && !debugInfo">Connecting to Prophet...</div>
<template v-else>
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3151,6 +3151,7 @@ __metadata:
"@sindresorhus/slugify": "npm:2.2.1"
"@size-limit/file": "npm:11.1.2"
"@tailwindcss/typography": "npm:0.5.12"
"@thedutchcoder/postcss-rem-to-px": "npm:0.0.2"
"@types/eslint": "npm:8.56.7"
"@urql/vue": "npm:^1.1.3"
"@vee-validate/zod": "npm:^4.12.6"
Expand Down Expand Up @@ -3296,6 +3297,15 @@ __metadata:
languageName: node
linkType: hard

"@thedutchcoder/postcss-rem-to-px@npm:0.0.2":
version: 0.0.2
resolution: "@thedutchcoder/postcss-rem-to-px@npm:0.0.2"
peerDependencies:
postcss: ^8.3.0
checksum: 10c0/edd89accdec2b82e9acc88a93cdba56dde9cf4a1cd04b44a71541304396b175b9cba59e62984736bc8529a1c1e1857ddc3d54a8016a95ee633257482b7a8764d
languageName: node
linkType: hard

"@tokenizer/token@npm:^0.3.0":
version: 0.3.0
resolution: "@tokenizer/token@npm:0.3.0"
Expand Down

0 comments on commit a5fb999

Please sign in to comment.