Skip to content

Commit b7cb3c5

Browse files
Merge pull request #424 from hoppscotch/main
Create a new pull request by comparing changes across two branches
2 parents 69504c5 + c35a85d commit b7cb3c5

34 files changed

+327
-134
lines changed

.github/workflows/deploy-netlify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v3
1414

15+
- name: Setup Environment
16+
run: mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
17+
1518
- name: Setup and run pnpm install
1619
uses: pnpm/[email protected]
1720
with:
1821
version: 7
1922
run_install: true
2023

21-
- name: Setup Environment
22-
run: mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
23-
2424
- name: Build Site
2525
env:
2626
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

.github/workflows/deploy-staging-netlify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
- name: Setup and run pnpm install
1717
uses: pnpm/[email protected]
18+
env:
19+
VITE_BACKEND_GQL_URL: ${{ secrets.STAGING_BACKEND_GQL_URL }}
1820
with:
1921
version: 7
2022
run_install: true

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: actions/setup-node@v2
2020
- name: Setup and run pnpm install
2121
uses: pnpm/[email protected]
22+
env:
23+
VITE_BACKEND_GQL_URL: ${{ secrets.BACKEND_GQL_URL }}
2224
with:
2325
version: 7
2426
run_install: true

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ COPY . .
1717

1818
RUN npm install -g pnpm
1919

20+
RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
21+
2022
RUN pnpm i --unsafe-perm=true
2123

2224
ENV HOST 0.0.0.0
2325
EXPOSE 3000
2426

25-
RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
27+
RUN pnpm run generate
2628

27-
CMD ["pnpm", "run", "start", "--host", "0.0.0.0"]
29+
CMD ["pnpm", "run", "start"]

TRANSLATIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ if there is no existing translation, you can create a new one by following these
1111
1. **[Fork the repository](https://github.com/hoppscotch/hoppscotch/fork).**
1212
2. **Checkout the `i18n` branch for latest translations.**
1313
3. **Create a new branch for your translation with base branch `i18n`.**
14-
4. **Create target language file in the [`locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-app/locales) directory.**
15-
5. **Copy the contents of the source file [`locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/locales/en.json) to the target language file.**
14+
4. **Create target language file in the [`/packages/hoppscotch-app/locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-app/locales) directory.**
15+
5. **Copy the contents of the source file [`/packages/hoppscotch-app/locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/locales/en.json) to the target language file.**
1616
6. **Translate the strings in the target language file.**
17-
7. **Add your language entry to [`languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/languages.json).**
17+
7. **Add your language entry to [`/packages/hoppscotch-app/languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/languages.json).**
1818
8. **Save & commit changes.**
1919
9. **Send a pull request.**
2020

firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"hosting": {
77
"predeploy": [
8-
"cd packages/hoppscotch-app && mv .env.example .env && cd ../.. && npm install -g pnpm && pnpm i && pnpm run generate"
8+
"mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env && npm install -g pnpm && pnpm i && pnpm run generate"
99
],
1010
"public": "packages/hoppscotch-app/dist",
1111
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hoppscotch-app",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Open source API development ecosystem",
55
"author": "Hoppscotch ([email protected])",
66
"private": true,
@@ -10,7 +10,7 @@
1010
"prepare": "husky install",
1111
"dev": "pnpm -r do-dev",
1212
"generate": "pnpm -r do-build-prod",
13-
"start": "pnpm -r do-prod-start",
13+
"start": "http-server packages/hoppscotch-app/dist -p 3000",
1414
"lint": "pnpm -r do-lint",
1515
"typecheck": "pnpm -r do-typecheck",
1616
"lintfix": "pnpm -r do-lintfix",
@@ -27,6 +27,7 @@
2727
"devDependencies": {
2828
"@commitlint/cli": "^16.2.3",
2929
"@commitlint/config-conventional": "^16.2.1",
30-
"@types/node": "^17.0.24"
30+
"@types/node": "^17.0.24",
31+
"http-server": "^14.1.1"
3132
}
3233
}

packages/hoppscotch-app/.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ VITE_MESSAGING_SENDER_ID=421993993223
1414
VITE_APP_ID=1:421993993223:web:ec0baa8ee8c02ffa1fc6a2
1515
VITE_MEASUREMENT_ID=G-BBJ3R80PJT
1616

17-
# Base URL
17+
# Base URLs
1818
VITE_BASE_URL=https://hoppscotch.io
19+
VITE_SHORTCODE_BASE_URL=https://hopp.sh
1920

2021
# Backend URLs
2122
VITE_BACKEND_GQL_URL=https://api.hoppscotch.io/graphql

packages/hoppscotch-app/assets/scss/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ pre.ace_editor {
455455
@apply px-1;
456456
@apply border border-dividerDark;
457457
@apply shadow-sm;
458+
@apply <sm:hidden;
458459
}
459460

460461
.capitalize-first {
@@ -469,6 +470,10 @@ details summary::-webkit-details-marker {
469470
@apply hidden;
470471
}
471472

473+
details summary .indicator {
474+
@apply transition;
475+
}
476+
472477
details[open] summary .indicator {
473478
@apply transform;
474479
@apply rotate-90;

packages/hoppscotch-app/gql-codegen.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
overwrite: true
2-
schema: https://api.hoppscotch.io/graphql
2+
schema:
3+
- ${VITE_BACKEND_GQL_URL}
34
generates:
45
src/helpers/backend/graphql.ts:
56
documents: "src/**/*.graphql"

0 commit comments

Comments
 (0)