Skip to content

Commit

Permalink
chore: Release v0.3.2-beta.0 (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod authored Jan 18, 2025
2 parents 9f9ca45 + ac29a18 commit 6b029ed
Show file tree
Hide file tree
Showing 236 changed files with 9,188 additions and 1,694 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🐞 Bug report
description: Report an issue
labels: [pending triage]
labels: [pending triage, bug]
type: Bug
body:
- type: markdown
Expand Down
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Before submitting the PR, please make sure you do the following:
- [ ] Hotfix
- [ ] Other (please describe):

### Screenshots (if UI change)

### Demo Video (if new feature)

### Linked Issues

### Additional context
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/auto-fix-lint-format-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
run: pnpm install

- name: Run linter and fix issues
run: pnpm run lint:fix
run: |
export NODE_OPTIONS="--max_old_space_size=16384"
pnpm run lint:fix
- name: Run formatter
run: pnpm run format
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ concurrency:
env:
VITE_WEB_URL: ${{ vars.VITE_WEB_URL }}
VITE_API_URL: ${{ vars.VITE_API_URL }}
VITE_IMGPROXY_URL: ${{ vars.VITE_IMGPROXY_URL }}
VITE_SENTRY_DSN: ${{ vars.VITE_SENTRY_DSN }}
VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }}
VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: pnpm install
- name: Format, Lint and Typecheck
run: |
export NODE_OPTIONS="--max_old_space_size=16384"
npm exec turbo run format:check typecheck lint
- name: Run test
run: npm exec turbo run test
1 change: 0 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
env:
VITE_WEB_URL: ${{ vars.VITE_WEB_URL }}
VITE_API_URL: ${{ vars.VITE_API_URL }}
VITE_IMGPROXY_URL: ${{ vars.VITE_IMGPROXY_URL }}
VITE_SENTRY_DSN: ${{ vars.VITE_SENTRY_DSN }}
VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }}
VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }}
Expand Down
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"recommendations": ["dbaeumer.vscode-eslint"]
"recommendations": [
"dbaeumer.vscode-eslint",
"johnsoncodehk.vscode-tsslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss"
]
}
67 changes: 66 additions & 1 deletion CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pnpm install
### Develop in the browser

```sh
pnpm run dev:web
pnpm run dev
```

Then the browser opens `https://app.follow.is/__debug_proxy`,you can access the online API environment to development and debugging.
Expand All @@ -120,7 +120,7 @@ cp .env.example .env
Then set `VITE_API_URL` to `https://api.follow.is` and run:

```sh
pnpm run dev
pnpm run dev:electron
```

Since it is not very convenient to develop in Electron, the first way to develop and contribute is recommended at this stage.
Expand Down
5 changes: 4 additions & 1 deletion apps/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ function bootstrap() {
// handle session cookie when sign in with email in electron
session.defaultSession.webRequest.onHeadersReceived(
{
urls: [`${apiURL}/better-auth/sign-in/email?*`],
urls: [
`${apiURL}/better-auth/sign-in/email?*`,
`${apiURL}/better-auth/two-factor/verify-totp?*`,
],
},
(detail, callback) => {
const { responseHeaders } = detail
Expand Down
5 changes: 5 additions & 0 deletions apps/main/src/lib/proxy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { session } from "electron"
import { ProxyAgent, setGlobalDispatcher } from "undici"

import { logger } from "../logger"
import { store } from "./store"
Expand Down Expand Up @@ -77,4 +78,8 @@ export const updateProxy = () => {
proxyRules,
proxyBypassRules: BYPASS_RULES,
})
// Currently, Session.setProxy is not working for native fetch, which is used by readability.
// So we need to set proxy for native fetch manually, refer to https://stackoverflow.com/a/76503362/14676508
const dispatcher = new ProxyAgent({ uri: new URL(proxyUri).toString() })
setGlobalDispatcher(dispatcher)
}
2 changes: 2 additions & 0 deletions apps/mobile/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
],
"expo-apple-authentication",
[require("./scripts/with-follow-assets.js")],
[require("./scripts/with-follow-app-delegate.js")],
"expo-secure-store",
],
experiments: {
typedRoutes: true,
Expand Down
18 changes: 18 additions & 0 deletions apps/mobile/drizzle/0005_tense_sleepwalker.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE TABLE `entries` (
`id` text PRIMARY KEY NOT NULL,
`title` text,
`url` text,
`content` text,
`description` text,
`guid` text NOT NULL,
`author` text,
`author_url` text,
`author_avatar` text,
`inserted_at` integer NOT NULL,
`published_at` integer NOT NULL,
`media` text,
`categories` text,
`attachments` text,
`extra` text,
`language` text
);
3 changes: 3 additions & 0 deletions apps/mobile/drizzle/0006_exotic_kid_colt.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE `entries` ADD `feed_id` text;--> statement-breakpoint
ALTER TABLE `entries` ADD `inbox_handle` text;--> statement-breakpoint
ALTER TABLE `entries` ADD `read` integer;
1 change: 1 addition & 0 deletions apps/mobile/drizzle/0007_curvy_tarantula.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `lists` ADD `entry_ids` text;
Loading

0 comments on commit 6b029ed

Please sign in to comment.