diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 0877a2602..000000000 --- a/.dockerignore +++ /dev/null @@ -1,15 +0,0 @@ -.git/ -.gitignore -.eslintcache -node_modules -dist - -packages/web-server/public/assets -packages/web-server/tmp -packages/web-server/vendor/bundles - -packages/desktop -!packages/desktop/package.json - -packages/mobile -!packages/mobile/package.json \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9f317f5a4..46c1554b5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -181,14 +181,6 @@ updates: - "moughxyz" - "karolsojko" - - package-ecosystem: "bundler" - directory: "/packages/web-server" - schedule: - interval: "daily" - reviewers: - - "moughxyz" - - "karolsojko" - - package-ecosystem: "github-actions" directory: "/" schedule: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8a184010e..f86c3fc60 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,8 +14,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - name: Install dependencies run: yarn install --immutable - name: Build diff --git a/.github/workflows/web.release.prod.yml b/.github/workflows/web.release.prod.yml index e6e2037a3..8a9136c9e 100644 --- a/.github/workflows/web.release.prod.yml +++ b/.github/workflows/web.release.prod.yml @@ -1,4 +1,4 @@ -name: Web Server Deploy +name: Web Deploy concurrency: group: prod_environment @@ -7,9 +7,9 @@ concurrency: on: push: tags: - - '*standardnotes/*web-server*' - - '!*standardnotes/*web-server*beta*' - - '!*standardnotes/*web-server*alpha*' + - '*standardnotes/*web*' + - '!*standardnotes/*web*beta*' + - '!*standardnotes/*web*alpha*' jobs: test: @@ -17,62 +17,42 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - name: Install dependencies - run: yarn install + run: yarn install --immutable - name: Build - run: yarn build:web-server + run: yarn build:web - name: ESLint run: yarn lint - name: Test run: yarn test - deploy: - runs-on: ubuntu-latest - needs: test + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - - name: Copy robots.txt - run: cp packages/web-server/public/robots.txt.production packages/web-server/public/robots.txt - - - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@master - with: - name: standardnotes/web - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - tags: "stable,${{ github.sha }}" - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - - name: Download task definition - run: | - aws ecs describe-task-definition --task-definition app-prod --query taskDefinition > task-definition.json - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: app-prod - image: "standardnotes/web:${{ github.sha }}" - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: app-prod - cluster: prod - wait-for-service-stability: true + - name: Checkout code + uses: actions/checkout@v3 + - name: Install dependencies + run: yarn install --immutable + - name: Build + run: yarn build:web + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: Deploy static site to S3 bucket + run: aws s3 sync packages/web/dist/ s3://app-static.standardnotes.com --delete + - name: Invalidate CloudFront Cache + uses: chetan/invalidate-cloudfront-action@master + env: + DISTRIBUTION: ${{ secrets.WEBAPP_CLOUDFRONT_DISTRIBUTION_ID }} + PATHS: '/*' + AWS_REGION: 'us-east-1' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} notify_discord: needs: deploy diff --git a/.github/workflows/web.release.test.yml b/.github/workflows/web.release.test.yml deleted file mode 100644 index 088c5eef6..000000000 --- a/.github/workflows/web.release.test.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Web Server TestFlight - -concurrency: - group: dev_environment - cancel-in-progress: true - -on: - workflow_dispatch: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - - name: Install dependencies - run: yarn install - - name: Build - run: yarn build:web-server - - name: ESLint - run: yarn lint - - name: Test - run: yarn test - - - deploy: - runs-on: ubuntu-latest - - needs: test - - steps: - - uses: actions/checkout@v3 - - - name: Copy robots.txt - run: cp packages/web-server/public/robots.txt.development packages/web-server/public/robots.txt - - - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@master - with: - name: standardnotes/web - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - tags: "latest,${{ github.sha }}" - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-1 - - - name: Download task definition - run: | - aws ecs describe-task-definition --task-definition app-dev --query taskDefinition > task-definition.json - - - name: Fill in the new image ID in the Amazon ECS task definition - id: task-def - uses: aws-actions/amazon-ecs-render-task-definition@v1 - with: - task-definition: task-definition.json - container-name: app-dev - image: "standardnotes/web:${{ github.sha }}" - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: app-dev - cluster: dev - wait-for-service-stability: true - - notify_discord: - needs: deploy - - runs-on: ubuntu-latest - - steps: - - name: Run Discord Webhook - uses: johnnyhuy/actions-discord-git-webhook@main - with: - webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} diff --git a/.github/workflows/webserver.pr.yml b/.github/workflows/webserver.pr.yml deleted file mode 100644 index c242bb0c0..000000000 --- a/.github/workflows/webserver.pr.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Web Server PR - -on: - pull_request: - branches: - - main - paths: - - 'packages/web-server/**' - -jobs: - TestDockerBuild: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - - name: Copy default configuration - run: yarn workspace @standardnotes/web-server run sample:env - - name: Test build of the image - run: docker build -t standardnotes/web:test-build . \ No newline at end of file diff --git a/.yarn/versions/eee2d91d.yml b/.yarn/versions/eee2d91d.yml index a3acc1388..598529904 100644 --- a/.yarn/versions/eee2d91d.yml +++ b/.yarn/versions/eee2d91d.yml @@ -4,7 +4,6 @@ undecided: - "@standardnotes/mobile" - "@standardnotes/styles" - "@standardnotes/toast" - - "@standardnotes/web-server" - "@standardnotes/advanced-checklist" - "@standardnotes/markdown-visual" - "@standardnotes/autobiography-theme" diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index ad5444bf1..000000000 --- a/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM ruby:2.7.4-alpine3.14 - -ARG USERNAME=snjs -ARG UID=1001 -ARG GID=$UID - -RUN apk add --update --no-cache \ - alpine-sdk \ - nodejs-current \ - python3 \ - git \ - yarn \ - tzdata - -RUN addgroup -S $USERNAME -g $GID && adduser -D -S $USERNAME -G $USERNAME -u $UID - -WORKDIR /app - -RUN chown -R $UID:$GID . - -USER $USERNAME - -COPY --chown=$UID:$GID . . - -RUN yarn install - -RUN gem install bundler - -RUN yarn build:web-server - -EXPOSE 3000 - -ENTRYPOINT [ "./docker/entrypoint.sh" ] - -CMD [ "start" ] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 3442c8e81..000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: '3.8' -services: - app: - build: . - command: start-local - env_file: .env - restart: unless-stopped - ports: - - ${PORT}:3001 - volumes: - - .:/app - networks: - standardnotes_proxy: - aliases: - - web - web: {} - -networks: - web: - name: web - standardnotes_proxy: - name: standardnotes diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh deleted file mode 100755 index 15c759d87..000000000 --- a/docker/entrypoint.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -set -e - -COMMAND=$1 && shift 1 - -case "$COMMAND" in - 'start' ) - echo "Prestart Step 1/1 - Removing server lock" - rm -f /app/packages/web-server/tmp/pids/server.pid - echo "Starting Server..." - yarn start:server:web - ;; - - 'start-local' ) - echo "Prestart Step 1/4 - Removing server lock" - rm -f /app/packages/web-server/tmp/pids/server.pid - echo "Prestart Step 2/4 - Cleaning assets" - yarn clean - echo "Prestart Step 3/4 - Installing dependencies" - yarn install - echo "Prestart Step 4/4 - Building" - yarn build - echo "Starting Server..." - yarn start:server:web - ;; - - * ) - echo "Unknown command" - ;; -esac - -exec "$@" diff --git a/package.json b/package.json index 7bc002b52..b36f5cf7d 100644 --- a/package.json +++ b/package.json @@ -19,18 +19,16 @@ "node": ">=12.19.0 <17.0.0" }, "scripts": { - "lint": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run lint", - "test": "yarn workspaces foreach -pt --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run test", + "lint": "yarn workspaces foreach -t --jobs 10 --verbose --exclude @standardnotes/components-meta run lint", + "test": "yarn workspaces foreach -pt --jobs 10 --verbose --exclude @standardnotes/components-meta run test", "clean": "lerna run clean", - "build:all": "yarn workspaces foreach -pt --verbose --exclude '{@standardnotes/components-meta,@standardnotes/docs}' run build", + "build:all": "yarn workspaces foreach -pt --verbose --exclude '{@standardnotes/docs}' run build", "build:components": "yarn workspaces foreach -pt --verbose --interlaced -R --from @standardnotes/components-meta run build", "build:web": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/web --exclude @standardnotes/components-meta run build", "build:desktop": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/desktop --exclude @standardnotes/components-meta run build", "build:mobile": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/mobile --exclude @standardnotes/components-meta run build", - "build:web-server": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/web-server --exclude @standardnotes/components-meta run build", "build:snjs": "yarn workspaces foreach -pt --verbose -R --from @standardnotes/snjs --exclude @standardnotes/components-meta run build", - "start:server:web": "lerna run start --scope=@standardnotes/web-server", - "start:server:web:localhost": "lerna run start:no-binding --scope=@standardnotes/web-server", + "start:server:web": "lerna run start --scope=@standardnotes/web", "start:server:e2e": "lerna run start:test-server --scope=@standardnotes/snjs", "prepare": "husky install", "reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install", diff --git a/packages/mobile/.eslintignore b/packages/mobile/.eslintignore new file mode 100644 index 000000000..7b9e4fbcc --- /dev/null +++ b/packages/mobile/.eslintignore @@ -0,0 +1,3 @@ +metro.config.js +packages/mobile/html/Web.bundle/src/components +packages/mobile/html/Web.bundle/src/web-src diff --git a/packages/mobile/.eslintrc b/packages/mobile/.eslintrc index 63d4b65e9..9f40a1fe6 100644 --- a/packages/mobile/.eslintrc +++ b/packages/mobile/.eslintrc @@ -10,6 +10,5 @@ "@typescript-eslint/no-var-requires": "off", "eqeqeq": ["off"], "no-void": ["off"] - }, - "ignorePatterns": ["metro.config.js"] + } } diff --git a/packages/web-server/.bundle/config b/packages/web-server/.bundle/config deleted file mode 100644 index 236922881..000000000 --- a/packages/web-server/.bundle/config +++ /dev/null @@ -1,2 +0,0 @@ ---- -BUNDLE_PATH: "vendor/bundle" diff --git a/packages/web-server/.env.sample b/packages/web-server/.env.sample deleted file mode 100644 index cd705c8e0..000000000 --- a/packages/web-server/.env.sample +++ /dev/null @@ -1,30 +0,0 @@ -RAILS_ENV=development -PORT=3001 -WEB_CONCURRENCY=0 -RAILS_LOG_TO_STDOUT=true - -# Log Level options: "INFO" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL" -RAILS_LOG_LEVEL=INFO - -RAILS_SERVE_STATIC_FILES=true -SECRET_KEY_BASE=test - -APP_HOST=http://localhost:3001 -PURCHASE_URL=https://standardnotes.com/purchase -PLANS_URL=https://standardnotes.com/plans -DASHBOARD_URL=http://standardnotes.com/dashboard -DEFAULT_SYNC_SERVER=http://localhost:3000 -WEBSOCKET_URL=wss://sockets-dev.standardnotes.com - -ENABLE_UNFINISHED_FEATURES=false - -# NewRelic (Optional) -NEW_RELIC_ENABLED=false -NEW_RELIC_THREAD_PROFILER_ENABLED=false -NEW_RELIC_LICENSE_KEY= -NEW_RELIC_APP_NAME=Web -NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT=false - -DEV_ACCOUNT_EMAIL= -DEV_ACCOUNT_PASSWORD= -DEV_ACCOUNT_SERVER= diff --git a/packages/web-server/.gitignore b/packages/web-server/.gitignore deleted file mode 100644 index 7f87439de..000000000 --- a/packages/web-server/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -log/* -!log/.gitkeep -tmp -config/cap.yml -app/assets/templates/generated/ -public/assets -public/components/assets -public/robots.txt -public/uploads/* -packages/!web-server/public/uploads/.keep -vendor \ No newline at end of file diff --git a/packages/web-server/CHANGELOG.md b/packages/web-server/CHANGELOG.md deleted file mode 100644 index 1a9ea639d..000000000 --- a/packages/web-server/CHANGELOG.md +++ /dev/null @@ -1,640 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [1.2.105](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.104...@standardnotes/web-server@1.2.105) (2022-07-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.104](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.103...@standardnotes/web-server@1.2.104) (2022-07-26) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.103](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.102...@standardnotes/web-server@1.2.103) (2022-07-25) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.102](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.101...@standardnotes/web-server@1.2.102) (2022-07-20) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.101](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.100...@standardnotes/web-server@1.2.101) (2022-07-18) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.100](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.99...@standardnotes/web-server@1.2.100) (2022-07-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.99](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.98...@standardnotes/web-server@1.2.99) (2022-07-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.98](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.97...@standardnotes/web-server@1.2.98) (2022-07-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.97](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.96...@standardnotes/web-server@1.2.97) (2022-07-13) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.96](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.95...@standardnotes/web-server@1.2.96) (2022-07-13) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.95](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.94...@standardnotes/web-server@1.2.95) (2022-07-12) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.94](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.93...@standardnotes/web-server@1.2.94) (2022-07-11) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.93](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.92...@standardnotes/web-server@1.2.93) (2022-07-09) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.92](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.91...@standardnotes/web-server@1.2.92) (2022-07-08) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.91](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.90...@standardnotes/web-server@1.2.91) (2022-07-08) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.90](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.89...@standardnotes/web-server@1.2.90) (2022-07-08) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.89](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.88...@standardnotes/web-server@1.2.89) (2022-07-08) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.88](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.87...@standardnotes/web-server@1.2.88) (2022-07-07) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.87](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.86...@standardnotes/web-server@1.2.87) (2022-07-07) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.86](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.85...@standardnotes/web-server@1.2.86) (2022-07-07) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.85](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.84...@standardnotes/web-server@1.2.85) (2022-07-07) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.84](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.83...@standardnotes/web-server@1.2.84) (2022-07-07) - -### Reverts - -* Revert "chore: deps (#1222)" ([7017032](https://github.com/standardnotes/app/commit/701703289330baee4a5082df42bb787694fe7509)), closes [#1222](https://github.com/standardnotes/app/issues/1222) - -## [1.2.83](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.82...@standardnotes/web-server@1.2.83) (2022-07-07) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.82](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.81...@standardnotes/web-server@1.2.82) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.81](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.80...@standardnotes/web-server@1.2.81) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.80](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.79...@standardnotes/web-server@1.2.80) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.79](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.78...@standardnotes/web-server@1.2.79) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.78](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.77...@standardnotes/web-server@1.2.78) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.77](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.76...@standardnotes/web-server@1.2.77) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.76](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.75...@standardnotes/web-server@1.2.76) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.75](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.74...@standardnotes/web-server@1.2.75) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.74](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.73...@standardnotes/web-server@1.2.74) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.73](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.72...@standardnotes/web-server@1.2.73) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.72](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.71...@standardnotes/web-server@1.2.72) (2022-07-06) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.71](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.70...@standardnotes/web-server@1.2.71) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.70](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.69...@standardnotes/web-server@1.2.70) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.69](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.68...@standardnotes/web-server@1.2.69) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.68](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.67...@standardnotes/web-server@1.2.68) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.67](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.66...@standardnotes/web-server@1.2.67) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.66](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.65...@standardnotes/web-server@1.2.66) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.65](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.64...@standardnotes/web-server@1.2.65) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.64](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.63...@standardnotes/web-server@1.2.64) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.63](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.62...@standardnotes/web-server@1.2.63) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.62](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.61...@standardnotes/web-server@1.2.62) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.61](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.60...@standardnotes/web-server@1.2.61) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.60](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.59...@standardnotes/web-server@1.2.60) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.59](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.58...@standardnotes/web-server@1.2.59) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.58](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.57...@standardnotes/web-server@1.2.58) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.57](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.56...@standardnotes/web-server@1.2.57) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.56](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.55...@standardnotes/web-server@1.2.56) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.55](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.54...@standardnotes/web-server@1.2.55) (2022-07-05) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.54](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.53...@standardnotes/web-server@1.2.54) (2022-07-04) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.53](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.52...@standardnotes/web-server@1.2.53) (2022-07-04) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.52](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.51...@standardnotes/web-server@1.2.52) (2022-07-02) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.51](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.50...@standardnotes/web-server@1.2.51) (2022-07-02) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.50](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.49...@standardnotes/web-server@1.2.50) (2022-07-01) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.49](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.48...@standardnotes/web-server@1.2.49) (2022-07-01) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.48](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.47...@standardnotes/web-server@1.2.48) (2022-07-01) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.47](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.46...@standardnotes/web-server@1.2.47) (2022-07-01) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.46](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.45...@standardnotes/web-server@1.2.46) (2022-06-30) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.45](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.44...@standardnotes/web-server@1.2.45) (2022-06-30) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.44](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.43...@standardnotes/web-server@1.2.44) (2022-06-30) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.43](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.42...@standardnotes/web-server@1.2.43) (2022-06-30) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.42](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.41...@standardnotes/web-server@1.2.42) (2022-06-29) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.41](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.40...@standardnotes/web-server@1.2.41) (2022-06-29) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.40](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.39...@standardnotes/web-server@1.2.40) (2022-06-29) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.39](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.38...@standardnotes/web-server@1.2.39) (2022-06-29) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.38](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.37...@standardnotes/web-server@1.2.38) (2022-06-29) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.37](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.36...@standardnotes/web-server@1.2.37) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.36](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.35...@standardnotes/web-server@1.2.36) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.35](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.34...@standardnotes/web-server@1.2.35) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.34](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.33...@standardnotes/web-server@1.2.34) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.33](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.32...@standardnotes/web-server@1.2.33) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.32](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.31...@standardnotes/web-server@1.2.32) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.31](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.30...@standardnotes/web-server@1.2.31) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.30](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.29...@standardnotes/web-server@1.2.30) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.29](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.28...@standardnotes/web-server@1.2.29) (2022-06-28) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.28](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.27...@standardnotes/web-server@1.2.28) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.27](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.26...@standardnotes/web-server@1.2.27) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.26](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.25...@standardnotes/web-server@1.2.26) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.25](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.24...@standardnotes/web-server@1.2.25) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.24](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.23...@standardnotes/web-server@1.2.24) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.23](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.22...@standardnotes/web-server@1.2.23) (2022-06-27) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.22](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.21...@standardnotes/web-server@1.2.22) (2022-06-25) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.21](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.20...@standardnotes/web-server@1.2.21) (2022-06-24) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.20](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.19...@standardnotes/web-server@1.2.20) (2022-06-24) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.19](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.18...@standardnotes/web-server@1.2.19) (2022-06-24) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.18](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.18-alpha.2...@standardnotes/web-server@1.2.18) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.18-alpha.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.18-alpha.1...@standardnotes/web-server@1.2.18-alpha.2) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.18-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.18-alpha.0...@standardnotes/web-server@1.2.18-alpha.1) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.18-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.17...@standardnotes/web-server@1.2.18-alpha.0) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.17](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.17-alpha.3...@standardnotes/web-server@1.2.17) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.17-alpha.3](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.17-alpha.2...@standardnotes/web-server@1.2.17-alpha.3) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.17-alpha.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.17-alpha.1...@standardnotes/web-server@1.2.17-alpha.2) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.17-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.17-alpha.0...@standardnotes/web-server@1.2.17-alpha.1) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.17-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.16...@standardnotes/web-server@1.2.17-alpha.0) (2022-06-23) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.16](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.16-alpha.0...@standardnotes/web-server@1.2.16) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.16-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15...@standardnotes/web-server@1.2.16-alpha.0) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.10...@standardnotes/web-server@1.2.15) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.10](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.9...@standardnotes/web-server@1.2.15-alpha.10) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.9](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.8...@standardnotes/web-server@1.2.15-alpha.9) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.8](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.7...@standardnotes/web-server@1.2.15-alpha.8) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.7](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.6...@standardnotes/web-server@1.2.15-alpha.7) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.6](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.5...@standardnotes/web-server@1.2.15-alpha.6) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.5](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.4...@standardnotes/web-server@1.2.15-alpha.5) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.4](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.3...@standardnotes/web-server@1.2.15-alpha.4) (2022-06-22) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.3](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.2...@standardnotes/web-server@1.2.15-alpha.3) (2022-06-21) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.1...@standardnotes/web-server@1.2.15-alpha.2) (2022-06-21) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.15-alpha.0...@standardnotes/web-server@1.2.15-alpha.1) (2022-06-21) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.15-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.14...@standardnotes/web-server@1.2.15-alpha.0) (2022-06-20) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.14](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.14-alpha.2...@standardnotes/web-server@1.2.14) (2022-06-20) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.14-alpha.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.14-alpha.1...@standardnotes/web-server@1.2.14-alpha.2) (2022-06-20) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.14-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.14-alpha.0...@standardnotes/web-server@1.2.14-alpha.1) (2022-06-19) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.14-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.13...@standardnotes/web-server@1.2.14-alpha.0) (2022-06-18) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.13](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.13-alpha.0...@standardnotes/web-server@1.2.13) (2022-06-18) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.13-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.12...@standardnotes/web-server@1.2.13-alpha.0) (2022-06-18) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.12](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.12-alpha.0...@standardnotes/web-server@1.2.12) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.12-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.10-alpha.3...@standardnotes/web-server@1.2.12-alpha.0) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.11](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.10-alpha.1...@standardnotes/web-server@1.2.11) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.10](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.10-alpha.1...@standardnotes/web-server@1.2.10) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.10-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.10-alpha.0...@standardnotes/web-server@1.2.10-alpha.1) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.10-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.9...@standardnotes/web-server@1.2.10-alpha.0) (2022-06-17) - -**Note:** Version bump only for package @standardnotes/web-server - -## 1.2.9 (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## 1.2.8 (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.23...@standardnotes/web-server@1.2.7) (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.23](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.22...@standardnotes/web-server@1.2.7-alpha.23) (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.22](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.21...@standardnotes/web-server@1.2.7-alpha.22) (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## 1.2.7-alpha.21 (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## 1.2.7-alpha.20 (2022-06-16) - -**Note:** Version bump only for package @standardnotes/web-server - -## 1.2.7-alpha.19 (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.18](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.17...@standardnotes/web-server@1.2.7-alpha.18) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.17](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.16...@standardnotes/web-server@1.2.7-alpha.17) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.16](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.15...@standardnotes/web-server@1.2.7-alpha.16) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.15](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.14...@standardnotes/web-server@1.2.7-alpha.15) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.14](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.13...@standardnotes/web-server@1.2.7-alpha.14) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.13](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.12...@standardnotes/web-server@1.2.7-alpha.13) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.12](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.11...@standardnotes/web-server@1.2.7-alpha.12) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.11](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.10...@standardnotes/web-server@1.2.7-alpha.11) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.10](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.9...@standardnotes/web-server@1.2.7-alpha.10) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.9](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.8...@standardnotes/web-server@1.2.7-alpha.9) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.8](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.7...@standardnotes/web-server@1.2.7-alpha.8) (2022-06-15) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.7](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.6...@standardnotes/web-server@1.2.7-alpha.7) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.6](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.5...@standardnotes/web-server@1.2.7-alpha.6) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.5](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.4...@standardnotes/web-server@1.2.7-alpha.5) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.4](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.3...@standardnotes/web-server@1.2.7-alpha.4) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.3](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.2...@standardnotes/web-server@1.2.7-alpha.3) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.1...@standardnotes/web-server@1.2.7-alpha.2) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.7-alpha.0...@standardnotes/web-server@1.2.7-alpha.1) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.7-alpha.0](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.6...@standardnotes/web-server@1.2.7-alpha.0) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.6](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.5...@standardnotes/web-server@1.2.6) (2022-06-14) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.5](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.4...@standardnotes/web-server@1.2.5) (2022-06-11) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.4](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.3...@standardnotes/web-server@1.2.4) (2022-06-11) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.3](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.2...@standardnotes/web-server@1.2.3) (2022-06-11) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.2](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.1...@standardnotes/web-server@1.2.2) (2022-06-11) - -**Note:** Version bump only for package @standardnotes/web-server - -## [1.2.1](https://github.com/standardnotes/app/compare/@standardnotes/web-server@1.2.0...@standardnotes/web-server@1.2.1) (2022-06-10) - -**Note:** Version bump only for package @standardnotes/web-server - -# 1.2.0 (2022-06-10) - -### Features - -* mobile app package ([#1075](https://github.com/standardnotes/app/issues/1075)) ([8248a38](https://github.com/standardnotes/app/commit/8248a38280cb7c92da2b2e9c7db298f34ae8ffdf)) -* **wip:** components monorepo ([#1082](https://github.com/standardnotes/app/issues/1082)) ([e3d6001](https://github.com/standardnotes/app/commit/e3d6001a178e11e619ca724b2b155b7c0405c023)) - -# 1.1.0 (2022-06-10) - -### Features - -* mobile app package ([#1075](https://github.com/standardnotes/app/issues/1075)) ([8248a38](https://github.com/standardnotes/app/commit/8248a38280cb7c92da2b2e9c7db298f34ae8ffdf)) -* **wip:** components monorepo ([8c5e11c](https://github.com/standardnotes/app/commit/8c5e11c22b717ada7a6a9b3115fc4c9b757ec71c)) diff --git a/packages/web-server/Gemfile b/packages/web-server/Gemfile deleted file mode 100644 index 8174592e1..000000000 --- a/packages/web-server/Gemfile +++ /dev/null @@ -1,16 +0,0 @@ -source 'https://rubygems.org' - -gem 'dotenv-rails' -gem 'lograge', '~> 0.11.2' -gem 'newrelic_rpm', '~> 7.0' -gem 'non-stupid-digest-assets' -gem 'rack-cors', require: 'rack/cors' -gem 'rails', '5.1.7' -gem 'secure_headers' - -group :development, :test do - gem 'byebug' - gem 'puma' - gem 'spring' - gem 'web-console', '3.5.1' -end diff --git a/packages/web-server/Gemfile.lock b/packages/web-server/Gemfile.lock deleted file mode 100644 index 5c0e4a8aa..000000000 --- a/packages/web-server/Gemfile.lock +++ /dev/null @@ -1,159 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.1.7) - actionpack (= 5.1.7) - nio4r (~> 2.0) - websocket-driver (~> 0.6.1) - actionmailer (5.1.7) - actionpack (= 5.1.7) - actionview (= 5.1.7) - activejob (= 5.1.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.1.7) - actionview (= 5.1.7) - activesupport (= 5.1.7) - rack (~> 2.0) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.1.7) - activesupport (= 5.1.7) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.1.7) - activesupport (= 5.1.7) - globalid (>= 0.3.6) - activemodel (5.1.7) - activesupport (= 5.1.7) - activerecord (5.1.7) - activemodel (= 5.1.7) - activesupport (= 5.1.7) - arel (~> 8.0) - activesupport (5.1.7) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - arel (8.0.0) - bindex (0.8.1) - builder (3.2.4) - byebug (11.1.3) - concurrent-ruby (1.1.9) - crass (1.0.6) - dotenv (2.7.6) - dotenv-rails (2.7.6) - dotenv (= 2.7.6) - railties (>= 3.2) - erubi (1.10.0) - globalid (1.0.0) - activesupport (>= 5.0) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - lograge (0.11.2) - actionpack (>= 4) - activesupport (>= 4) - railties (>= 4) - request_store (~> 1.0) - loofah (2.14.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.7.1) - minitest (5.15.0) - newrelic_rpm (7.2.0) - nio4r (2.5.8) - nokogiri (1.13.1) - mini_portile2 (~> 2.7.0) - racc (~> 1.4) - nokogiri (1.13.1-arm64-darwin) - racc (~> 1.4) - nokogiri (1.13.1-x64-mingw32) - racc (~> 1.4) - nokogiri (1.13.1-x86_64-darwin) - racc (~> 1.4) - non-stupid-digest-assets (1.0.9) - sprockets (>= 2.0) - puma (5.6.2) - nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-cors (1.1.1) - rack (>= 2.0.0) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.1.7) - actioncable (= 5.1.7) - actionmailer (= 5.1.7) - actionpack (= 5.1.7) - actionview (= 5.1.7) - activejob (= 5.1.7) - activemodel (= 5.1.7) - activerecord (= 5.1.7) - activesupport (= 5.1.7) - bundler (>= 1.3.0) - railties (= 5.1.7) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (5.1.7) - actionpack (= 5.1.7) - activesupport (= 5.1.7) - method_source - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (13.0.6) - request_store (1.5.1) - rack (>= 1.4) - secure_headers (6.3.3) - spring (3.1.1) - sprockets (4.0.2) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.2) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - thor (1.2.1) - thread_safe (0.3.6) - tzinfo (1.2.9) - thread_safe (~> 0.1) - web-console (3.5.1) - actionview (>= 5.0) - activemodel (>= 5.0) - bindex (>= 0.4.0) - railties (>= 5.0) - websocket-driver (0.6.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - -PLATFORMS - arm64-darwin-21 - ruby - x64-mingw32 - x86_64-darwin-18 - -DEPENDENCIES - byebug - dotenv-rails - lograge (~> 0.11.2) - newrelic_rpm (~> 7.0) - non-stupid-digest-assets - puma - rack-cors - rails (= 5.1.7) - secure_headers - spring - web-console (= 3.5.1) - -BUNDLED WITH - 2.3.15 diff --git a/packages/web-server/LICENSE b/packages/web-server/LICENSE deleted file mode 100644 index 0ad25db4b..000000000 --- a/packages/web-server/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/packages/web-server/Rakefile b/packages/web-server/Rakefile deleted file mode 100644 index 6d53e7cb2..000000000 --- a/packages/web-server/Rakefile +++ /dev/null @@ -1,5 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rakeand they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -Rails.application.load_tasks diff --git a/packages/web-server/app/assets/config/manifest.js b/packages/web-server/app/assets/config/manifest.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/web-server/app/controllers/application_controller.rb b/packages/web-server/app/controllers/application_controller.rb deleted file mode 100644 index cae57aaf0..000000000 --- a/packages/web-server/app/controllers/application_controller.rb +++ /dev/null @@ -1,46 +0,0 @@ -class ApplicationController < ActionController::Base - - protect_from_forgery with: :null_session - after_action :set_csrf_cookie - - after_action :allow_iframe - - layout :false - - def app - - end - - rescue_from ActionView::MissingTemplate do |exception| - end - - def route_not_found - render :json => {:error => {:message => "Not found."}}, :status => 404 - end - - protected - - def allow_iframe - response.headers.except! 'X-Frame-Options' - end - - def set_csrf_cookie - cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? - end - - def append_info_to_payload(payload) - super - - unless payload[:status] - return - end - - payload[:level] = 'INFO' - if payload[:status] >= 500 - payload[:level] = 'ERROR' - elsif payload[:status] >= 400 - payload[:level] = 'WARN' - end - end - -end diff --git a/packages/web-server/app/controllers/concerns/.keep b/packages/web-server/app/controllers/concerns/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/web-server/app/controllers/health_check_controller.rb b/packages/web-server/app/controllers/health_check_controller.rb deleted file mode 100644 index 7fa247be2..000000000 --- a/packages/web-server/app/controllers/health_check_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class HealthCheckController < ApplicationController - def index - render :plain => "OK" - end -end diff --git a/packages/web-server/app/log/standard_notes_formatter.rb b/packages/web-server/app/log/standard_notes_formatter.rb deleted file mode 100644 index 780491dc9..000000000 --- a/packages/web-server/app/log/standard_notes_formatter.rb +++ /dev/null @@ -1,10 +0,0 @@ -class StandardNotesFormatter < ActiveSupport::Logger::SimpleFormatter - def call(severity, timestamp, _progname, message) - { - level: severity, - time: timestamp, - message: message, - ddsource: ['ruby'], - }.to_json + "\n" - end -end diff --git a/packages/web-server/app/views/layouts/application.html.erb b/packages/web-server/app/views/layouts/application.html.erb deleted file mode 100644 index 8660db3c2..000000000 --- a/packages/web-server/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Standard Notes - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/packages/web-server/bin/bundle b/packages/web-server/bin/bundle deleted file mode 100755 index 66e9889e8..000000000 --- a/packages/web-server/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/packages/web-server/bin/rails b/packages/web-server/bin/rails deleted file mode 100755 index 073966023..000000000 --- a/packages/web-server/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path('../config/application', __dir__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/packages/web-server/bin/rake b/packages/web-server/bin/rake deleted file mode 100755 index 17240489f..000000000 --- a/packages/web-server/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/packages/web-server/bin/setup b/packages/web-server/bin/setup deleted file mode 100755 index e620b4dad..000000000 --- a/packages/web-server/bin/setup +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' -require 'fileutils' -include FileUtils - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - # puts "\n== Copying sample files ==" - # unless File.exist?('config/database.yml') - # cp 'config/database.yml.sample', 'config/database.yml' - # end - - puts "\n== Preparing database ==" - system! 'bin/rails db:setup' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/packages/web-server/bin/spring b/packages/web-server/bin/spring deleted file mode 100755 index 7b45d374f..000000000 --- a/packages/web-server/bin/spring +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require "rubygems" - require "bundler" - - if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m) - Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq } - gem "spring", match[1] - require "spring/binstub" - end -end diff --git a/packages/web-server/bin/update b/packages/web-server/bin/update deleted file mode 100755 index a8e4462f2..000000000 --- a/packages/web-server/bin/update +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' -require 'fileutils' -include FileUtils - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -chdir APP_ROOT do - # This script is a way to update your development environment automatically. - # Add necessary update steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - puts "\n== Updating database ==" - system! 'bin/rails db:migrate' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/packages/web-server/config.ru b/packages/web-server/config.ru deleted file mode 100644 index bd83b2541..000000000 --- a/packages/web-server/config.ru +++ /dev/null @@ -1,4 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require ::File.expand_path('../config/environment', __FILE__) -run Rails.application diff --git a/packages/web-server/config/application.rb b/packages/web-server/config/application.rb deleted file mode 100644 index 9ff8798e1..000000000 --- a/packages/web-server/config/application.rb +++ /dev/null @@ -1,71 +0,0 @@ -require_relative 'boot' - -require "active_model/railtie" -require "action_controller/railtie" -require "action_mailer/railtie" -require "action_view/railtie" -require "active_job/railtie" # Only for Rails >= 4.2 -require "action_cable/engine" # Only for Rails >= 5.0 -require "sprockets/railtie" -require "rails/test_unit/railtie" - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Web - class Application < Rails::Application - # Cross-Origin Resource Sharing (CORS) for Rack compatible web applications. - config.middleware.insert_before 0, Rack::Cors do - allow do - origins '*' - resource '*', :headers => :any, :methods => [:get, :post, :put, :patch, :delete, :options], :expose => ['Access-Token', 'Client', 'UID'] - end - end - - SecureHeaders::Configuration.default do |config| - # Handled by server - config.x_frame_options = SecureHeaders::OPT_OUT - config.x_content_type_options = SecureHeaders::OPT_OUT - config.x_xss_protection = SecureHeaders::OPT_OUT - config.hsts = SecureHeaders::OPT_OUT - - config.csp = { - # "meta" values. these will shape the header, but the values are not included in the header. - preserve_schemes: true, # default: false. Schemes are removed from host sources to save bytes and discourage mixed content. - # directive values: these values will directly translate into source directives - default_src: %w(https: 'self'), - base_uri: %w('self'), - block_all_mixed_content: false, # see http://www.w3.org/TR/mixed-content/ - child_src: ["*", "blob:"], - frame_src: ["*", "blob:"], - connect_src: ["*", 'data:'], - font_src: ['*', "'self'", 'data:'], - form_action: %w('self'), - frame_ancestors: ["*", "*.standardnotes.com", "*.standardnotes.org"], - img_src: ["'self'", '* data:', 'blob:'], - manifest_src: %w('self'), - media_src: %w('self' blob: *.standardnotes.com), - object_src: %w('self' blob: *.standardnotes.com), - plugin_types: %w(), - script_src: %w('self' 'unsafe-inline' 'unsafe-eval'), - style_src: %w(* 'unsafe-inline'), - upgrade_insecure_requests: false, # see https://www.w3.org/TR/upgrade-insecure-requests/ - } - end - - config.middleware.insert_before(Rack::Sendfile, Rack::Deflater) - - # Disable auto creation of additional resources with "rails generate" - config.generators do |g| - g.test_framework false - g.view_specs false - g.helper_specs false - g.stylesheets = false - g.javascripts = false - g.helper = false - end - - config.action_mailer.default_url_options = { host: ENV['APP_HOST'] } - end -end diff --git a/packages/web-server/config/boot.rb b/packages/web-server/config/boot.rb deleted file mode 100644 index 30f5120df..000000000 --- a/packages/web-server/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/packages/web-server/config/database.yml b/packages/web-server/config/database.yml deleted file mode 100644 index 3c65faceb..000000000 --- a/packages/web-server/config/database.yml +++ /dev/null @@ -1,40 +0,0 @@ -# MySQL. Versions 5.0+ are recommended. -# -# Install the MYSQL driver -# gem install mysql2 -# -# Ensure the MySQL gem is defined in your Gemfile -# gem 'mysql2' -# -# And be sure to use new-style password hashing: -# http://dev.mysql.com/doc/refman/5.0/en/old-client.html -# -default: &default - adapter: mysql2 - encoding: utf8 - pool: 5 - username: <%= ENV['DB_USERNAME'] %> - password: <%= ENV['DB_PASSWORD'] %> - database: <%= ENV['DB_DATABASE'] %> - host: <%= ENV['DB_HOST'] %> - port: <%= ENV['DB_PORT'] %> - -development: - <<: *default - -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - <<: *default - -# You can use this database configuration with: -# -# production: -# url: <%= ENV['DATABASE_URL'] %> -# -staging: - <<: *default - -production: - <<: *default diff --git a/packages/web-server/config/environment.rb b/packages/web-server/config/environment.rb deleted file mode 100644 index 426333bb4..000000000 --- a/packages/web-server/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require_relative 'application' - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/packages/web-server/config/environments/development.rb b/packages/web-server/config/environments/development.rb deleted file mode 100644 index 1ba55ca84..000000000 --- a/packages/web-server/config/environments/development.rb +++ /dev/null @@ -1,64 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # config.assets.js_compressor = Uglifier.new(mangle: false)\ - - # config.file_watcher = ActiveSupport::EventedFileUpdateChecker - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - config.reload_classes_only_on_change = true - - # Do not eager load code on boot. - config.eager_load = false - - MAX_LOG_MEGABYTES = 50 - config.logger = ActiveSupport::Logger.new(config.paths['log'].first, 1, MAX_LOG_MEGABYTES * 1024 * 1024) - - if ENV["RAILS_LOG_TO_STDOUT"].present? - config.logger = ActiveSupport::Logger.new(STDOUT) - end - - config.colorize_logging = false - config.logger.formatter = StandardNotesFormatter.new - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - config.public_file_server.enabled = true - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - # config.active_record.migration_error = :page_load - - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # Adds additional error checking when serving assets at runtime. - # Checks for improperly declared sprockets dependencies. - # Raises helpful error messages. - config.assets.raise_runtime_errors = true - - config.assets.logger = false - config.assets.quiet = true - - config.action_mailer.delivery_method = :smtp - config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/packages/web-server/config/environments/production.rb b/packages/web-server/config/environments/production.rb deleted file mode 100644 index 947014ec5..000000000 --- a/packages/web-server/config/environments/production.rb +++ /dev/null @@ -1,94 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - MAX_LOG_MEGABYTES = 50 - config.logger = ActiveSupport::Logger.new(config.paths['log'].first, 1, MAX_LOG_MEGABYTES * 1024 * 1024) - - if ENV["RAILS_LOG_TO_STDOUT"].present? - config.logger = ActiveSupport::Logger.new(STDOUT) - end - - config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'INFO').to_sym - - config.colorize_logging = false - config.logger.formatter = StandardNotesFormatter.new - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - config.public_file_server.enabled = true - - # Mount Action Cable outside main process or domain - # config.action_cable.mount_path = nil - # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] - - - - # Enable Rack::Cache to put a simple HTTP cache in front of your application - # Add `rack-cache` to your Gemfile before enabling this. - # For large-scale production use, consider using a caching reverse proxy like - # NGINX, varnish or squid. - # config.action_dispatch.rack_cache = true - - # Compress JavaScripts and CSS. - config.assets.compress = true - # config.assets.js_compressor = Uglifier.new(mangle: false) - config.assets.js_compressor = :uglifier - config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - config.assets.logger = false - config.assets.quiet = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - ActiveSupport::Deprecation.silenced = true - - # Do not dump schema after migrations. - # config.active_record.dump_schema_after_migration = false -end diff --git a/packages/web-server/config/environments/staging.rb b/packages/web-server/config/environments/staging.rb deleted file mode 100644 index 0e11719e7..000000000 --- a/packages/web-server/config/environments/staging.rb +++ /dev/null @@ -1,79 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Use a different logger for distributed setups. - # require 'syslog/logger' - # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - - MAX_LOG_MEGABYTES = 50 - config.logger = ActiveSupport::Logger.new(config.paths['log'].first, 1, MAX_LOG_MEGABYTES * 1024 * 1024) - - if ENV["RAILS_LOG_TO_STDOUT"].present? - config.logger = ActiveSupport::Logger.new(STDOUT) - end - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = true - config.action_controller.perform_caching = true - - # Compress JavaScripts and CSS. - config.assets.compress = true - # config.assets.js_compressor = Uglifier.new(mangle: false) - config.assets.js_compressor = :uglifier - config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - # config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Do not dump schema after migrations. - # config.active_record.dump_schema_after_migration = false -end diff --git a/packages/web-server/config/environments/test.rb b/packages/web-server/config/environments/test.rb deleted file mode 100644 index 30587ef6d..000000000 --- a/packages/web-server/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! - config.cache_classes = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # Configure public file server for tests with Cache-Control for performance. - config.public_file_server.enabled = true - config.public_file_server.headers = { - 'Cache-Control' => 'public, max-age=3600' - } - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - config.action_mailer.perform_caching = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/packages/web-server/config/initializers/application_controller_renderer.rb b/packages/web-server/config/initializers/application_controller_renderer.rb deleted file mode 100644 index 51639b67a..000000000 --- a/packages/web-server/config/initializers/application_controller_renderer.rb +++ /dev/null @@ -1,6 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# ApplicationController.renderer.defaults.merge!( -# http_host: 'example.org', -# https: false -# ) diff --git a/packages/web-server/config/initializers/assets.rb b/packages/web-server/config/initializers/assets.rb deleted file mode 100644 index c3ea1ccd5..000000000 --- a/packages/web-server/config/initializers/assets.rb +++ /dev/null @@ -1,6 +0,0 @@ -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.1' - -Rails.application.config.assets.paths << Rails.root.join('..', 'web', 'dist') - -Rails.application.config.assets.precompile += ['app.js', 'app.css'] \ No newline at end of file diff --git a/packages/web-server/config/initializers/backtrace_silencers.rb b/packages/web-server/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cdf3..000000000 --- a/packages/web-server/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/packages/web-server/config/initializers/cookies_serializer.rb b/packages/web-server/config/initializers/cookies_serializer.rb deleted file mode 100644 index 5a6a32d37..000000000 --- a/packages/web-server/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Specify a serializer for the signed and encrypted cookie jars. -# Valid options are :json, :marshal, and :hybrid. -Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/packages/web-server/config/initializers/filter_parameter_logging.rb b/packages/web-server/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1e7..000000000 --- a/packages/web-server/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/packages/web-server/config/initializers/inflections.rb b/packages/web-server/config/initializers/inflections.rb deleted file mode 100644 index ac033bf9d..000000000 --- a/packages/web-server/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/packages/web-server/config/initializers/json.rb b/packages/web-server/config/initializers/json.rb deleted file mode 100644 index 3bd2eabc8..000000000 --- a/packages/web-server/config/initializers/json.rb +++ /dev/null @@ -1,9 +0,0 @@ -# fix for JSON deprecation warnings. See: https://github.com/flori/json/issues/399#issuecomment-734863279 - -module JSON - module_function - - def parse(source, opts = {}) - Parser.new(source, **opts).parse - end -end diff --git a/packages/web-server/config/initializers/lograge.rb b/packages/web-server/config/initializers/lograge.rb deleted file mode 100644 index b1f2e3bea..000000000 --- a/packages/web-server/config/initializers/lograge.rb +++ /dev/null @@ -1,7 +0,0 @@ -Rails.application.configure do - config.lograge.enabled = true - - # Generate log in JSON - config.lograge.formatter = Lograge::Formatters::Json.new - config.lograge.ignore_actions = ['HealthCheckController#index'] -end diff --git a/packages/web-server/config/initializers/mime_types.rb b/packages/web-server/config/initializers/mime_types.rb deleted file mode 100644 index dc1899682..000000000 --- a/packages/web-server/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/packages/web-server/config/initializers/new_framework_defaults.rb b/packages/web-server/config/initializers/new_framework_defaults.rb deleted file mode 100644 index 43a6d0ab4..000000000 --- a/packages/web-server/config/initializers/new_framework_defaults.rb +++ /dev/null @@ -1,23 +0,0 @@ -# Be sure to restart your server when you modify this file. -# -# This file contains migration options to ease your Rails 5.0 upgrade. -# -# Once upgraded flip defaults one by one to migrate to the new default. -# -# Read the Rails 5.0 release notes for more info on each option. - -# Enable per-form CSRF tokens. Previous versions had false. -Rails.application.config.action_controller.per_form_csrf_tokens = false - -# Enable origin-checking CSRF mitigation. Previous versions had false. -Rails.application.config.action_controller.forgery_protection_origin_check = false - -# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. -# Previous versions had false. -ActiveSupport.to_time_preserves_timezone = false - -# Require `belongs_to` associations by default. Previous versions had false. -# Rails.application.config.active_record.belongs_to_required_by_default = false - -# Do not halt callback chains when a callback returns false. Previous versions had true. -ActiveSupport.halt_callback_chains_on_return_false = true diff --git a/packages/web-server/config/initializers/session_store.rb b/packages/web-server/config/initializers/session_store.rb deleted file mode 100644 index 802d66d85..000000000 --- a/packages/web-server/config/initializers/session_store.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.session_store :cookie_store, key: '_sn_session' diff --git a/packages/web-server/config/initializers/wrap_parameters.rb b/packages/web-server/config/initializers/wrap_parameters.rb deleted file mode 100644 index bbfc3961b..000000000 --- a/packages/web-server/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/packages/web-server/config/locales/en.yml b/packages/web-server/config/locales/en.yml deleted file mode 100644 index 065395716..000000000 --- a/packages/web-server/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/packages/web-server/config/puma.rb b/packages/web-server/config/puma.rb deleted file mode 100644 index 094aa822d..000000000 --- a/packages/web-server/config/puma.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Puma can serve each request in a thread from an internal thread pool. -# The `threads` method setting takes two numbers a minimum and maximum. -# Any libraries that use thread pools should be configured to match -# the maximum value specified for Puma. Default is set to 5 threads for minimum -# and maximum, this matches the default thread size of Active Record. -# -threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i -threads threads_count, threads_count - - -#!/usr/bin/env puma - -# start puma with: -# RAILS_ENV=production bundle exec puma -C ./config/puma.rb - -# Specifies the `port` that Puma will listen on to receive requests, default is 3000. -# -port ENV.fetch("PORT") { 3000 } - -# Specifies the `environment` that Puma will run in. -# -environment ENV.fetch("RAILS_ENV") { "development" } - -# Specifies the number of `workers` to boot in clustered mode. -# Workers are forked webserver processes. If using threads and workers together -# the concurrency of the application would be max `threads` * `workers`. -# Workers do not work on JRuby or Windows (both of which do not support -# processes). -# -# workers ENV.fetch("WEB_CONCURRENCY") { 2 } - -# Use the `preload_app!` method when specifying a `workers` number. -# This directive tells Puma to first boot the application and load code -# before forking the application. This takes advantage of Copy On Write -# process behavior so workers use less memory. If you use this option -# you need to make sure to reconnect any threads in the `on_worker_boot` -# block. -# -# preload_app! - -# The code in the `on_worker_boot` will be called if you are using -# clustered mode by specifying a number of `workers`. After each worker -# process is booted this block will be run, if you are using `preload_app!` -# option you will want to use this block to reconnect to any threads -# or connections that may have been created at application boot, Ruby -# cannot share connections between processes. -# -# on_worker_boot do -# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) -# end - -# Allow puma to be restarted by `rails restart` command. -plugin :tmp_restart diff --git a/packages/web-server/config/routes.rb b/packages/web-server/config/routes.rb deleted file mode 100644 index 7742f14bf..000000000 --- a/packages/web-server/config/routes.rb +++ /dev/null @@ -1,7 +0,0 @@ -Rails.application.routes.draw do - get "/healthcheck" => "health_check#index" - - get '*unmatched_route', to: 'application#route_not_found' - - root 'application#app' -end diff --git a/packages/web-server/config/secrets.yml b/packages/web-server/config/secrets.yml deleted file mode 100644 index 13c1de07c..000000000 --- a/packages/web-server/config/secrets.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: e3336569c7fc35724ab2f19ca4024f70f20a372ffccf619064007593aa7e4ad0afafb88eb4c03620bdb10f3e975b0240a95c8cfc8b7664750208b9cf9b039f01 - -test: - secret_key_base: 7eedf23ca7967ab47b0a7e1c1f3bbf1f804f0d76ae7b27e8a37e9cbbffad95f099901f5b4821f391bcdeb104d2e0b1333cf56d485ad3ee41bc7fad2fbaf7ec3e - -staging: - secret_key_base: fd5255d5cc6a90944a292df8041cd125e20f28fd62cabf092133ce569457e7399e90294dc0413a43ed7e15f8414593632ff6b41b34d6361fab2069f6351958f6 - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/packages/web-server/config/spring.rb b/packages/web-server/config/spring.rb deleted file mode 100644 index c9119b40c..000000000 --- a/packages/web-server/config/spring.rb +++ /dev/null @@ -1,6 +0,0 @@ -%w( - .ruby-version - .rbenv-vars - tmp/restart.txt - tmp/caching-dev.txt -).each { |path| Spring.watch(path) } diff --git a/packages/web-server/db/schema.rb b/packages/web-server/db/schema.rb deleted file mode 100644 index c73447c58..000000000 --- a/packages/web-server/db/schema.rb +++ /dev/null @@ -1,15 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema.define(version: 20161128001641) do - -end diff --git a/packages/web-server/db/seeds.rb b/packages/web-server/db/seeds.rb deleted file mode 100644 index 4edb1e857..000000000 --- a/packages/web-server/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/packages/web-server/lib/assets/.keep b/packages/web-server/lib/assets/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/web-server/lib/tasks/.keep b/packages/web-server/lib/tasks/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/web-server/log/.gitkeep b/packages/web-server/log/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/web-server/package.json b/packages/web-server/package.json deleted file mode 100644 index 8444b983b..000000000 --- a/packages/web-server/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@standardnotes/web-server", - "version": "1.2.105", - "license": "AGPL-3.0-or-later", - "private": true, - "author": "Standard Notes.", - "description": "Ruby on Rails web server for hosting the web application", - "engines": { - "node": ">=12.19.0 <17.0.0" - }, - "scripts": { - "start": "bundle exec rails s -b 0.0.0.0", - "start:no-binding": "bundle exec rails s", - "copy:components": "cp -r ../../node_modules/@standardnotes/components-meta/dist/assets/. public/components/assets/", - "build": "bundle install && yarn copy:components && bundle exec rails assets:precompile", - "sample:env": "cp .env.sample .env" - }, - "dependencies": { - "@standardnotes/components-meta": "workspace:*", - "@standardnotes/web": "workspace:*" - } -} diff --git a/packages/web-server/public/components/zips/checksums.json b/packages/web-server/public/components/zips/checksums.json deleted file mode 100644 index b204a0c3d..000000000 --- a/packages/web-server/public/components/zips/checksums.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "org.standardnotes.theme-midnight": { - "version": "1.2.9-alpha.3", - "base64": "a5bdee326f69be2ed11c773be2da575e5451a1981bc87829b55b947c99c1d2c5", - "binary": "3b80a51ed8d060915e29019af9bc43b5c9a96d617df1348f2e67cbe2539f34c3" - }, - "org.standardnotes.theme-futura": { - "version": "1.2.10-alpha.3", - "base64": "5a7beae2dbd971b558a7bc53a98e2efeea8d0fee1c37bc6082130eb035d1f0ee", - "binary": "c0f2267f7b2f75dd336af396f880f8220720d47ecf576b23d5f4ac0b4b427e75" - }, - "org.standardnotes.theme-solarized-dark": { - "version": "1.2.8-alpha.3", - "base64": "0b8aeaf0bf41d5530743e9248388624a48168bd31475588a07cfc92541860fce", - "binary": "85a2cd7e0c38e7faa2a63775270b8fefa2c3ba5b1fd2b1bb9fd46fe2fbef263f" - }, - "org.standardnotes.theme-autobiography": { - "version": "1.0.5-alpha.3", - "base64": "3c0a97b950b7b85dde816145ab551f0d542d64d0da70cec8794057fec1c8da18", - "binary": "f223eacdb17e5fa47e9a62c967202d194bac9dac0af42a57dbd14b4a2ef43089" - }, - "org.standardnotes.theme-focus": { - "version": "1.2.10-alpha.3", - "base64": "0aa2fe041fc09dd74d3273c95887e098f26664a6ee8498da8ee9e136614eddec", - "binary": "cee7887eeb42043016ab63376071ae0721befed20f8933683230d222053721c5" - }, - "org.standardnotes.theme-titanium": { - "version": "1.2.9-alpha.3", - "base64": "d9a0c6eb1b994a14afb8592794b9fce171f08d066d35c13e13182aed26403bfb", - "binary": "279cdd97605cd3bd34f5d3c71e4a68dbc83e2f8dfb005a320dee66dbd8def80b" - }, - "org.standardnotes.theme-dynamic": { - "version": "1.0.5-alpha.3", - "base64": "3f400aa35c5e48ddbbefbda1ee5840747e25aa6912c8a7cd0f4ebc9ef3e03b19", - "binary": "faa237e40b44151252bf4b74b4869a842f037806e4de80c01a37ebaf8445487e" - }, - "org.standardnotes.code-editor": { - "version": "1.3.13-alpha.3", - "base64": "f15a3ed82da5790af1e216d92e751f563c507e3ce1728652937f6c39e066ec98", - "binary": "f7707318ddf98c37881521db0de24206efbddae32553432baf723bf98bf7384a" - }, - "org.standardnotes.bold-editor": { - "version": "1.3.6-alpha.3", - "base64": "6596d3b4b1778bf05b900e5d8eb7793d01b9cefdcd08fa6a552c30225129c1df", - "binary": "1835c346e3abdef4a79ff8d0f5acc457b530ac226c0c0dda4322ce476dd741ad" - }, - "org.standardnotes.plus-editor": { - "version": "1.6.2-alpha.3", - "base64": "41517c9fdd3b99b0eb358089f10d3c3979751111c15f439998697a7be20f2a0c", - "binary": "404863d7f1f3adf7c7ae9980bbf2f92484d5d77dca662ff4fc85fc58406bcccf" - }, - "org.standardnotes.simple-markdown-editor": { - "version": "1.4.3-alpha.3", - "base64": "095cd6210b347befaf63244d3144d2c93e123f7523afee0564b816c8932ee714", - "binary": "403373dff8b9f950d9b83a45d44e764d37de98ac3baf4b9919a33bd7e9ab7d3f" - }, - "org.standardnotes.advanced-markdown-editor": { - "version": "1.5.1-alpha.3", - "base64": "7e8a29a1ad98370edcfd5533e24ee2bd77c2c6be58f1942911e07285392b59b8", - "binary": "f8b47517f196e86958047258b15122e77bc61cf5ce9fcd15a42786f740d14cf6" - }, - "org.standardnotes.minimal-markdown-editor": { - "version": "1.3.10-alpha.3", - "base64": "aca049de350d405cd8d2f003c7cca2ffe930f5a6b6d9047709aaf0f2d67766e4", - "binary": "801405a6a6e264524f20d8c7ef7168c4e7fc401e89fc4d9cc6cced698413564a" - }, - "org.standardnotes.fancy-markdown-editor": { - "version": "1.3.7-alpha.3", - "base64": "09517fd2681c6873648563c8bbc1e07ce2d13e55f355d34b40e121f5cf8cb418", - "binary": "8704039865c2069892cacc0a0ca94df87ace74b19095f962209e8eb33fec2899" - }, - "org.standardnotes.markdown-visual-editor": { - "version": "1.0.8-alpha.3", - "base64": "5c3737ad276e08c6cdca929e2e31b45a26c40c589c1199e93df898702e7ffc68", - "binary": "338e4a66f1905660eb084cf7ece6cfa6a6ad0ac9fe8efbf1a880f69e5b0cfddc" - }, - "org.standardnotes.simple-task-editor": { - "version": "1.3.11-alpha.3", - "base64": "173b6137e27f034db7392dcc092b4972ae05b0357f87ea67ac1e4943868b53f0", - "binary": "d4d62982e167b1858979dbf31fbfc40d8949c29fc8d46fad04166c32f133fe17" - }, - "org.standardnotes.token-vault": { - "version": "2.0.11-alpha.3", - "base64": "f223911282c1411d5dc1cbd2bd81b779ae6b41c414414eeed4bf880d69db1b50", - "binary": "61bbf7e155d08ff56ce1dc925d5c54d5681e40addf9ea13459caf2da910a248f" - }, - "org.standardnotes.standard-sheets": { - "version": "1.4.5-alpha.3", - "base64": "3d945883bae018bc5a589b9269f289d3eb1abc6a267414e4538860c955c8fc9b", - "binary": "a078fcbdb25414f4e86c8ef5e1246845a78f3d1082362c1a75fe6102c0e2a625" - }, - "org.standardnotes.advanced-checklist": { - "version": "0.0.2-alpha.3", - "base64": "2b6a6100e9378b5f790006ce40ece6153c769e2982dfd4ee32f861625229fb69", - "binary": "93e6e24e0f1a33328724ab222fd99e4a23cf824d93dcc6e654d27d1e988baf92" - } -} \ No newline at end of file diff --git a/packages/web-server/public/components/zips/org.standardnotes.advanced-checklist.zip b/packages/web-server/public/components/zips/org.standardnotes.advanced-checklist.zip deleted file mode 100644 index b983dda87..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.advanced-checklist.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.advanced-markdown-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.advanced-markdown-editor.zip deleted file mode 100644 index 4afded827..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.advanced-markdown-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.bold-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.bold-editor.zip deleted file mode 100644 index 34896887d..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.bold-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.code-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.code-editor.zip deleted file mode 100644 index c277cdf8e..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.code-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.fancy-markdown-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.fancy-markdown-editor.zip deleted file mode 100644 index 1682b8007..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.fancy-markdown-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.markdown-visual-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.markdown-visual-editor.zip deleted file mode 100644 index 5d06704c8..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.markdown-visual-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.minimal-markdown-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.minimal-markdown-editor.zip deleted file mode 100644 index a2e3e0782..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.minimal-markdown-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.plus-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.plus-editor.zip deleted file mode 100644 index 88f6aaffe..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.plus-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.simple-markdown-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.simple-markdown-editor.zip deleted file mode 100644 index cb0616460..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.simple-markdown-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.simple-task-editor.zip b/packages/web-server/public/components/zips/org.standardnotes.simple-task-editor.zip deleted file mode 100644 index fce2e58bc..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.simple-task-editor.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.standard-sheets.zip b/packages/web-server/public/components/zips/org.standardnotes.standard-sheets.zip deleted file mode 100644 index 3af6ff273..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.standard-sheets.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-autobiography.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-autobiography.zip deleted file mode 100644 index 3f413bdbc..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-autobiography.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-dynamic.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-dynamic.zip deleted file mode 100644 index e1ee419fe..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-dynamic.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-focus.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-focus.zip deleted file mode 100644 index 66df571f6..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-focus.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-futura.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-futura.zip deleted file mode 100644 index 1f7d36dba..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-futura.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-midnight.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-midnight.zip deleted file mode 100644 index 3dc3a839e..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-midnight.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-solarized-dark.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-solarized-dark.zip deleted file mode 100644 index c089ef26b..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-solarized-dark.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.theme-titanium.zip b/packages/web-server/public/components/zips/org.standardnotes.theme-titanium.zip deleted file mode 100644 index f37593884..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.theme-titanium.zip and /dev/null differ diff --git a/packages/web-server/public/components/zips/org.standardnotes.token-vault.zip b/packages/web-server/public/components/zips/org.standardnotes.token-vault.zip deleted file mode 100644 index a51f735ba..000000000 Binary files a/packages/web-server/public/components/zips/org.standardnotes.token-vault.zip and /dev/null differ diff --git a/packages/web-server/public/robots.txt.development b/packages/web-server/public/robots.txt.development deleted file mode 100644 index 1f53798bb..000000000 --- a/packages/web-server/public/robots.txt.development +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/packages/web/.eslintignore b/packages/web/.eslintignore new file mode 100644 index 000000000..537100162 --- /dev/null +++ b/packages/web/.eslintignore @@ -0,0 +1,11 @@ +node_modules +dist +.eslintrc +*.webpack.*.js +web.webpack-defaults.js +*.config.js +__mocks__ + +src/components +src/favicon +src/vendor diff --git a/packages/web/.eslintrc b/packages/web/.eslintrc index ebc0793e8..72943ffd9 100644 --- a/packages/web/.eslintrc +++ b/packages/web/.eslintrc @@ -9,7 +9,6 @@ "../../node_modules/@standardnotes/config/src/.eslintrc" ], "plugins": ["@typescript-eslint", "react", "react-hooks"], - "ignorePatterns": [".eslintrc.js", "*.webpack.*.js", "webpack-defaults.js", "jest.config.js", "__mocks__"], "rules": { "standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals "no-throw-literal": 0, diff --git a/packages/web/.gitignore b/packages/web/.gitignore new file mode 100644 index 000000000..90004aa43 --- /dev/null +++ b/packages/web/.gitignore @@ -0,0 +1 @@ +src/components diff --git a/packages/web/package.json b/packages/web/package.json index 4b341b3a7..85a4fc37b 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -9,16 +9,18 @@ "dist" ], "scripts": { - "build": "webpack --config web.webpack.prod.js && yarn tsc", - "clean": "rm -fr dist", + "build": "yarn clean && yarn copy:components && webpack --config web.webpack.prod.js && yarn tsc", + "clean": "rm -fr dist && rm -rf src/components", "format": "prettier --write src/javascripts", "lint": "eslint src/javascripts", - "prebuild": "yarn clean", "start": "webpack-dev-server --config web.webpack.dev.js", "test": "jest --config jest.config.js --coverage", "tsc": "tsc --project tsconfig.json", "upgrade:snjs": "ncu -u '@standardnotes/*'", - "watch": "webpack -w --config web.webpack.dev.js" + "watch": "webpack -w --config web.webpack.dev.js", + "copy:components": "yarn copy:components-assets && yarn copy:components-zips", + "copy:components-assets": "mkdir -p src/components/assets && cp -r ../../node_modules/@standardnotes/components-meta/dist/assets/. src/components/assets", + "copy:components-zips": "mkdir -p src/components/zips && cp -r ../../node_modules/@standardnotes/components-meta/dist/zips/. ./src/components/zips" }, "devDependencies": { "@babel/core": "*", @@ -33,6 +35,7 @@ "autoprefixer": "^10.4.7", "babel-loader": "^8.2.5", "circular-dependency-plugin": "^5.2.2", + "copy-webpack-plugin": "^11.0.0", "css-loader": "*", "dotenv": "^16.0.0", "eslint": "*", @@ -71,6 +74,7 @@ "@reach/listbox": "^0.16.2", "@reach/tooltip": "^0.16.2", "@reach/visually-hidden": "^0.16.0", + "@standardnotes/components-meta": "workspace:*", "@standardnotes/filepicker": "workspace:*", "@standardnotes/files": "workspace:*", "@standardnotes/icons": "workspace:*", diff --git a/packages/web-server/public/404.html b/packages/web/src/404.html similarity index 100% rename from packages/web-server/public/404.html rename to packages/web/src/404.html diff --git a/packages/web-server/public/422.html b/packages/web/src/422.html similarity index 100% rename from packages/web-server/public/422.html rename to packages/web/src/422.html diff --git a/packages/web-server/public/500.html b/packages/web/src/500.html similarity index 100% rename from packages/web-server/public/500.html rename to packages/web/src/500.html diff --git a/packages/web-server/public/favicon/android-chrome-192x192.png b/packages/web/src/favicon/android-chrome-192x192.png similarity index 100% rename from packages/web-server/public/favicon/android-chrome-192x192.png rename to packages/web/src/favicon/android-chrome-192x192.png diff --git a/packages/web-server/public/favicon/android-chrome-512x512.png b/packages/web/src/favicon/android-chrome-512x512.png similarity index 100% rename from packages/web-server/public/favicon/android-chrome-512x512.png rename to packages/web/src/favicon/android-chrome-512x512.png diff --git a/packages/web-server/public/favicon/apple-touch-icon.png b/packages/web/src/favicon/apple-touch-icon.png similarity index 100% rename from packages/web-server/public/favicon/apple-touch-icon.png rename to packages/web/src/favicon/apple-touch-icon.png diff --git a/packages/web-server/public/favicon/browserconfig.xml b/packages/web/src/favicon/browserconfig.xml similarity index 100% rename from packages/web-server/public/favicon/browserconfig.xml rename to packages/web/src/favicon/browserconfig.xml diff --git a/packages/web-server/public/favicon/favicon-16x16.png b/packages/web/src/favicon/favicon-16x16.png similarity index 100% rename from packages/web-server/public/favicon/favicon-16x16.png rename to packages/web/src/favicon/favicon-16x16.png diff --git a/packages/web-server/public/favicon/favicon-32x32.png b/packages/web/src/favicon/favicon-32x32.png similarity index 100% rename from packages/web-server/public/favicon/favicon-32x32.png rename to packages/web/src/favicon/favicon-32x32.png diff --git a/packages/web-server/public/favicon/favicon.ico b/packages/web/src/favicon/favicon.ico similarity index 100% rename from packages/web-server/public/favicon/favicon.ico rename to packages/web/src/favicon/favicon.ico diff --git a/packages/web-server/public/favicon/mstile-150x150.png b/packages/web/src/favicon/mstile-150x150.png similarity index 100% rename from packages/web-server/public/favicon/mstile-150x150.png rename to packages/web/src/favicon/mstile-150x150.png diff --git a/packages/web-server/public/favicon/site.webmanifest b/packages/web/src/favicon/site.webmanifest similarity index 100% rename from packages/web-server/public/favicon/site.webmanifest rename to packages/web/src/favicon/site.webmanifest diff --git a/packages/web-server/app/views/application/app.html.erb b/packages/web/src/index.html similarity index 70% rename from packages/web-server/app/views/application/app.html.erb rename to packages/web/src/index.html index c4756915a..1f16b44e2 100644 --- a/packages/web-server/app/views/application/app.html.erb +++ b/packages/web/src/index.html @@ -5,7 +5,7 @@ - + @@ -31,26 +31,18 @@ - <% if Rails.env.development? %> - <%= javascript_include_tag "app.js", debug: true %> - <% else %> - <%= javascript_include_tag "app.js", debug: false %> - <% end %> - <%= stylesheet_link_tag "app.css", media: "all", debug: false %> - + + - - - diff --git a/packages/web-server/public/manifest.webmanifest b/packages/web/src/manifest.webmanifest similarity index 100% rename from packages/web-server/public/manifest.webmanifest rename to packages/web/src/manifest.webmanifest diff --git a/packages/web-server/public/robots.txt.production b/packages/web/src/robots.txt similarity index 85% rename from packages/web-server/public/robots.txt.production rename to packages/web/src/robots.txt index 3c9c7c01f..f6ca098a0 100644 --- a/packages/web-server/public/robots.txt.production +++ b/packages/web/src/robots.txt @@ -1,5 +1,5 @@ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file # # To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / +User-agent: * +Disallow: / diff --git a/packages/web-server/public/dist/libsodium.bundle.js b/packages/web/src/vendor/libsodium.bundle.js similarity index 100% rename from packages/web-server/public/dist/libsodium.bundle.js rename to packages/web/src/vendor/libsodium.bundle.js diff --git a/packages/web-server/public/dist/vendors~libsodium.bundle.js b/packages/web/src/vendor/vendors~libsodium.bundle.js similarity index 100% rename from packages/web-server/public/dist/vendors~libsodium.bundle.js rename to packages/web/src/vendor/vendors~libsodium.bundle.js diff --git a/packages/web/web.webpack.config.js b/packages/web/web.webpack.config.js index 665b0f2e6..e559a89ab 100644 --- a/packages/web/web.webpack.config.js +++ b/packages/web/web.webpack.config.js @@ -2,6 +2,7 @@ const path = require('path') const webpack = require('webpack') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const CircularDependencyPlugin = require('circular-dependency-plugin') +const CopyWebpackPlugin = require('copy-webpack-plugin') const mergeWithEnvDefaults = require('./web.webpack-defaults') require('dotenv').config() @@ -36,6 +37,19 @@ module.exports = (env) => { filename: './app.css', ignoreOrder: true, // Enable to remove warnings about conflicting order }), + new CopyWebpackPlugin({ + patterns: [ + { from: 'src/favicon', to: 'favicon' }, + { from: 'src/vendor', to: 'dist' }, + { from: 'src/components', to: 'components' }, + { from: 'src/404.html' }, + { from: 'src/422.html' }, + { from: 'src/500.html' }, + { from: 'src/index.html' }, + { from: 'src/manifest.webmanifest' }, + { from: 'src/robots.txt' } + ] + }) ], resolve: { extensions: ['.ts', '.tsx', '.js'], diff --git a/packages/web/web.webpack.dev.js b/packages/web/web.webpack.dev.js index 01e4137bc..84d2575ae 100644 --- a/packages/web/web.webpack.dev.js +++ b/packages/web/web.webpack.dev.js @@ -24,7 +24,7 @@ module.exports = (env, argv) => { ], devServer: { hot: true, - static: '../web-server/public', + static: './dist', port, devMiddleware: { writeToDisk: argv.writeToDisk, diff --git a/yarn.lock b/yarn.lock index c8bc2b450..318c5680e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7449,15 +7449,6 @@ __metadata: languageName: unknown linkType: soft -"@standardnotes/web-server@workspace:packages/web-server": - version: 0.0.0-use.local - resolution: "@standardnotes/web-server@workspace:packages/web-server" - dependencies: - "@standardnotes/components-meta": "workspace:*" - "@standardnotes/web": "workspace:*" - languageName: unknown - linkType: soft - "@standardnotes/web@workspace:*, @standardnotes/web@workspace:packages/web": version: 0.0.0-use.local resolution: "@standardnotes/web@workspace:packages/web" @@ -7475,6 +7466,7 @@ __metadata: "@reach/listbox": ^0.16.2 "@reach/tooltip": ^0.16.2 "@reach/visually-hidden": ^0.16.0 + "@standardnotes/components-meta": "workspace:*" "@standardnotes/filepicker": "workspace:*" "@standardnotes/files": "workspace:*" "@standardnotes/icons": "workspace:*" @@ -7490,6 +7482,7 @@ __metadata: autoprefixer: ^10.4.7 babel-loader: ^8.2.5 circular-dependency-plugin: ^5.2.2 + copy-webpack-plugin: ^11.0.0 css-loader: "*" dotenv: ^16.0.0 eslint: "*"