diff --git a/apps/web/.github/workflows/build.yml b/apps/web/.github/workflows/build.yml
new file mode 100644
index 000000000..8cdaa24ce
--- /dev/null
+++ b/apps/web/.github/workflows/build.yml
@@ -0,0 +1,21 @@
+name: Build
+
+on: [pull_request, push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
+ steps:
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js 12.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+ - run: npm install
+ - run: npm build
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
new file mode 100644
index 000000000..c591a0109
--- /dev/null
+++ b/apps/web/.github/workflows/deploy.yml
@@ -0,0 +1,33 @@
+name: Build and Deploy
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ env:
+ GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
+ steps:
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js 12.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+ - run: npm install
+
+ - name: Build and Deploy 🚀
+ uses: amondnet/now-deployment@v2
+ with:
+ zeit-token: ${{ secrets.ZEIT_TOKEN }}
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ now-args: "--prod"
+ now-org-id: "Wst8mhjfr4LzbjOe956M2Z4t"
+ now-project-id: "QmStgLZ26V8aowiAAdyYaFVjRDWP9T8GEUoR9iJFSSnpWJ"
diff --git a/apps/web/.github/workflows/eslint.yml b/apps/web/.github/workflows/eslint.yml
new file mode 100644
index 000000000..cb7293e2f
--- /dev/null
+++ b/apps/web/.github/workflows/eslint.yml
@@ -0,0 +1,35 @@
+# This is a basic workflow to help you get started with Actions
+
+name: ESLint
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ pull_request:
+ branches: [master]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ lint:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v1
+ - name: Setup SSH
+ uses: webfactory/ssh-agent@v0.2.0
+ with:
+ ssh-private-key: ${{ secrets.GH_SSH_KEY }}
+ - name: Use Node.js 12.x
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+ - run: npm install
+ - name: ESLint Action
+ uses: reviewdog/action-eslint@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ reporter: github-pr-review
+ level: 'warning'
diff --git a/apps/web/.gitignore b/apps/web/.gitignore
index 4d29575de..2ebc441cd 100644
--- a/apps/web/.gitignore
+++ b/apps/web/.gitignore
@@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
+
+.now
\ No newline at end of file
diff --git a/apps/web/README.md b/apps/web/README.md
index 89b278ae3..fa4ff36c3 100644
--- a/apps/web/README.md
+++ b/apps/web/README.md
@@ -1,68 +1,3 @@
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+
Notesnook
-## Available Scripts
-
-In the project directory, you can run:
-
-### `yarn start`
-
-Runs the app in the development mode.
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
-
-The page will reload if you make edits.
-You will also see any lint errors in the console.
-
-### `yarn test`
-
-Launches the test runner in the interactive watch mode.
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `yarn build`
-
-Builds the app for production to the `build` folder.
-It correctly bundles React in production mode and optimizes the build for the best performance.
-
-The build is minified and the filenames include the hashes.
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `yarn eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
-
-### Code Splitting
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
-
-### Analyzing the Bundle Size
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
-
-### Making a Progressive Web App
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
-
-### Advanced Configuration
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
-
-### Deployment
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
-
-### `yarn build` fails to minify
-
-This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
+The best notes app in the world.
diff --git a/apps/web/package.json b/apps/web/package.json
index a7f8660a7..6487443b8 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -3,29 +3,43 @@
"version": "0.1.0",
"private": true,
"dependencies": {
+ "@mdi/js": "^5.0.45",
+ "@mdi/react": "^1.4.0",
"@rebass/forms": "^4.0.6",
"emotion-theming": "^10.0.19",
- "events": "^3.0.0",
+ "fast-sort": "^2.1.1",
+ "framer-motion": "^1.10.3",
+ "immer": "^6.0.3",
+ "libsodium-wrappers": "https://github.com/streetwriters/libsodium-packages.git#libsodium-wrappers",
"localforage": "^1.7.3",
+ "localforage-getitems": "https://github.com/thecodrr/localForage-getItems.git",
"notes-core": "npm:@streetwriters/notesnook-core@latest",
+ "quill": "https://github.com/thecodrr/quill.git#1.3.7",
"quill-magic-url": "^1.0.3",
- "quill-markdown-shortcuts": "^0.0.10",
- "react": "^16.11.0",
+ "react": "^16.13.1",
"react-app-polyfill": "^1.0.6",
- "react-dom": "^16.11.0",
- "react-feather": "^2.0.3",
- "react-modal": "^3.11.1",
- "react-quill": "^1.3.3",
- "react-scripts": "3.2.0",
- "react-simple-dropdown": "^3.2.3",
- "react-virtuoso": "^0.12.3",
+ "react-dom": "^16.13.1",
+ "react-modal": "^3.11.2",
+ "react-scripts": "3.4.1",
+ "react-virtuoso": "^0.15.0",
"rebass": "^4.0.7",
- "timeago-react": "^3.0.0"
+ "timeago-react": "^3.0.0",
+ "zustand": "^2.2.3"
},
"devDependencies": {
- "babel-loader": "8.0.6"
+ "babel-eslint": "^10.1.0",
+ "babel-loader": "8.1.0",
+ "eslint": "^6.8.0",
+ "eslint-config-react-app": "^5.2.1",
+ "eslint-plugin-import": "^2.20.2",
+ "eslint-plugin-jsx-a11y": "^6.2.3",
+ "eslint-plugin-react": "^7.19.0",
+ "eslint-plugin-react-hooks": "^3.0.0",
+ "source-map-explorer": "^2.4.2",
+ "typescript": "^3.8.3"
},
"scripts": {
+ "preinstall": "chmod +x ./scripts/ci.sh && ./scripts/ci.sh",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
diff --git a/apps/web/public/index.html b/apps/web/public/index.html
index 5c91c0e33..8ffbe76be 100644
--- a/apps/web/public/index.html
+++ b/apps/web/public/index.html
@@ -9,10 +9,10 @@
name="description"
content="Web site created using create-react-app"
/>
-
+ /> -->
- React App
+ Notesnook - A safe place to write
-
+