Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 8d2af8c

Browse files
authored
Merge pull request #512 from milaiwi/main
Convert to BlockNote, Image support, Video Support, tamagui theme, white and black theme
2 parents 365ce8c + c48ea65 commit 8d2af8c

File tree

295 files changed

+160098
-19805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+160098
-19805
lines changed

.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# electron setup
2+
dist-electron/
3+
dist/
4+
5+
# scripts and config
6+
scripts/
7+
postcss.config.js
8+
tailwind.config.js
9+
*.test.ts
10+
11+
# generated files
12+
src/components/Editor/ui/src/tamagui/themes/themes-generated.ts
13+
src/components/Editor/ui/src/generated-themes.ts

.eslintrc.js

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,60 @@ module.exports = {
55
node: true,
66
},
77
extends: [
8-
"airbnb",
9-
"airbnb/hooks",
10-
"airbnb-typescript",
11-
"plugin:prettier/recommended",
12-
"plugin:tailwindcss/recommended",
8+
'airbnb',
9+
'airbnb/hooks',
10+
'airbnb-typescript',
11+
'plugin:prettier/recommended',
12+
'plugin:tailwindcss/recommended',
1313
],
14-
parser: "@typescript-eslint/parser",
14+
parser: '@typescript-eslint/parser',
1515
parserOptions: {
16-
ecmaVersion: "latest",
17-
sourceType: "module",
18-
project: "./tsconfig.json",
16+
project: './tsconfig.json',
1917
},
20-
plugins: [
21-
"@typescript-eslint",
22-
"react",
23-
"import",
24-
"jsx-a11y",
25-
"unused-imports",
26-
"prettier",
27-
"tailwindcss",
28-
],
18+
plugins: ['@typescript-eslint', 'react', 'import', 'jsx-a11y', 'unused-imports', 'prettier', 'tailwindcss'],
2919
rules: {
30-
"unused-imports/no-unused-imports": "error",
31-
"prettier/prettier": "error",
32-
"react/function-component-definition": [
33-
"error",
20+
'unused-imports/no-unused-imports': 'error',
21+
'prettier/prettier': 'error',
22+
'react/function-component-definition': [
23+
'error',
3424
{
35-
namedComponents: "arrow-function",
36-
unnamedComponents: "arrow-function",
25+
namedComponents: 'arrow-function',
26+
unnamedComponents: 'arrow-function',
3727
},
3828
],
39-
"import/extensions": ["off", "ignorePackages"],
40-
"jsx-a11y/no-static-element-interactions": "off",
41-
"jsx-a11y/click-events-have-key-events": "off",
42-
"react/require-default-props": "off",
43-
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/electron/**", "**/preload/**"] }],
29+
'import/extensions': ['off', 'ignorePackages'],
30+
'jsx-a11y/no-static-element-interactions': 'off',
31+
'jsx-a11y/click-events-have-key-events': 'off',
32+
'react/require-default-props': 'off',
33+
'no-underscore-dangle': 'off',
34+
'react/destructoring-assignment': 'off',
35+
'react/jsx-props-no-spreading': 'off',
36+
'object-shorthand': 'off',
37+
"import/no-extraneous-dependencies": [
38+
"error", {
39+
"devDependencies": true,
40+
"optionalDependencies": false,
41+
"peerDependencies": false,
42+
"packageDir": "./"
43+
}
44+
],
45+
"react/destructuring-assignment": "off",
46+
"no-plusplus": "off",
47+
"no-restricted-syntax": "off",
48+
"no-param-reassign": 'off',
49+
"prefer-destructuring": 'off',
50+
"no-return-assign": 'off',
51+
"no-cond-assign": 'off',
52+
// TEMPORARILY DISABLE CIRCULAR DEPENDENCY CHECK -- UPDATE LATER
53+
"import/no-cycle": 'off',
54+
"no-alert": 'off',
4455
},
45-
ignorePatterns: ["vite.config.ts", ".eslintrc.js"],
56+
ignorePatterns: ['vite.config.ts', '.eslintrc.js'],
4657
settings: {
47-
"import/resolver": {
58+
'import/resolver': {
4859
node: {
49-
extensions: [".js", ".jsx", ".ts", ".tsx"],
60+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
5061
},
5162
},
5263
},
53-
};
64+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,10 +24,10 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Hardware: [e.g. CPU, RAM, GPU, etc.]
29-
- Version [e.g. 22]
3027

28+
- OS: [e.g. iOS]
29+
- Hardware: [e.g. CPU, RAM, GPU, etc.]
30+
- Version [e.g. 22]
3131

3232
**Additional context**
3333
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build and Package Electron App
22
on:
33
push:
44
branches:
5-
- "*"
5+
- '*'
66
pull_request:
77
branches:
8-
- "*"
8+
- '*'
99
jobs:
1010
build_and_package:
1111
strategy:
@@ -26,8 +26,7 @@ jobs:
2626
- name: Setup Node.js
2727
uses: actions/setup-node@v3
2828
with:
29-
node-version: "20"
30-
29+
node-version: '20'
3130
- name: Cache npm dependencies
3231
uses: actions/cache@v3
3332
with:
@@ -36,6 +35,7 @@ jobs:
3635
restore-keys: |
3736
${{ runner.os }}-npm-
3837
38+
3939
- name: Cache TypeScript build
4040
uses: actions/cache@v3
4141
with:
@@ -54,13 +54,13 @@ jobs:
5454
CSC_LINK: ${{ secrets.CSC_LINK }}
5555
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
NODE_OPTIONS: "--max-old-space-size=8192"
57+
NODE_OPTIONS: '--max-old-space-size=8192'
5858
run: |
5959
npm run build
6060
- name: Build for non-macOS
6161
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
6262
env:
63-
NODE_OPTIONS: "--max-old-space-size=8192"
63+
NODE_OPTIONS: '--max-old-space-size=8192'
6464
run: |
6565
npm run build
6666
- name: Notarize macOS build
@@ -74,11 +74,11 @@ jobs:
7474
- name: Print APP_VERSION
7575
run: echo "APP_VERSION=${{ env.APP_VERSION }}"
7676
- name: List output files
77-
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
77+
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
7878
run: |
7979
ls ./release/${{ env.APP_VERSION }}/
8080
- name: Check runner architecture
81-
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
81+
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
8282
run: uname -m
8383
- name: Rename artifacts for ARM architecture
8484
if: matrix.os == 'macos-latest'
@@ -96,4 +96,4 @@ jobs:
9696
./release/*/*.exe
9797
./release/${{ env.APP_VERSION }}/**/*.AppImage
9898
./release/${{ env.APP_VERSION }}/*-arm64.dmg
99-
./release/${{ env.APP_VERSION }}/*-intel.dmg
99+
./release/${{ env.APP_VERSION }}/*-intel.dmg

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release script
22
on:
33
push:
44
tags:
5-
- "v*"
5+
- 'v*'
66
jobs:
77
build_and_package:
88
runs-on: ${{ matrix.os }}
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: "20"
24+
node-version: '20'
2525
- name: Cache npm dependencies
2626
uses: actions/cache@v3
2727
with:
@@ -48,7 +48,7 @@ jobs:
4848
CSC_LINK: ${{ secrets.CSC_LINK }}
4949
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
5050
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
NODE_OPTIONS: "--max-old-space-size=8192"
51+
NODE_OPTIONS: '--max-old-space-size=8192'
5252
run: |
5353
npm run build
5454
- name: Notarize macOS build
@@ -60,7 +60,7 @@ jobs:
6060
- name: Build for non-macOS
6161
if: matrix.os != 'macos-13' && matrix.os != 'macos-latest'
6262
env:
63-
NODE_OPTIONS: "--max-old-space-size=8192"
63+
NODE_OPTIONS: '--max-old-space-size=8192'
6464
run: |
6565
npm run build
6666
- name: Set version as env
@@ -98,4 +98,4 @@ jobs:
9898
**/*.AppImage
9999
**/*.dmg
100100
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"semi": false,
77
"singleQuote": true,
88
"endOfLine": "lf"
9-
}
9+
}

0 commit comments

Comments
 (0)