Compare commits
3 commits
main
...
swap-drag-
Author | SHA1 | Date | |
---|---|---|---|
|
fbad973e99 | ||
|
4083042f49 | ||
|
1fdd6ae7e4 |
642
.drone.yml
|
@ -1,291 +1,115 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: testing
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
include:
|
exclude:
|
||||||
- main
|
- master
|
||||||
event:
|
event:
|
||||||
include:
|
- push
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: api
|
|
||||||
image: vikunja/api:unstable
|
|
||||||
environment:
|
|
||||||
VIKUNJA_SERVICE_TESTINGTOKEN: averyLongSecretToSe33dtheDB
|
|
||||||
VIKUNJA_LOG_LEVEL: DEBUG
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Disabled until we figure out why it is so slow
|
- name: build
|
||||||
# - name: restore-cache
|
image: node:11-alpine
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: true
|
|
||||||
# environment:
|
|
||||||
# AWS_ACCESS_KEY_ID:
|
|
||||||
# from_secret: cache_aws_access_key_id
|
|
||||||
# AWS_SECRET_ACCESS_KEY:
|
|
||||||
# from_secret: cache_aws_secret_access_key
|
|
||||||
# settings:
|
|
||||||
# debug: true
|
|
||||||
# restore: true
|
|
||||||
# bucket: kolaente.dev-drone-dependency-cache
|
|
||||||
# endpoint: https://s3.fr-par.scw.cloud
|
|
||||||
# region: fr-par
|
|
||||||
# path_style: true
|
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
||||||
# mount:
|
|
||||||
# - .cache
|
|
||||||
|
|
||||||
- name: dependencies
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
group: build-static
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
CYPRESS_CACHE_FOLDER: .cache/cypress
|
|
||||||
commands:
|
commands:
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
- apk add yarn
|
||||||
- pnpm install --fetch-timeout 100000
|
- yarn
|
||||||
# depends_on:
|
- yarn run lint
|
||||||
# - restore-cache
|
- yarn run build
|
||||||
|
|
||||||
- name: lint
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
commands:
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
||||||
- pnpm run lint
|
|
||||||
depends_on:
|
|
||||||
- dependencies
|
|
||||||
|
|
||||||
- name: build-prod
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
commands:
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
||||||
- pnpm run build
|
|
||||||
depends_on:
|
|
||||||
- dependencies
|
|
||||||
|
|
||||||
- name: test-unit
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
||||||
- pnpm run test:unit
|
|
||||||
depends_on:
|
|
||||||
- dependencies
|
|
||||||
|
|
||||||
- name: typecheck
|
|
||||||
failure: ignore
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
commands:
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
||||||
- pnpm run typecheck
|
|
||||||
depends_on:
|
|
||||||
- dependencies
|
|
||||||
|
|
||||||
- name: test-frontend
|
|
||||||
image: cypress/browsers:node16.14.0-chrome99-ff97
|
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
CYPRESS_API_URL: http://api:3456/api/v1
|
|
||||||
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
CYPRESS_CACHE_FOLDER: .cache/cypress
|
|
||||||
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000
|
|
||||||
CYPRESS_RECORD_KEY:
|
|
||||||
from_secret: cypress_project_key
|
|
||||||
commands:
|
|
||||||
- sed -i 's/localhost/api/g' dist/index.html
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
||||||
- pnpm cypress install
|
|
||||||
- pnpm run serve:dist & npx wait-on http://localhost:4173
|
|
||||||
- pnpm run test:frontend --browser chrome --record
|
|
||||||
depends_on:
|
|
||||||
- build-prod
|
|
||||||
|
|
||||||
# - name: rebuild-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: true
|
|
||||||
# environment:
|
|
||||||
# AWS_ACCESS_KEY_ID:
|
|
||||||
# from_secret: cache_aws_access_key_id
|
|
||||||
# AWS_SECRET_ACCESS_KEY:
|
|
||||||
# from_secret: cache_aws_secret_access_key
|
|
||||||
# settings:
|
|
||||||
# rebuild: true
|
|
||||||
# bucket: kolaente.dev-drone-dependency-cache
|
|
||||||
# endpoint: https://s3.fr-par.scw.cloud
|
|
||||||
# region: fr-par
|
|
||||||
# path_style: true
|
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
||||||
# mount:
|
|
||||||
# - .cache
|
|
||||||
# depends_on:
|
|
||||||
# - dependencies
|
|
||||||
|
|
||||||
- name: deploy-preview
|
|
||||||
image: node:18-alpine
|
|
||||||
pull: true
|
|
||||||
environment:
|
|
||||||
NETLIFY_AUTH_TOKEN:
|
|
||||||
from_secret: netlify_auth_token
|
|
||||||
NETLIFY_SITE_ID:
|
|
||||||
from_secret: netlify_site_id
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
commands:
|
|
||||||
- cp -r dist dist-preview
|
|
||||||
# Override the default api url used for preview
|
|
||||||
- sed -i 's|http://localhost:3456|https://try.vikunja.io|g' dist-preview/index.html
|
|
||||||
- apk add --no-cache perl-utils
|
|
||||||
- shasum -a 384 -c ./scripts/deploy-preview-netlify.js.sha384
|
|
||||||
- node ./scripts/deploy-preview-netlify.js
|
|
||||||
depends_on:
|
|
||||||
- build-prod
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: release-latest
|
name: release-latest
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
|
||||||
image: docker:git
|
|
||||||
commands:
|
|
||||||
- git fetch --tags
|
|
||||||
|
|
||||||
# - name: restore-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: true
|
|
||||||
# environment:
|
|
||||||
# AWS_ACCESS_KEY_ID:
|
|
||||||
# from_secret: cache_aws_access_key_id
|
|
||||||
# AWS_SECRET_ACCESS_KEY:
|
|
||||||
# from_secret: cache_aws_secret_access_key
|
|
||||||
# settings:
|
|
||||||
# restore: true
|
|
||||||
# bucket: kolaente.dev-drone-dependency-cache
|
|
||||||
# endpoint: https://s3.fr-par.scw.cloud
|
|
||||||
# region: fr-par
|
|
||||||
# path_style: true
|
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
||||||
# mount:
|
|
||||||
# - .cache
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:18-alpine
|
image: node:11-alpine
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
environment:
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
commands:
|
commands:
|
||||||
- corepack enable && pnpm config set store-dir .cache/.pnp
|
- apk add yarn
|
||||||
- pnpm install --fetch-timeout 100000
|
- yarn
|
||||||
- pnpm run lint
|
- yarn run lint
|
||||||
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||||
- pnpm run build
|
- yarn run build
|
||||||
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
|
||||||
# depends_on:
|
|
||||||
# - restore-cache
|
|
||||||
|
|
||||||
- name: static
|
- name: static
|
||||||
image: kolaente/zip
|
image: kolaente/zip
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- cd dist
|
- cd dist
|
||||||
- zip -r ../vikunja-frontend-unstable.zip *
|
- zip -r ../vikunja-frontend-master.zip *
|
||||||
- cd ..
|
- cd ..
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/s3
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-frontend
|
||||||
access_key:
|
access_key:
|
||||||
from_secret: aws_access_key_id
|
from_secret: aws_access_key_id
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: aws_secret_access_key
|
from_secret: aws_secret_access_key
|
||||||
endpoint: https://s3.fr-par.scw.cloud
|
endpoint: https://storage.kolaente.de
|
||||||
region: fr-par
|
|
||||||
path_style: true
|
path_style: true
|
||||||
source: vikunja-frontend-unstable.zip
|
source: vikunja-frontend-master.zip
|
||||||
target: /frontend/
|
|
||||||
depends_on: [ static ]
|
depends_on: [ static ]
|
||||||
|
|
||||||
|
# Build the docker image and push it to docker hub
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: vikunja/frontend
|
||||||
|
auto_tag: true
|
||||||
|
depends_on: [ static ]
|
||||||
|
|
||||||
|
# Update the instance on try.vikunja.io
|
||||||
|
- name: rancher
|
||||||
|
image: peloton/drone-rancher
|
||||||
|
settings:
|
||||||
|
url: http://server01.kolaente.de:8080/v1
|
||||||
|
access_key:
|
||||||
|
from_secret: RANCHER_ACCESS_KEY
|
||||||
|
secret_key:
|
||||||
|
from_secret: RANCHER_SECRET_KEY
|
||||||
|
service: vikunja-dev/frontend
|
||||||
|
docker_image: vikunja/frontend
|
||||||
|
confirm: true
|
||||||
|
depends_on: [ docker ]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: release-version
|
name: release-version
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-tags
|
|
||||||
image: docker:git
|
|
||||||
commands:
|
|
||||||
- git fetch --tags
|
|
||||||
|
|
||||||
# - name: restore-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: true
|
|
||||||
# environment:
|
|
||||||
# AWS_ACCESS_KEY_ID:
|
|
||||||
# from_secret: cache_aws_access_key_id
|
|
||||||
# AWS_SECRET_ACCESS_KEY:
|
|
||||||
# from_secret: cache_aws_secret_access_key
|
|
||||||
# settings:
|
|
||||||
# restore: true
|
|
||||||
# bucket: kolaente.dev-drone-dependency-cache
|
|
||||||
# endpoint: https://s3.fr-par.scw.cloud
|
|
||||||
# region: fr-par
|
|
||||||
# path_style: true
|
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
||||||
# mount:
|
|
||||||
# - .cache
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:18-alpine
|
image: node:11-alpine
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
environment:
|
|
||||||
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
||||||
commands:
|
commands:
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
- apk add yarn
|
||||||
- pnpm install --fetch-timeout 100000
|
- yarn
|
||||||
- pnpm run lint
|
- yarn run lint
|
||||||
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||||
- pnpm run build
|
- yarn run build
|
||||||
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
|
||||||
# depends_on:
|
|
||||||
# - restore-cache
|
|
||||||
|
|
||||||
- name: static
|
- name: static
|
||||||
image: kolaente/zip
|
image: kolaente/zip
|
||||||
|
@ -297,87 +121,22 @@ steps:
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/s3
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-frontend
|
||||||
access_key:
|
access_key:
|
||||||
from_secret: aws_access_key_id
|
from_secret: aws_access_key_id
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: aws_secret_access_key
|
from_secret: aws_secret_access_key
|
||||||
endpoint: https://s3.fr-par.scw.cloud
|
endpoint: https://storage.kolaente.de
|
||||||
region: fr-par
|
|
||||||
path_style: true
|
path_style: true
|
||||||
source: vikunja-frontend-${DRONE_TAG##v}.zip
|
source: vikunja-frontend-${DRONE_TAG##v}.zip
|
||||||
target: /frontend/
|
|
||||||
depends_on: [ static ]
|
depends_on: [ static ]
|
||||||
|
|
||||||
---
|
# Build the docker image and push it to docker hub
|
||||||
kind: pipeline
|
- name: docker
|
||||||
name: trigger-desktop-update
|
image: plugins/docker
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- release-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: trigger
|
|
||||||
image: plugins/downstream
|
|
||||||
settings:
|
|
||||||
server: https://drone.kolaente.de
|
|
||||||
token:
|
|
||||||
from_secret: drone_token
|
|
||||||
repositories:
|
|
||||||
- vikunja/desktop@main
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: docker-arm-release
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- release-latest
|
|
||||||
- release-version
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: arm64
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- cron
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: docker-unstable
|
|
||||||
image: plugins/docker:linux-arm
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
tags: unstable-linux-arm
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=unstable
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: docker-version
|
|
||||||
image: plugins/docker:linux-arm
|
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -386,279 +145,4 @@ steps:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: vikunja/frontend
|
repo: vikunja/frontend
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: linux-arm
|
depends_on: [ static ]
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: docker-unstable-arm64
|
|
||||||
image: plugins/docker:linux-arm64
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
tags: unstable-linux-arm64
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=unstable
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
- name: docker-version-arm64
|
|
||||||
image: plugins/docker:linux-arm64
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-arm64
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: docker-amd64-release
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- release-latest
|
|
||||||
- release-version
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- cron
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: docker-unstable
|
|
||||||
image: plugins/docker:linux-amd64
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
tags: unstable-linux-amd64
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=unstable
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
|
|
||||||
- name: docker-version
|
|
||||||
image: plugins/docker:linux-amd64
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-amd64
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=true
|
|
||||||
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: docker-manifest
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- cron
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- docker-amd64-release
|
|
||||||
- docker-arm-release
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: manifest-unstable
|
|
||||||
pull: always
|
|
||||||
image: plugins/manifest
|
|
||||||
settings:
|
|
||||||
tags: unstable
|
|
||||||
spec: docker-manifest-unstable.tmpl
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
|
|
||||||
- name: manifest-release
|
|
||||||
pull: always
|
|
||||||
image: plugins/manifest
|
|
||||||
settings:
|
|
||||||
auto_tag: true
|
|
||||||
ignore_missing: true
|
|
||||||
spec: docker-manifest.tmpl
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
- name: manifest-release-latest
|
|
||||||
pull: always
|
|
||||||
image: plugins/manifest
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
settings:
|
|
||||||
tags: latest
|
|
||||||
ignore_missing: true
|
|
||||||
spec: docker-manifest.tmpl
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: notify
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- cron
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
- release-version
|
|
||||||
- release-latest
|
|
||||||
- trigger-desktop-update
|
|
||||||
- docker-arm-release
|
|
||||||
- docker-amd64-release
|
|
||||||
- docker-manifest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: notify
|
|
||||||
image: plugins/matrix
|
|
||||||
settings:
|
|
||||||
homeserver: https://matrix.org
|
|
||||||
roomid: WqBDCxzghKcNflkErL:matrix.org
|
|
||||||
username:
|
|
||||||
from_secret: matrix_username
|
|
||||||
password:
|
|
||||||
from_secret: matrix_password
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: update-translations
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
cron:
|
|
||||||
- update_translations
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: download
|
|
||||||
pull: always
|
|
||||||
image: jonasfranz/crowdin
|
|
||||||
settings:
|
|
||||||
download: true
|
|
||||||
export_dir: src/i18n/lang/
|
|
||||||
ignore_branch: true
|
|
||||||
project_identifier: vikunja
|
|
||||||
environment:
|
|
||||||
CROWDIN_KEY:
|
|
||||||
from_secret: crowdin_key
|
|
||||||
|
|
||||||
- name: move-files
|
|
||||||
pull: always
|
|
||||||
image: bash
|
|
||||||
depends_on:
|
|
||||||
- download
|
|
||||||
commands:
|
|
||||||
- mv src/i18n/lang/*/*.json src/i18n/lang
|
|
||||||
|
|
||||||
- name: push
|
|
||||||
pull: always
|
|
||||||
image: appleboy/drone-git-push
|
|
||||||
depends_on:
|
|
||||||
- move-files
|
|
||||||
settings:
|
|
||||||
author_email: "frederik@vikunja.io"
|
|
||||||
author_name: Frederick [Bot]
|
|
||||||
branch: main
|
|
||||||
commit: true
|
|
||||||
commit_message: "[skip ci] Updated translations via Crowdin"
|
|
||||||
remote: "ssh://git@kolaente.dev:9022/vikunja/frontend.git"
|
|
||||||
ssh_key:
|
|
||||||
from_secret: translation_git_push_ssh_key
|
|
||||||
|
|
||||||
- name: upload
|
|
||||||
pull: always
|
|
||||||
image: jonasfranz/crowdin
|
|
||||||
depends_on:
|
|
||||||
- clone
|
|
||||||
settings:
|
|
||||||
files:
|
|
||||||
en.json: src/i18n/lang/en.json
|
|
||||||
ignore_branch: true
|
|
||||||
project_identifier: vikunja
|
|
||||||
environment:
|
|
||||||
CROWDIN_KEY:
|
|
||||||
from_secret: crowdin_key
|
|
||||||
---
|
|
||||||
kind: signature
|
|
||||||
hmac: c885a0e50db729842402494aa645dd3ac662828b691108550f6bf302158295ba
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
# EditorConfig is awesome: https://EditorConfig.org
|
|
||||||
|
|
||||||
# top-most EditorConfig file
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = tab
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
insert_final_newline = false
|
|
||||||
|
|
||||||
[*.vue]
|
|
||||||
indent_style = tab
|
|
||||||
|
|
||||||
[*.{yaml,yml}]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.json]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.{scss,css}]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[.nvmrc]
|
|
||||||
insert_final_newline = false
|
|
1
.envrc
|
@ -1 +0,0 @@
|
||||||
use flake
|
|
|
@ -1,54 +0,0 @@
|
||||||
/* eslint-env node */
|
|
||||||
require("@rushstack/eslint-patch/modern-module-resolution")
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
'root': true,
|
|
||||||
'env': {
|
|
||||||
'browser': true,
|
|
||||||
'es2021': true,
|
|
||||||
'node': true,
|
|
||||||
'vue/setup-compiler-macros': true,
|
|
||||||
},
|
|
||||||
'extends': [
|
|
||||||
'eslint:recommended',
|
|
||||||
'plugin:vue/vue3-essential',
|
|
||||||
'@vue/eslint-config-typescript/recommended',
|
|
||||||
],
|
|
||||||
'rules': {
|
|
||||||
'vue/html-quotes': [
|
|
||||||
'error',
|
|
||||||
'double',
|
|
||||||
],
|
|
||||||
'quotes': [
|
|
||||||
'error',
|
|
||||||
'single',
|
|
||||||
],
|
|
||||||
'comma-dangle': [
|
|
||||||
'error',
|
|
||||||
'always-multiline',
|
|
||||||
],
|
|
||||||
'semi': [
|
|
||||||
'error',
|
|
||||||
'never',
|
|
||||||
],
|
|
||||||
|
|
||||||
// see https://segmentfault.com/q/1010000040813116/a-1020000041134455 (original in chinese)
|
|
||||||
'no-unused-vars': 'off',
|
|
||||||
'@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],
|
|
||||||
|
|
||||||
'vue/multi-word-component-names': 0,
|
|
||||||
},
|
|
||||||
'parser': 'vue-eslint-parser',
|
|
||||||
'parserOptions': {
|
|
||||||
'parser': '@typescript-eslint/parser',
|
|
||||||
'ecmaVersion': 2022,
|
|
||||||
'sourceType': 'module',
|
|
||||||
},
|
|
||||||
'ignorePatterns': [
|
|
||||||
'*.test.*',
|
|
||||||
'cypress/*',
|
|
||||||
],
|
|
||||||
'globals': {
|
|
||||||
'defineProps': 'readonly',
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
<!--
|
|
||||||
|
|
||||||
Please fill out this issue template to report a bug.
|
|
||||||
If you want to propose a new feature, please open a discussion thread in the forum: https://community.vikunja.io
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
**Version information:**
|
|
||||||
|
|
||||||
Frontend Version:
|
|
||||||
API Version:
|
|
||||||
Browser and OS Version:
|
|
||||||
|
|
||||||
**Steps to reproduce:**
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Add clear steps to reproduce the bug. Provide screenshots where applicable.
|
|
||||||
-->
|
|
||||||
|
|
||||||
1.
|
|
||||||
2.
|
|
||||||
...
|
|
||||||
|
|
||||||
**Expected behavior:**
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Describe what happened.
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Actual behavior:**
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Describe what happened instead.
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Checklist:**
|
|
||||||
|
|
||||||
* [ ] I have provided all required information
|
|
||||||
* [ ] I am using the latest release or the latest unstable build
|
|
||||||
* [ ] I was able to reproduce the bug on [try](https://try.vikunja.io)
|
|
2
.github/FUNDING.yml
vendored
|
@ -1,2 +0,0 @@
|
||||||
github: kolaente
|
|
||||||
custom: https://www.buymeacoffee.com/kolaente
|
|
58
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
|
@ -1,58 +0,0 @@
|
||||||
name: Bug Report
|
|
||||||
description: Found something you weren't expecting? Report it here!
|
|
||||||
labels: kind/bug
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
NOTE: If your issue is a security concern, please send an email to security@vikunja.io instead of opening a public issue.
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Please fill out this issue template to report a bug.
|
|
||||||
|
|
||||||
1. If you want to propose a new feature, please open a discussion thread in the forum: https://community.vikunja.io
|
|
||||||
2. Please ask questions or configuration/deploy problems on our [Matrix Room](https://matrix.to/#/#vikunja:matrix.org) or forum (https://community.vikunja.io).
|
|
||||||
3. Make sure you are using the latest release and
|
|
||||||
take a moment to check that your issue hasn't been reported before.
|
|
||||||
4. Please give all relevant information below for bug reports, because
|
|
||||||
incomplete details will be handled as an invalid report and closed.
|
|
||||||
- type: textarea
|
|
||||||
id: description
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: |
|
|
||||||
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see below).
|
|
||||||
- type: input
|
|
||||||
id: frontend-version
|
|
||||||
attributes:
|
|
||||||
label: Vikunja Frontend Version
|
|
||||||
description: Vikunja frontend version (or commit reference) of your instance
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: input
|
|
||||||
id: api-version
|
|
||||||
attributes:
|
|
||||||
label: Vikunja API Version
|
|
||||||
description: Vikunja API version (or commit reference) of your instance
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: input
|
|
||||||
id: browser-version
|
|
||||||
attributes:
|
|
||||||
label: Browser and version
|
|
||||||
description: If your issue is related to a frontend problem, please provide the browser and version you used to reproduce it.
|
|
||||||
- type: dropdown
|
|
||||||
id: can-reproduce
|
|
||||||
attributes:
|
|
||||||
label: Can you reproduce the bug on the Vikunja demo site?
|
|
||||||
options:
|
|
||||||
- "Yes"
|
|
||||||
- "No"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: screenshots
|
|
||||||
attributes:
|
|
||||||
label: Screenshots
|
|
||||||
description: If this issue involves the Web Interface, please provide one or more screenshots
|
|
17
.github/ISSUE_TEMPLATE/config.yml
vendored
|
@ -1,17 +0,0 @@
|
||||||
blank_issues_enabled: false
|
|
||||||
contact_links:
|
|
||||||
- name: API issues
|
|
||||||
url: https://code.vikunja.io/api/issues
|
|
||||||
about: This is the frontend repo. Please open api-related bug reports and discussions in the api 0repo. Not sure if your issue is frontend or api? Ask in Matrix or the forum first.
|
|
||||||
- name: Forum
|
|
||||||
url: https://community.vikunja.io/
|
|
||||||
about: Feature Requests, Questions, configuration or deployment problems should be discussed in the forum.
|
|
||||||
- name: Security-related issues
|
|
||||||
url: https://vikunja.io/contact/#security
|
|
||||||
about: For security concerns, please send a mail to security@vikunja.io instead of opening a public issue.
|
|
||||||
- name: Chat on Matrix
|
|
||||||
url: https://matrix.to/#/#vikunja:matrix.org
|
|
||||||
about: Please ask any quick questions here.
|
|
||||||
- name: Translations
|
|
||||||
url: https://crowdin.com/project/vikunja
|
|
||||||
about: Any problems or requests for new languages about translations should be handled in crowdin.
|
|
16
.gitignore
vendored
|
@ -1,22 +1,16 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist*
|
/dist
|
||||||
*.zip
|
*.zip
|
||||||
.direnv/
|
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
|
||||||
# Log files
|
# Log files
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
stats.html
|
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.idea
|
.idea
|
||||||
|
@ -26,11 +20,3 @@ lerna-debug.log*
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw*
|
*.sw*
|
||||||
!rollup.sw.js
|
|
||||||
|
|
||||||
# Test files
|
|
||||||
cypress/screenshots
|
|
||||||
cypress/videos
|
|
||||||
|
|
||||||
# Local Netlify folder
|
|
||||||
.netlify
|
|
||||||
|
|
2
.npmrc
|
@ -1,2 +0,0 @@
|
||||||
auto-install-peers=true
|
|
||||||
fetch-timeout=100000
|
|
1
.nvmrc
|
@ -1 +0,0 @@
|
||||||
v18
|
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"recommendations": [
|
|
||||||
"codezombiech.gitignore",
|
|
||||||
"dbaeumer.vscode-eslint",
|
|
||||||
"editorconfig.editorconfig",
|
|
||||||
"vue.volar",
|
|
||||||
"vue.vscode-typescript-vue-plugin",
|
|
||||||
"lokalise.i18n-ally",
|
|
||||||
"mgmcdermott.vscode-language-babel",
|
|
||||||
"mikestead.dotenv",
|
|
||||||
"Syler.sass-indented"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
"eslint.packageManager": "pnpm",
|
|
||||||
"editor.formatOnSave": false,
|
|
||||||
"editor.codeActionsOnSave": {
|
|
||||||
"source.fixAll": true
|
|
||||||
},
|
|
||||||
"eslint.format.enable": true,
|
|
||||||
"[javascript]": {
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
||||||
},
|
|
||||||
"[typescript]": {
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
||||||
},
|
|
||||||
|
|
||||||
// https://eslint.vuejs.org/user-guide/#editor-integrations
|
|
||||||
"eslint.validate": [
|
|
||||||
"javascript",
|
|
||||||
"javascriptreact",
|
|
||||||
"vue"
|
|
||||||
],
|
|
||||||
// i18n ally
|
|
||||||
"i18n-ally.localesPaths": [
|
|
||||||
"src/i18n/lang"
|
|
||||||
],
|
|
||||||
"i18n-ally.sortKeys": true,
|
|
||||||
"i18n-ally.keepFulfilled": true,
|
|
||||||
"i18n-ally.keystyle": "nested"
|
|
||||||
}
|
|
3462
CHANGELOG.md
54
Dockerfile
|
@ -1,49 +1,13 @@
|
||||||
# Stage 1: Build application
|
FROM nginx
|
||||||
FROM node:18-alpine AS compile-image
|
|
||||||
|
|
||||||
WORKDIR /build
|
MAINTAINER maintainers@vikunja.io
|
||||||
|
|
||||||
ARG USE_RELEASE=false
|
RUN apt-get update && apt-get install -y apt-utils openssl && \
|
||||||
ARG RELEASE_VERSION=main
|
mkdir -p /etc/nginx/ssl && \
|
||||||
|
openssl genrsa -out /etc/nginx/ssl/dummy.key 2048 && \
|
||||||
|
openssl req -new -key /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.csr -subj "/C=DE/L=Berlin/O=Vikunja/CN=Vikunja Snakeoil" && \
|
||||||
|
openssl x509 -req -days 3650 -in /etc/nginx/ssl/dummy.csr -signkey /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.crt
|
||||||
|
|
||||||
ENV PNPM_CACHE_FOLDER .cache/pnpm/
|
ADD nginx.conf /etc/nginx/nginx.conf
|
||||||
ADD . ./
|
|
||||||
|
|
||||||
RUN \
|
COPY dist /usr/share/nginx/html
|
||||||
if [ $USE_RELEASE = true ]; then \
|
|
||||||
wget https://dl.vikunja.io/frontend/vikunja-frontend-$RELEASE_VERSION.zip -O frontend-release.zip && \
|
|
||||||
unzip frontend-release.zip -d dist/ && \
|
|
||||||
exit 0; \
|
|
||||||
fi && \
|
|
||||||
# https://pnpm.io/installation#using-corepack
|
|
||||||
corepack enable && \
|
|
||||||
# we don't use corepack prepare here by intend since
|
|
||||||
# we have renovate to keep our dependencies up to date
|
|
||||||
# Build the frontend
|
|
||||||
pnpm install && \
|
|
||||||
apk add --no-cache git && \
|
|
||||||
echo '{"VERSION": "'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'"}' > src/version.json && \
|
|
||||||
pnpm run build
|
|
||||||
|
|
||||||
# Stage 2: copy
|
|
||||||
FROM nginx:alpine
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
COPY run.sh /run.sh
|
|
||||||
|
|
||||||
# copy compiled files from stage 1
|
|
||||||
COPY --from=compile-image /build/dist /usr/share/nginx/html
|
|
||||||
|
|
||||||
# Unprivileged user
|
|
||||||
ENV PUID 1000
|
|
||||||
ENV PGID 1000
|
|
||||||
|
|
||||||
LABEL maintainer="maintainers@vikunja.io"
|
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
|
||||||
# for sh file
|
|
||||||
bash \
|
|
||||||
# installs usermod and groupmod
|
|
||||||
shadow
|
|
||||||
|
|
||||||
CMD "/run.sh"
|
|
818
LICENSE
|
@ -1,661 +1,165 @@
|
||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
Version 3, 19 November 2007
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
This version of the GNU Lesser General Public License incorporates
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
the terms and conditions of version 3 of the GNU General Public
|
||||||
software and other kinds of works, specifically designed to ensure
|
License, supplemented by the additional permissions listed below.
|
||||||
cooperation with the community in the case of network server software.
|
|
||||||
|
0. Additional Definitions.
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||||
share and change all versions of a program--to make sure it remains free
|
General Public License.
|
||||||
software for all its users.
|
|
||||||
|
"The Library" refers to a covered work governed by this License,
|
||||||
When we speak of free software, we are referring to freedom, not
|
other than an Application or a Combined Work as defined below.
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
An "Application" is any work that makes use of an interface provided
|
||||||
them if you wish), that you receive source code or can get it if you
|
by the Library, but which is not otherwise based on the Library.
|
||||||
want it, that you can change the software or use pieces of it in new
|
Defining a subclass of a class defined by the Library is deemed a mode
|
||||||
free programs, and that you know you can do these things.
|
of using an interface provided by the Library.
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
A "Combined Work" is a work produced by combining or linking an
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
Application with the Library. The particular version of the Library
|
||||||
you this License which gives you legal permission to copy, distribute
|
with which the Combined Work was made is also called the "Linked
|
||||||
and/or modify the software.
|
Version".
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
The "Minimal Corresponding Source" for a Combined Work means the
|
||||||
improvements made in alternate versions of the program, if they
|
Corresponding Source for the Combined Work, excluding any source code
|
||||||
receive widespread use, become available for other developers to
|
for portions of the Combined Work that, considered in isolation, are
|
||||||
incorporate. Many developers of free software are heartened and
|
based on the Application, and not on the Linked Version.
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
The "Corresponding Application Code" for a Combined Work means the
|
||||||
The GNU General Public License permits making a modified version and
|
object code and/or source code for the Application, including any data
|
||||||
letting the public access it on a server without ever releasing its
|
and utility programs needed for reproducing the Combined Work from the
|
||||||
source code to the public.
|
Application, but excluding the System Libraries of the Combined Work.
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
1. Exception to Section 3 of the GNU GPL.
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
You may convey a covered work under sections 3 and 4 of this License
|
||||||
provide the source code of the modified version running there to the
|
without being bound by section 3 of the GNU GPL.
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
2. Conveying Modified Versions.
|
||||||
code of the modified version.
|
|
||||||
|
If you modify a copy of the Library, and, in your modifications, a
|
||||||
An older license, called the Affero General Public License and
|
facility refers to a function or data to be supplied by an Application
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
that uses the facility (other than as an argument passed when the
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
facility is invoked), then you may convey a copy of the modified
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
version:
|
||||||
this license.
|
|
||||||
|
a) under this License, provided that you make a good faith effort to
|
||||||
The precise terms and conditions for copying, distribution and
|
ensure that, in the event an Application does not supply the
|
||||||
modification follow.
|
function or data, the facility still operates, and performs
|
||||||
|
whatever part of its purpose remains meaningful, or
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
b) under the GNU GPL, with none of the additional permissions of
|
||||||
0. Definitions.
|
this License applicable to that copy.
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
3. Object Code Incorporating Material from Library Header Files.
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
The object code form of an Application may incorporate material from
|
||||||
works, such as semiconductor masks.
|
a header file that is part of the Library. You may convey such object
|
||||||
|
code under terms of your choice, provided that, if the incorporated
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
material is not limited to numerical parameters, data structure
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
layouts and accessors, or small macros, inline functions and templates
|
||||||
"recipients" may be individuals or organizations.
|
(ten or fewer lines in length), you do both of the following:
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
a) Give prominent notice with each copy of the object code that the
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
Library is used in it and that the Library and its use are
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
covered by this License.
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||||
A "covered work" means either the unmodified Program or a work based
|
document.
|
||||||
on the Program.
|
|
||||||
|
4. Combined Works.
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
You may convey a Combined Work under terms of your choice that,
|
||||||
infringement under applicable copyright law, except executing it on a
|
taken together, effectively do not restrict modification of the
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
portions of the Library contained in the Combined Work and reverse
|
||||||
distribution (with or without modification), making available to the
|
engineering for debugging such modifications, if you also do each of
|
||||||
public, and in some countries other activities as well.
|
the following:
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
a) Give prominent notice with each copy of the Combined Work that
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
the Library is used in it and that the Library and its use are
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
covered by this License.
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||||
to the extent that it includes a convenient and prominently visible
|
document.
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
c) For a Combined Work that displays copyright notices during
|
||||||
extent that warranties are provided), that licensees may convey the
|
execution, include the copyright notice for the Library among
|
||||||
work under this License, and how to view a copy of this License. If
|
these notices, as well as a reference directing the user to the
|
||||||
the interface presents a list of user commands or options, such as a
|
copies of the GNU GPL and this license document.
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
d) Do one of the following:
|
||||||
1. Source Code.
|
|
||||||
|
0) Convey the Minimal Corresponding Source under the terms of this
|
||||||
The "source code" for a work means the preferred form of the work
|
License, and the Corresponding Application Code in a form
|
||||||
for making modifications to it. "Object code" means any non-source
|
suitable for, and under terms that permit, the user to
|
||||||
form of a work.
|
recombine or relink the Application with a modified version of
|
||||||
|
the Linked Version to produce a modified Combined Work, in the
|
||||||
A "Standard Interface" means an interface that either is an official
|
manner specified by section 6 of the GNU GPL for conveying
|
||||||
standard defined by a recognized standards body, or, in the case of
|
Corresponding Source.
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
1) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (a) uses at run time
|
||||||
The "System Libraries" of an executable work include anything, other
|
a copy of the Library already present on the user's computer
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
system, and (b) will operate properly with a modified version
|
||||||
packaging a Major Component, but which is not part of that Major
|
of the Library that is interface-compatible with the Linked
|
||||||
Component, and (b) serves only to enable use of the work with that
|
Version.
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
e) Provide Installation Information, but only if you would otherwise
|
||||||
"Major Component", in this context, means a major essential component
|
be required to provide such information under section 6 of the
|
||||||
(kernel, window system, and so on) of the specific operating system
|
GNU GPL, and only to the extent that such information is
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
necessary to install and execute a modified version of the
|
||||||
produce the work, or an object code interpreter used to run it.
|
Combined Work produced by recombining or relinking the
|
||||||
|
Application with a modified version of the Linked Version. (If
|
||||||
The "Corresponding Source" for a work in object code form means all
|
you use option 4d0, the Installation Information must accompany
|
||||||
the source code needed to generate, install, and (for an executable
|
the Minimal Corresponding Source and Corresponding Application
|
||||||
work) run the object code and to modify the work, including scripts to
|
Code. If you use option 4d1, you must provide the Installation
|
||||||
control those activities. However, it does not include the work's
|
Information in the manner specified by section 6 of the GNU GPL
|
||||||
System Libraries, or general-purpose tools or generally available free
|
for conveying Corresponding Source.)
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
5. Combined Libraries.
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
You may place library facilities that are a work based on the
|
||||||
linked subprograms that the work is specifically designed to require,
|
Library side by side in a single library together with other library
|
||||||
such as by intimate data communication or control flow between those
|
facilities that are not Applications and are not covered by this
|
||||||
subprograms and other parts of the work.
|
License, and convey such a combined library under terms of your
|
||||||
|
choice, if you do both of the following:
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
a) Accompany the combined library with a copy of the same work based
|
||||||
Source.
|
on the Library, uncombined with any other library facilities,
|
||||||
|
conveyed under the terms of this License.
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
b) Give prominent notice with the combined library that part of it
|
||||||
|
is a work based on the Library, and explaining where to find the
|
||||||
2. Basic Permissions.
|
accompanying uncombined form of the same work.
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
6. Revised Versions of the GNU Lesser General Public License.
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
The Free Software Foundation may publish revised and/or new versions
|
||||||
permission to run the unmodified Program. The output from running a
|
of the GNU Lesser General Public License from time to time. Such new
|
||||||
covered work is covered by this License only if the output, given its
|
versions will be similar in spirit to the present version, but may
|
||||||
content, constitutes a covered work. This License acknowledges your
|
differ in detail to address new problems or concerns.
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
You may make, run and propagate covered works that you do not
|
Library as you received it specifies that a certain numbered version
|
||||||
convey, without conditions so long as your license otherwise remains
|
of the GNU Lesser General Public License "or any later version"
|
||||||
in force. You may convey covered works to others for the sole purpose
|
applies to it, you have the option of following the terms and
|
||||||
of having them make modifications exclusively for you, or provide you
|
conditions either of that published version or of any later version
|
||||||
with facilities for running those works, provided that you comply with
|
published by the Free Software Foundation. If the Library as you
|
||||||
the terms of this License in conveying all material for which you do
|
received it does not specify a version number of the GNU Lesser
|
||||||
not control copyright. Those thus making or running the covered works
|
General Public License, you may choose any version of the GNU Lesser
|
||||||
for you must do so exclusively on your behalf, under your direction
|
General Public License ever published by the Free Software Foundation.
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
If the Library as you received it specifies that a proxy can decide
|
||||||
|
whether future versions of the GNU Lesser General Public License shall
|
||||||
Conveying under any other circumstances is permitted solely under
|
apply, that proxy's public statement of acceptance of any version is
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
permanent authorization for you to choose that version for the
|
||||||
makes it unnecessary.
|
Library.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
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 <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
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
|
|
||||||
<https://www.gnu.org/licenses/>.
|
|
||||||
|
|
39
README.md
|
@ -3,46 +3,27 @@
|
||||||
> The todo app to organize your life.
|
> The todo app to organize your life.
|
||||||
|
|
||||||
[![Build Status](https://drone.kolaente.de/api/badges/vikunja/frontend/status.svg)](https://drone.kolaente.de/vikunja/frontend)
|
[![Build Status](https://drone.kolaente.de/api/badges/vikunja/frontend/status.svg)](https://drone.kolaente.de/vikunja/frontend)
|
||||||
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](LICENSE)
|
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](LICENSE)
|
||||||
[![Download](https://img.shields.io/badge/download-v0.19.1-brightgreen.svg)](https://dl.vikunja.io)
|
[![Download](https://img.shields.io/badge/download-v0.8-brightgreen.svg)](https://storage.kolaente.de/minio/vikunja/)
|
||||||
[![Translation](https://badges.crowdin.net/vikunja/localized.svg)](https://crowdin.com/project/vikunja)
|
|
||||||
|
|
||||||
This is the web frontend for Vikunja, written in Vue.js.
|
This is the web frontend for Vikunja, written in Vue.js.
|
||||||
|
|
||||||
Take a look at [our roadmap](https://my.vikunja.cloud/share/UrdhKPqumxDXUbYpEGJLSIyNTwAnbBzVlwdDpRbv/auth) (hosted on Vikunja!) for a list of things we're currently working on!
|
|
||||||
|
|
||||||
## Security Reports
|
|
||||||
|
|
||||||
If you find any security-related issues you don't want to disclose publicly, please use [the contact information on our website](https://vikunja.io/contact/#security).
|
|
||||||
|
|
||||||
## Docker
|
|
||||||
|
|
||||||
There is a [docker image available](https://hub.docker.com/r/vikunja/api) with support for http/2 and aggressive caching enabled.
|
|
||||||
|
|
||||||
## Project setup
|
## Project setup
|
||||||
|
```
|
||||||
```shell
|
yarn install
|
||||||
pnpm install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
### Compiles and hot-reloads for development
|
||||||
|
```
|
||||||
```shell
|
yarn run serve
|
||||||
pnpm run serve
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and minifies for production
|
### Compiles and minifies for production
|
||||||
|
```
|
||||||
```shell
|
yarn run build
|
||||||
pnpm run build
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lints and fixes files
|
### Lints and fixes files
|
||||||
|
|
||||||
```shell
|
|
||||||
pnpm run lint
|
|
||||||
```
|
```
|
||||||
|
yarn run lint
|
||||||
## Sponsors
|
```
|
||||||
|
|
||||||
[![Relm](https://vikunja.io/images/sponsors/relm.png)](https://relm.us)
|
|
||||||
|
|
5
babel.config.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
'@vue/app'
|
||||||
|
]
|
||||||
|
}
|
59
cliff.toml
|
@ -1,59 +0,0 @@
|
||||||
[changelog]
|
|
||||||
body = """
|
|
||||||
{% if version %}\
|
|
||||||
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
||||||
{% else %}\
|
|
||||||
## [unreleased]
|
|
||||||
{% endif %}\
|
|
||||||
|
|
||||||
|
|
||||||
{% for group, commits in commits | group_by(attribute="group") %}
|
|
||||||
### {{ group | upper_first }}
|
|
||||||
{% for commit in commits
|
|
||||||
| filter(attribute="scope")
|
|
||||||
| sort(attribute="scope") %}
|
|
||||||
* *({{commit.scope}})* {{ commit.message | upper_first }}
|
|
||||||
{%- if commit.breaking %}
|
|
||||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- endfor -%}
|
|
||||||
{%- for commit in commits %}
|
|
||||||
{%- if commit.scope -%}
|
|
||||||
{% else -%}
|
|
||||||
* {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))
|
|
||||||
{% if commit.breaking -%}
|
|
||||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
|
||||||
{% endif -%}
|
|
||||||
{% endif -%}
|
|
||||||
{% endfor -%}
|
|
||||||
{% raw %}\n{% endraw %}\
|
|
||||||
{% endfor %}\n
|
|
||||||
|
|
||||||
"""
|
|
||||||
#{% for group, commits in commits | group_by(attribute="group") %}
|
|
||||||
# ### {{ group | upper_first }}
|
|
||||||
# {% for commit in commits %}\
|
|
||||||
# - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }}))
|
|
||||||
# {% endfor %}\
|
|
||||||
#{% endfor %}\n
|
|
||||||
# remove the leading and trailing whitespace from the template
|
|
||||||
trim = true
|
|
||||||
|
|
||||||
[git]
|
|
||||||
conventional_commits = true
|
|
||||||
filter_unconventional = false
|
|
||||||
commit_parsers = [
|
|
||||||
{ message = ".*(deps).*", group = "Dependencies"},
|
|
||||||
{ message = "^feat", group = "Features"},
|
|
||||||
{ message = "^fix", group = "Bug Fixes"},
|
|
||||||
{ message = "^doc", group = "Documentation"},
|
|
||||||
{ message = "^perf", group = "Performance"},
|
|
||||||
{ message = "^refactor", group = "Refactor"},
|
|
||||||
{ message = "^style", group = "Styling"},
|
|
||||||
{ message = "^test", group = "Testing"},
|
|
||||||
{ message = "^chore\\(release\\): prepare for", skip = true},
|
|
||||||
{ message = "^chore", group = "Miscellaneous Tasks"},
|
|
||||||
{ body = ".*security", group = "Security"},
|
|
||||||
{ message = ".*", group = "Other", default_scope = "other"}, # Everything that's not a conventional commit goes into the "Other" category
|
|
||||||
]
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
import {defineConfig} from 'cypress'
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
env: {
|
|
||||||
API_URL: 'http://localhost:3456/api/v1',
|
|
||||||
TEST_SECRET: 'averyLongSecretToSe33dtheDB',
|
|
||||||
},
|
|
||||||
video: false,
|
|
||||||
retries: {
|
|
||||||
runMode: 2,
|
|
||||||
},
|
|
||||||
projectId: '181c7x',
|
|
||||||
e2e: {
|
|
||||||
baseUrl: 'http://localhost:4173',
|
|
||||||
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
|
||||||
},
|
|
||||||
component: {
|
|
||||||
devServer: {
|
|
||||||
framework: 'vue',
|
|
||||||
bundler: 'vite',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
viewportWidth: 1600,
|
|
||||||
viewportHeight: 900,
|
|
||||||
})
|
|
|
@ -1,48 +0,0 @@
|
||||||
# Frontend Testing With Cypress
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
* Enable the [seeder api endpoint](https://vikunja.io/docs/config-options/#testingtoken). You'll then need to add the testingtoken in `cypress.json` or set the `CYPRESS_TEST_SECRET` environment variable.
|
|
||||||
* Basic configuration happens in the `cypress.json` file
|
|
||||||
* Overridable with [env](https://docs.cypress.io/guides/guides/environment-variables.html#Option-3-CYPRESS)
|
|
||||||
* Override base url with `CYPRESS_BASE_URL`
|
|
||||||
|
|
||||||
## Fixtures
|
|
||||||
|
|
||||||
We're using the [test endpoint](https://vikunja.io/docs/config-options/#testingtoken) of the vikunja api to
|
|
||||||
seed the database with test data before running the tests.
|
|
||||||
This ensures better reproducability of tests.
|
|
||||||
|
|
||||||
## Running The Tests Locally
|
|
||||||
|
|
||||||
### Using Docker
|
|
||||||
|
|
||||||
The easiest way to run all frontend tests locally is by using the `docker-compose` file in this repository.
|
|
||||||
It uses the same configuration as the CI.
|
|
||||||
|
|
||||||
To use it, run
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, once all containers are started, run
|
|
||||||
|
|
||||||
```shell
|
|
||||||
docker-compose run cypress bash
|
|
||||||
```
|
|
||||||
|
|
||||||
to get a shell inside the cypress container.
|
|
||||||
In that shell you can then execute the tests with
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pnpm run test:frontend
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using The Cypress Dashboard
|
|
||||||
|
|
||||||
To open the Cypress Dashboard and run tests from there, run
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pnpm run cypress:open
|
|
||||||
```
|
|
|
@ -1,20 +0,0 @@
|
||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
api:
|
|
||||||
image: vikunja/api:unstable
|
|
||||||
environment:
|
|
||||||
VIKUNJA_LOG_LEVEL: DEBUG
|
|
||||||
VIKUNJA_SERVICE_TESTINGTOKEN: averyLongSecretToSe33dtheDB
|
|
||||||
ports:
|
|
||||||
- 3456:3456
|
|
||||||
cypress:
|
|
||||||
image: cypress/browsers:node16.14.0-chrome99-ff97
|
|
||||||
volumes:
|
|
||||||
- ..:/project
|
|
||||||
- $HOME/.cache:/home/node/.cache/
|
|
||||||
user: node
|
|
||||||
working_dir: /project
|
|
||||||
environment:
|
|
||||||
CYPRESS_API_URL: http://api:3456/api/v1
|
|
||||||
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
|
|
|
@ -1,56 +0,0 @@
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
import {prepareLists} from './prepareLists'
|
|
||||||
|
|
||||||
describe('List History', () => {
|
|
||||||
prepareLists()
|
|
||||||
|
|
||||||
it('should show a list history on the home page', () => {
|
|
||||||
cy.intercept(Cypress.env('API_URL') + '/namespaces*').as('loadNamespaces')
|
|
||||||
cy.intercept(Cypress.env('API_URL') + '/lists/*').as('loadList')
|
|
||||||
|
|
||||||
const lists = ListFactory.create(6)
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.get('body')
|
|
||||||
.should('not.contain', 'Last viewed')
|
|
||||||
|
|
||||||
cy.visit(`/lists/${lists[0].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
cy.visit(`/lists/${lists[1].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
cy.visit(`/lists/${lists[2].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
cy.visit(`/lists/${lists[3].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
cy.visit(`/lists/${lists[4].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
cy.visit(`/lists/${lists[5].id}`)
|
|
||||||
cy.wait('@loadNamespaces')
|
|
||||||
cy.wait('@loadList')
|
|
||||||
|
|
||||||
// cy.visit('/')
|
|
||||||
// cy.wait('@loadNamespaces')
|
|
||||||
// Not using cy.visit here to work around the redirect issue fixed in #1337
|
|
||||||
cy.get('nav.menu.top-menu a')
|
|
||||||
.contains('Overview')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('body')
|
|
||||||
.should('contain', 'Last viewed')
|
|
||||||
cy.get('.list-cards-wrapper-2-rows')
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
.should('contain', lists[1].title)
|
|
||||||
.should('contain', lists[2].title)
|
|
||||||
.should('contain', lists[3].title)
|
|
||||||
.should('contain', lists[4].title)
|
|
||||||
.should('contain', lists[5].title)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,78 +0,0 @@
|
||||||
import {formatISO, format} from 'date-fns'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {prepareLists} from './prepareLists'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('List View Gantt', () => {
|
|
||||||
prepareLists()
|
|
||||||
|
|
||||||
it('Hides tasks with no dates', () => {
|
|
||||||
const tasks = TaskFactory.create(1)
|
|
||||||
cy.visit('/lists/1/gantt')
|
|
||||||
|
|
||||||
cy.get('.gantt-chart .tasks')
|
|
||||||
.should('not.contain', tasks[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows tasks from the current and next month', () => {
|
|
||||||
const now = Date.UTC(2022, 8, 25)
|
|
||||||
cy.clock(now, ['Date'])
|
|
||||||
|
|
||||||
const nextMonth = new Date(now)
|
|
||||||
nextMonth.setDate(1)
|
|
||||||
nextMonth.setMonth(9)
|
|
||||||
|
|
||||||
cy.visit('/lists/1/gantt')
|
|
||||||
|
|
||||||
cy.get('.gantt-chart .months')
|
|
||||||
.should('contain', format(now, 'MMMM'))
|
|
||||||
.should('contain', format(nextMonth, 'MMMM'))
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows tasks with dates', () => {
|
|
||||||
const now = new Date()
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
start_date: formatISO(now),
|
|
||||||
end_date: formatISO(now.setDate(now.getDate() + 4)),
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/gantt')
|
|
||||||
|
|
||||||
cy.get('.gantt-chart .tasks')
|
|
||||||
.should('not.be.empty')
|
|
||||||
cy.get('.gantt-chart .tasks')
|
|
||||||
.should('contain', tasks[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows tasks with no dates after enabling them', () => {
|
|
||||||
TaskFactory.create(1, {
|
|
||||||
start_date: null,
|
|
||||||
end_date: null,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/gantt')
|
|
||||||
|
|
||||||
cy.get('.gantt-options .fancycheckbox')
|
|
||||||
.contains('Show tasks which don\'t have dates set')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.gantt-chart .tasks')
|
|
||||||
.should('not.be.empty')
|
|
||||||
cy.get('.gantt-chart .tasks .task.nodate')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Drags a task around', () => {
|
|
||||||
const now = new Date()
|
|
||||||
TaskFactory.create(1, {
|
|
||||||
start_date: formatISO(now),
|
|
||||||
end_date: formatISO(now.setDate(now.getDate() + 4)),
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/gantt')
|
|
||||||
|
|
||||||
cy.get('.gantt-chart .tasks .task')
|
|
||||||
.first()
|
|
||||||
.trigger('mousedown', {which: 1})
|
|
||||||
.trigger('mousemove', {clientX: 500, clientY: 0})
|
|
||||||
.trigger('mouseup', {force: true})
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,196 +0,0 @@
|
||||||
import {BucketFactory} from '../../factories/bucket'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {prepareLists} from './prepareLists'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('List View Kanban', () => {
|
|
||||||
let buckets
|
|
||||||
prepareLists()
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
buckets = BucketFactory.create(2)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows all buckets with their tasks', () => {
|
|
||||||
const data = TaskFactory.create(10, {
|
|
||||||
list_id: 1,
|
|
||||||
bucket_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket .title')
|
|
||||||
.contains(buckets[0].title)
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.kanban .bucket .title')
|
|
||||||
.contains(buckets[1].title)
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.kanban .bucket')
|
|
||||||
.first()
|
|
||||||
.should('contain', data[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add a new task to a bucket', () => {
|
|
||||||
TaskFactory.create(2, {
|
|
||||||
list_id: 1,
|
|
||||||
bucket_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket')
|
|
||||||
.contains(buckets[0].title)
|
|
||||||
.get('.bucket-footer .button')
|
|
||||||
.contains('Add another task')
|
|
||||||
.click()
|
|
||||||
cy.get('.kanban .bucket')
|
|
||||||
.contains(buckets[0].title)
|
|
||||||
.get('.bucket-footer .field .control input.input')
|
|
||||||
.type('New Task{enter}')
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket')
|
|
||||||
.first()
|
|
||||||
.should('contain', 'New Task')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can create a new bucket', () => {
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket.new-bucket .button')
|
|
||||||
.click()
|
|
||||||
cy.get('.kanban .bucket.new-bucket input.input')
|
|
||||||
.type('New Bucket{enter}')
|
|
||||||
|
|
||||||
cy.wait(1000) // Wait for the request to finish
|
|
||||||
cy.get('.kanban .bucket .title')
|
|
||||||
.contains('New Bucket')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can set a bucket limit', () => {
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger')
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-menu .dropdown-item')
|
|
||||||
.contains('Limit: Not Set')
|
|
||||||
.click()
|
|
||||||
cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-menu .dropdown-item .field input.input')
|
|
||||||
.first()
|
|
||||||
.type(3)
|
|
||||||
cy.get('[data-cy="setBucketLimit"]')
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket .bucket-header span.limit')
|
|
||||||
.contains('0/3')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can rename a bucket', () => {
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .bucket-header .title')
|
|
||||||
.first()
|
|
||||||
.type('{selectall}New Bucket Title{enter}')
|
|
||||||
cy.get('.kanban .bucket .bucket-header .title')
|
|
||||||
.first()
|
|
||||||
.should('contain', 'New Bucket Title')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can delete a bucket', () => {
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger')
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-menu .dropdown-item')
|
|
||||||
.contains('Delete')
|
|
||||||
.click()
|
|
||||||
cy.get('.modal-mask .modal-container .modal-content .header')
|
|
||||||
.should('contain', 'Delete the bucket')
|
|
||||||
cy.get('.modal-mask .modal-container .modal-content .actions .button')
|
|
||||||
.contains('Do it!')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket .title')
|
|
||||||
.contains(buckets[0].title)
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('.kanban .bucket .title')
|
|
||||||
.contains(buckets[1].title)
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can drag tasks around', () => {
|
|
||||||
const tasks = TaskFactory.create(2, {
|
|
||||||
list_id: 1,
|
|
||||||
bucket_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .tasks .task')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.first()
|
|
||||||
.drag('.kanban .bucket:nth-child(2) .tasks')
|
|
||||||
|
|
||||||
cy.get('.kanban .bucket:nth-child(2) .tasks')
|
|
||||||
.should('contain', tasks[0].title)
|
|
||||||
cy.get('.kanban .bucket:nth-child(1) .tasks')
|
|
||||||
.should('not.contain', tasks[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should navigate to the task when the task card is clicked', () => {
|
|
||||||
const tasks = TaskFactory.create(5, {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
bucket_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .tasks .task')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', `/tasks/${tasks[0].id}`, { timeout: 1000 })
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should remove a task from the kanban board when moving it to another list', () => {
|
|
||||||
const lists = ListFactory.create(2)
|
|
||||||
BucketFactory.create(2, {
|
|
||||||
list_id: '{increment}',
|
|
||||||
})
|
|
||||||
const tasks = TaskFactory.create(5, {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
bucket_id: 1,
|
|
||||||
})
|
|
||||||
const task = tasks[0]
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
|
|
||||||
cy.getSettled('.kanban .bucket .tasks .task')
|
|
||||||
.contains(task.title)
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button', { timeout: 3000 })
|
|
||||||
.contains('Move')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .content.details .field .multiselect.control .input-wrapper input')
|
|
||||||
.type(`${lists[1].title}{enter}`)
|
|
||||||
// The requests happen with a 200ms timeout. Because of that, the results are not yet there when cypress
|
|
||||||
// presses enter and we can't simulate pressing on enter to select the item.
|
|
||||||
cy.get('.task-view .content.details .field .multiselect.control .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification', { timeout: 1000 })
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.go('back')
|
|
||||||
cy.get('.kanban .bucket')
|
|
||||||
.should('not.contain', task.title)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,109 +0,0 @@
|
||||||
import {UserListFactory} from '../../factories/users_list'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {prepareLists} from './prepareLists'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('List View List', () => {
|
|
||||||
prepareLists()
|
|
||||||
|
|
||||||
it('Should be an empty list', () => {
|
|
||||||
cy.visit('/lists/1')
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/lists/1/list')
|
|
||||||
cy.get('.list-title h1')
|
|
||||||
.should('contain', 'First List')
|
|
||||||
cy.get('.list-title .dropdown')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('p')
|
|
||||||
.contains('This list is currently empty.')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should create a new task', () => {
|
|
||||||
const newTaskTitle = 'New task'
|
|
||||||
|
|
||||||
cy.visit('/lists/1')
|
|
||||||
cy.get('.task-add textarea')
|
|
||||||
.type(newTaskTitle+'{enter}')
|
|
||||||
cy.get('.tasks')
|
|
||||||
.should('contain.text', newTaskTitle)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should navigate to the task when the title is clicked', () => {
|
|
||||||
const tasks = TaskFactory.create(5, {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
|
|
||||||
cy.get('.tasks .task .tasktext')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', `/tasks/${tasks[0].id}`)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should not see any elements for a list which is shared read only', () => {
|
|
||||||
UserFactory.create(2)
|
|
||||||
UserListFactory.create(1, {
|
|
||||||
list_id: 2,
|
|
||||||
user_id: 1,
|
|
||||||
right: 0,
|
|
||||||
})
|
|
||||||
const lists = ListFactory.create(2, {
|
|
||||||
owner_id: '{increment}',
|
|
||||||
namespace_id: '{increment}',
|
|
||||||
})
|
|
||||||
cy.visit(`/lists/${lists[1].id}/`)
|
|
||||||
|
|
||||||
cy.get('.list-title .icon')
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('input.input[placeholder="Add a new task..."')
|
|
||||||
.should('not.exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should only show the color of a list in the navigation and not in the list view', () => {
|
|
||||||
const lists = ListFactory.create(1, {
|
|
||||||
hex_color: '00db60',
|
|
||||||
})
|
|
||||||
TaskFactory.create(10, {
|
|
||||||
list_id: lists[0].id,
|
|
||||||
})
|
|
||||||
cy.visit(`/lists/${lists[0].id}/`)
|
|
||||||
|
|
||||||
cy.get('.menu-list li .list-menu-link .color-bubble')
|
|
||||||
.should('have.css', 'background-color', 'rgb(0, 219, 96)')
|
|
||||||
cy.get('.tasks-container .tasks .color-bubble')
|
|
||||||
.should('not.exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should paginate for > 50 tasks', () => {
|
|
||||||
const tasks = TaskFactory.create(100, {
|
|
||||||
id: '{increment}',
|
|
||||||
title: i => `task${i}`,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
|
|
||||||
cy.get('.tasks-container .tasks')
|
|
||||||
.should('contain', tasks[1].title)
|
|
||||||
cy.get('.tasks-container .tasks')
|
|
||||||
.should('not.contain', tasks[99].title)
|
|
||||||
|
|
||||||
cy.get('.card-content .pagination .pagination-link')
|
|
||||||
.contains('2')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '?page=2')
|
|
||||||
cy.get('.tasks-container .tasks')
|
|
||||||
.should('contain', tasks[99].title)
|
|
||||||
cy.get('.tasks-container .tasks')
|
|
||||||
.should('not.contain', tasks[1].title)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,52 +0,0 @@
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('List View Table', () => {
|
|
||||||
it('Should show a table with tasks', () => {
|
|
||||||
const tasks = TaskFactory.create(1)
|
|
||||||
cy.visit('/lists/1/table')
|
|
||||||
|
|
||||||
cy.get('.list-table table.table')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.list-table table.table')
|
|
||||||
.should('contain', tasks[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should have working column switches', () => {
|
|
||||||
TaskFactory.create(1)
|
|
||||||
cy.visit('/lists/1/table')
|
|
||||||
|
|
||||||
cy.get('.list-table .filter-container .items .button')
|
|
||||||
.contains('Columns')
|
|
||||||
.click()
|
|
||||||
cy.get('.list-table .filter-container .card.columns-filter .card-content .fancycheckbox .check')
|
|
||||||
.contains('Priority')
|
|
||||||
.click()
|
|
||||||
cy.get('.list-table .filter-container .card.columns-filter .card-content .fancycheckbox .check')
|
|
||||||
.contains('Done')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.list-table table.table th')
|
|
||||||
.contains('Priority')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.list-table table.table th')
|
|
||||||
.contains('Done')
|
|
||||||
.should('not.exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should navigate to the task when the title is clicked', () => {
|
|
||||||
const tasks = TaskFactory.create(5, {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit('/lists/1/table')
|
|
||||||
|
|
||||||
cy.get('.list-table table.table')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', `/tasks/${tasks[0].id}`)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,120 +0,0 @@
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {prepareLists} from './prepareLists'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('Lists', () => {
|
|
||||||
let lists
|
|
||||||
prepareLists((newLists) => (lists = newLists))
|
|
||||||
|
|
||||||
it('Should create a new list', () => {
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('.namespace-title .dropdown-trigger')
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-title .dropdown .dropdown-item')
|
|
||||||
.contains('New list')
|
|
||||||
.click()
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/lists/new/1')
|
|
||||||
cy.get('.card-header-title')
|
|
||||||
.contains('New list')
|
|
||||||
cy.get('input.input')
|
|
||||||
.type('New List')
|
|
||||||
cy.get('.button')
|
|
||||||
.contains('Create')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification', { timeout: 1000 }) // Waiting until the request to create the new list is done
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/lists/')
|
|
||||||
cy.get('.list-title h1')
|
|
||||||
.should('contain', 'New List')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should redirect to a specific list view after visited', () => {
|
|
||||||
cy.visit('/lists/1/kanban')
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/lists/1/kanban')
|
|
||||||
cy.visit('/lists/1')
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/lists/1/kanban')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should rename the list in all places', () => {
|
|
||||||
TaskFactory.create(5, {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
const newListName = 'New list name'
|
|
||||||
|
|
||||||
cy.visit('/lists/1')
|
|
||||||
cy.get('.list-title h1')
|
|
||||||
.should('contain', 'First List')
|
|
||||||
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list li:first-child .dropdown .dropdown-trigger')
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list li:first-child .dropdown .dropdown-content')
|
|
||||||
.contains('Edit')
|
|
||||||
.click()
|
|
||||||
cy.get('#title')
|
|
||||||
.type(`{selectall}${newListName}`)
|
|
||||||
cy.get('footer.card-footer .button')
|
|
||||||
.contains('Save')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.list-title h1')
|
|
||||||
.should('contain', newListName)
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list li:first-child')
|
|
||||||
.should('contain', newListName)
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('.card-content')
|
|
||||||
.should('contain', newListName)
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should remove a list', () => {
|
|
||||||
cy.visit(`/lists/${lists[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list li:first-child .dropdown .dropdown-trigger')
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list li:first-child .dropdown .dropdown-content')
|
|
||||||
.contains('Delete')
|
|
||||||
.click()
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/settings/delete')
|
|
||||||
cy.get('[data-cy="modalPrimary"]')
|
|
||||||
.contains('Do it')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list')
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
cy.location('pathname')
|
|
||||||
.should('equal', '/')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should archive a list', () => {
|
|
||||||
cy.visit(`/lists/${lists[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.list-title .dropdown')
|
|
||||||
.click()
|
|
||||||
cy.get('.list-title .dropdown .dropdown-menu .dropdown-item')
|
|
||||||
.contains('Archive')
|
|
||||||
.click()
|
|
||||||
cy.get('.modal-content')
|
|
||||||
.should('contain.text', 'Archive this list')
|
|
||||||
cy.get('.modal-content [data-cy=modalPrimary]')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .menu-list')
|
|
||||||
.should('not.contain', lists[0].title)
|
|
||||||
cy.get('main.app-content')
|
|
||||||
.should('contain.text', 'This list is archived. It is not possible to create new or edit tasks for it.')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,145 +0,0 @@
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
|
||||||
|
|
||||||
describe('Namepaces', () => {
|
|
||||||
let namespaces
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
UserFactory.create(1)
|
|
||||||
namespaces = NamespaceFactory.create(1)
|
|
||||||
ListFactory.create(1)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should be all there', () => {
|
|
||||||
cy.visit('/namespaces')
|
|
||||||
cy.get('[data-cy="namespace-title"]')
|
|
||||||
.should('contain', namespaces[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should create a new Namespace', () => {
|
|
||||||
const newNamespaceTitle = 'New Namespace'
|
|
||||||
|
|
||||||
cy.visit('/namespaces')
|
|
||||||
cy.get('[data-cy="new-namespace"]')
|
|
||||||
.should('contain', 'New namespace')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/namespaces/new')
|
|
||||||
cy.get('.card-header-title')
|
|
||||||
.should('contain', 'New namespace')
|
|
||||||
cy.get('input.input')
|
|
||||||
.type(newNamespaceTitle)
|
|
||||||
cy.get('.button')
|
|
||||||
.contains('Create')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.namespace-container')
|
|
||||||
.should('contain', newNamespaceTitle)
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/namespaces')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should rename the namespace all places', () => {
|
|
||||||
const newNamespaces = NamespaceFactory.create(5)
|
|
||||||
const newNamespaceName = 'New namespace name'
|
|
||||||
|
|
||||||
cy.visit('/namespaces')
|
|
||||||
|
|
||||||
cy.get(`.namespace-container .menu.namespaces-lists .namespace-title:contains(${newNamespaces[0].title}) .dropdown .dropdown-trigger`)
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .namespace-title .dropdown .dropdown-content')
|
|
||||||
.contains('Edit')
|
|
||||||
.click()
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/settings/edit')
|
|
||||||
cy.get('#namespacetext')
|
|
||||||
.invoke('val')
|
|
||||||
.should('equal', newNamespaces[0].title) // wait until the namespace data is loaded
|
|
||||||
cy.get('#namespacetext')
|
|
||||||
.type(`{selectall}${newNamespaceName}`)
|
|
||||||
cy.get('footer.card-footer .button')
|
|
||||||
.contains('Save')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification', { timeout: 1000 })
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists')
|
|
||||||
.should('contain', newNamespaceName)
|
|
||||||
.should('not.contain', newNamespaces[0].title)
|
|
||||||
cy.get('[data-cy="namespaces-list"]')
|
|
||||||
.should('contain', newNamespaceName)
|
|
||||||
.should('not.contain', newNamespaces[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should remove a namespace when deleting it', () => {
|
|
||||||
const newNamespaces = NamespaceFactory.create(5)
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
|
|
||||||
cy.get(`.namespace-container .menu.namespaces-lists .namespace-title:contains(${newNamespaces[0].title}) .dropdown .dropdown-trigger`)
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists .namespace-title .dropdown .dropdown-content')
|
|
||||||
.contains('Delete')
|
|
||||||
.click()
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/settings/delete')
|
|
||||||
cy.get('[data-cy="modalPrimary"]')
|
|
||||||
.contains('Do it')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.namespace-container .menu.namespaces-lists')
|
|
||||||
.should('not.contain', newNamespaces[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should not show archived lists & namespaces if the filter is not checked', () => {
|
|
||||||
const n = NamespaceFactory.create(1, {
|
|
||||||
id: 2,
|
|
||||||
is_archived: true,
|
|
||||||
}, false)
|
|
||||||
ListFactory.create(1, {
|
|
||||||
id: 2,
|
|
||||||
namespace_id: n[0].id,
|
|
||||||
}, false)
|
|
||||||
|
|
||||||
ListFactory.create(1, {
|
|
||||||
id: 3,
|
|
||||||
is_archived: true,
|
|
||||||
}, false)
|
|
||||||
|
|
||||||
// Initial
|
|
||||||
cy.visit('/namespaces')
|
|
||||||
cy.get('.namespace')
|
|
||||||
.should('not.contain', 'Archived')
|
|
||||||
|
|
||||||
// Show archived
|
|
||||||
cy.get('[data-cy="show-archived-check"] label.check span')
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
cy.get('[data-cy="show-archived-check"] input')
|
|
||||||
.should('be.checked')
|
|
||||||
cy.get('.namespace')
|
|
||||||
.should('contain', 'Archived')
|
|
||||||
|
|
||||||
// Don't show archived
|
|
||||||
cy.get('[data-cy="show-archived-check"] label.check span')
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
cy.get('[data-cy="show-archived-check"] input')
|
|
||||||
.should('not.be.checked')
|
|
||||||
|
|
||||||
// Second time visiting after unchecking
|
|
||||||
cy.visit('/namespaces')
|
|
||||||
cy.get('[data-cy="show-archived-check"] input')
|
|
||||||
.should('not.be.checked')
|
|
||||||
cy.get('.namespace')
|
|
||||||
.should('not.contain', 'Archived')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,21 +0,0 @@
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
|
|
||||||
export function createLists() {
|
|
||||||
UserFactory.create(1)
|
|
||||||
NamespaceFactory.create(1)
|
|
||||||
const lists = ListFactory.create(1, {
|
|
||||||
title: 'First List'
|
|
||||||
})
|
|
||||||
TaskFactory.truncate()
|
|
||||||
return lists
|
|
||||||
}
|
|
||||||
|
|
||||||
export function prepareLists(setLists = () => {}) {
|
|
||||||
beforeEach(() => {
|
|
||||||
const lists = createLists()
|
|
||||||
setLists(lists)
|
|
||||||
})
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
|
||||||
import {UserListFactory} from '../../factories/users_list'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('Editor', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
NamespaceFactory.create(1)
|
|
||||||
const lists = ListFactory.create(1)
|
|
||||||
TaskFactory.truncate()
|
|
||||||
UserListFactory.truncate()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Has a preview with checkable checkboxes', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
description: `# Test Heading
|
|
||||||
* Bullet 1
|
|
||||||
* Bullet 2
|
|
||||||
|
|
||||||
* [ ] Checklist
|
|
||||||
* [x] Checklist checked
|
|
||||||
`,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
cy.get('input[type=checkbox][data-checkbox-num=0]')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .details.content.description h3 span.is-small.has-text-success')
|
|
||||||
.contains('Saved!')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.preview.content')
|
|
||||||
.should('contain', 'Test Heading')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,29 +0,0 @@
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('The Menu', () => {
|
|
||||||
it('Is visible by default on desktop', () => {
|
|
||||||
cy.get('.namespace-container')
|
|
||||||
.should('have.class', 'is-active')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can be hidden on desktop', () => {
|
|
||||||
cy.get('button.menu-show-button:visible')
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container')
|
|
||||||
.should('not.have.class', 'is-active')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Is hidden by default on mobile', () => {
|
|
||||||
cy.viewport('iphone-8')
|
|
||||||
cy.get('.namespace-container')
|
|
||||||
.should('not.have.class', 'is-active')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Is can be shown on mobile', () => {
|
|
||||||
cy.viewport('iphone-8')
|
|
||||||
cy.get('button.menu-show-button:visible')
|
|
||||||
.click()
|
|
||||||
cy.get('.namespace-container')
|
|
||||||
.should('have.class', 'is-active')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,25 +0,0 @@
|
||||||
import {LinkShareFactory} from '../../factories/link_sharing'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
|
|
||||||
describe('Link shares', () => {
|
|
||||||
it('Can view a link share', () => {
|
|
||||||
const lists = ListFactory.create(1)
|
|
||||||
const tasks = TaskFactory.create(10, {
|
|
||||||
list_id: lists[0].id
|
|
||||||
})
|
|
||||||
const linkShares = LinkShareFactory.create(1, {
|
|
||||||
list_id: lists[0].id,
|
|
||||||
right: 0,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/share/${linkShares[0].hash}/auth`)
|
|
||||||
|
|
||||||
cy.get('h1.title')
|
|
||||||
.should('contain', lists[0].title)
|
|
||||||
cy.get('input.input[placeholder="Add a new task..."')
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('.tasks')
|
|
||||||
.should('contain', tasks[0].title)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,128 +0,0 @@
|
||||||
import {TeamFactory} from '../../factories/team'
|
|
||||||
import {TeamMemberFactory} from '../../factories/team_member'
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('Team', () => {
|
|
||||||
it('Creates a new team', () => {
|
|
||||||
TeamFactory.truncate()
|
|
||||||
cy.visit('/teams')
|
|
||||||
|
|
||||||
const newTeamName = 'New Team'
|
|
||||||
|
|
||||||
cy.get('a.button')
|
|
||||||
.contains('Create a new team')
|
|
||||||
.click()
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/teams/new')
|
|
||||||
cy.get('.card-header-title')
|
|
||||||
.contains('Create a new team')
|
|
||||||
cy.get('input.input')
|
|
||||||
.type(newTeamName)
|
|
||||||
cy.get('.button')
|
|
||||||
.contains('Create')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/edit')
|
|
||||||
cy.get('input#teamtext')
|
|
||||||
.should('have.value', newTeamName)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows all teams', () => {
|
|
||||||
TeamMemberFactory.create(10, {
|
|
||||||
team_id: '{increment}',
|
|
||||||
})
|
|
||||||
const teams = TeamFactory.create(10, {
|
|
||||||
id: '{increment}',
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit('/teams')
|
|
||||||
|
|
||||||
cy.get('.teams.box')
|
|
||||||
.should('not.be.empty')
|
|
||||||
teams.forEach(t => {
|
|
||||||
cy.get('.teams.box')
|
|
||||||
.should('contain', t.name)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Allows an admin to edit the team', () => {
|
|
||||||
TeamMemberFactory.create(1, {
|
|
||||||
team_id: 1,
|
|
||||||
admin: true,
|
|
||||||
})
|
|
||||||
const teams = TeamFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit('/teams/1/edit')
|
|
||||||
cy.get('.card input.input')
|
|
||||||
.first()
|
|
||||||
.type('{selectall}New Team Name')
|
|
||||||
|
|
||||||
cy.get('.card .button')
|
|
||||||
.contains('Save')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('table.table td')
|
|
||||||
.contains('Admin')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Does not allow a normal user to edit the team', () => {
|
|
||||||
TeamMemberFactory.create(1, {
|
|
||||||
team_id: 1,
|
|
||||||
admin: false,
|
|
||||||
})
|
|
||||||
const teams = TeamFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit('/teams/1/edit')
|
|
||||||
cy.get('.card input.input')
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('table.table td')
|
|
||||||
.contains('Member')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Allows an admin to add members to the team', () => {
|
|
||||||
TeamMemberFactory.create(1, {
|
|
||||||
team_id: 1,
|
|
||||||
admin: true,
|
|
||||||
})
|
|
||||||
TeamFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
const users = UserFactory.create(5)
|
|
||||||
|
|
||||||
cy.visit('/teams/1/edit')
|
|
||||||
cy.get('.card')
|
|
||||||
.contains('Team Members')
|
|
||||||
.get('.card-content .multiselect .input-wrapper input')
|
|
||||||
.type(users[1].username)
|
|
||||||
cy.get('.card')
|
|
||||||
.contains('Team Members')
|
|
||||||
.get('.card-content .multiselect .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
cy.get('.card')
|
|
||||||
.contains('Team Members')
|
|
||||||
.get('.card-content .button')
|
|
||||||
.contains('Add to team')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('table.table td')
|
|
||||||
.contains('Admin')
|
|
||||||
.should('exist')
|
|
||||||
cy.get('table.table tr')
|
|
||||||
.should('contain', users[1].username)
|
|
||||||
.should('contain', 'Member')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,131 +0,0 @@
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {seed} from '../../support/seed'
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
|
||||||
import {BucketFactory} from '../../factories/bucket'
|
|
||||||
import {updateUserSettings} from '../../support/updateUserSettings'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
function seedTasks(numberOfTasks = 100, startDueDate = new Date()) {
|
|
||||||
UserFactory.create(1)
|
|
||||||
NamespaceFactory.create(1)
|
|
||||||
const list = ListFactory.create()[0]
|
|
||||||
BucketFactory.create(1, {
|
|
||||||
list_id: list.id,
|
|
||||||
})
|
|
||||||
const tasks = []
|
|
||||||
let dueDate = startDueDate
|
|
||||||
for (let i = 0; i < numberOfTasks; i++) {
|
|
||||||
const now = new Date()
|
|
||||||
dueDate = (new Date(dueDate.valueOf())).setDate((new Date(dueDate.valueOf())).getDate() + 2)
|
|
||||||
tasks.push({
|
|
||||||
id: i + 1,
|
|
||||||
list_id: list.id,
|
|
||||||
done: false,
|
|
||||||
created_by_id: 1,
|
|
||||||
title: 'Test Task ' + i,
|
|
||||||
index: i + 1,
|
|
||||||
due_date: formatISO(dueDate),
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
seed(TaskFactory.table, tasks)
|
|
||||||
return {tasks, list}
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Home Page Task Overview', () => {
|
|
||||||
it('Should show tasks with a near due date first on the home page overview', () => {
|
|
||||||
const {tasks} = seedTasks()
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.each(([task], index) => {
|
|
||||||
expect(task.innerText).to.contain(tasks[index].title)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should show overdue tasks first, then show other tasks', () => {
|
|
||||||
const oldDate = (new Date()).setDate((new Date()).getDate() - 14)
|
|
||||||
const {tasks} = seedTasks(100, oldDate)
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.each(([task], index) => {
|
|
||||||
expect(task.innerText).to.contain(tasks[index].title)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should show a new task with a very soon due date at the top', () => {
|
|
||||||
const {tasks} = seedTasks()
|
|
||||||
const newTaskTitle = 'New Task'
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
|
|
||||||
TaskFactory.create(1, {
|
|
||||||
id: 999,
|
|
||||||
title: newTaskTitle,
|
|
||||||
due_date: formatISO(new Date()),
|
|
||||||
}, false)
|
|
||||||
|
|
||||||
cy.visit(`/lists/${tasks[0].list_id}/list`)
|
|
||||||
cy.get('.tasks .task')
|
|
||||||
.first()
|
|
||||||
.should('contain.text', newTaskTitle)
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.first()
|
|
||||||
.should('contain.text', newTaskTitle)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should not show a new task without a date at the bottom when there are > 50 tasks', () => {
|
|
||||||
// We're not using the api here to create the task in order to verify the flow
|
|
||||||
const {tasks} = seedTasks()
|
|
||||||
const newTaskTitle = 'New Task'
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
|
|
||||||
cy.visit(`/lists/${tasks[0].list_id}/list`)
|
|
||||||
cy.get('.task-add textarea')
|
|
||||||
.type(newTaskTitle+'{enter}')
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.last()
|
|
||||||
.should('not.contain.text', newTaskTitle)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should show a new task without a date at the bottom when there are < 50 tasks', () => {
|
|
||||||
seedTasks(40)
|
|
||||||
const newTaskTitle = 'New Task'
|
|
||||||
TaskFactory.create(1, {
|
|
||||||
id: 999,
|
|
||||||
title: newTaskTitle,
|
|
||||||
}, false)
|
|
||||||
|
|
||||||
cy.visit('/')
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.last()
|
|
||||||
.should('contain.text', newTaskTitle)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should show a task without a due date added via default list at the bottom', () => {
|
|
||||||
const {list} = seedTasks(40)
|
|
||||||
updateUserSettings({
|
|
||||||
default_list_id: list.id,
|
|
||||||
overdue_tasks_reminders_time: '9:00',
|
|
||||||
})
|
|
||||||
|
|
||||||
const newTaskTitle = 'New Task'
|
|
||||||
cy.visit('/')
|
|
||||||
|
|
||||||
cy.get('.add-task-textarea')
|
|
||||||
.type(`${newTaskTitle}{enter}`)
|
|
||||||
|
|
||||||
cy.get('[data-cy="showTasks"] .card .task')
|
|
||||||
.last()
|
|
||||||
.should('contain.text', newTaskTitle)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,550 +0,0 @@
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
import {TaskFactory} from '../../factories/task'
|
|
||||||
import {ListFactory} from '../../factories/list'
|
|
||||||
import {TaskCommentFactory} from '../../factories/task_comment'
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
import {NamespaceFactory} from '../../factories/namespace'
|
|
||||||
import {UserListFactory} from '../../factories/users_list'
|
|
||||||
import {TaskAssigneeFactory} from '../../factories/task_assignee'
|
|
||||||
import {LabelFactory} from '../../factories/labels'
|
|
||||||
import {LabelTaskFactory} from '../../factories/label_task'
|
|
||||||
import {BucketFactory} from '../../factories/bucket'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
import {TaskAttachmentFactory} from '../../factories/task_attachments'
|
|
||||||
|
|
||||||
function addLabelToTaskAndVerify(labelTitle: string) {
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Add Labels')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect input')
|
|
||||||
.type(labelTitle)
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification', { timeout: 4000 })
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect .input-wrapper span.tag')
|
|
||||||
.should('exist')
|
|
||||||
.should('contain', labelTitle)
|
|
||||||
}
|
|
||||||
|
|
||||||
function uploadAttachmentAndVerify(taskId: number) {
|
|
||||||
cy.intercept(`${Cypress.env('API_URL')}/tasks/${taskId}/attachments`).as('uploadAttachment')
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Add Attachments')
|
|
||||||
.click()
|
|
||||||
cy.get('input[type=file]', {timeout: 1000})
|
|
||||||
.selectFile('cypress/fixtures/image.jpg', {force: true}) // The input is not visible, but on purpose
|
|
||||||
cy.wait('@uploadAttachment')
|
|
||||||
|
|
||||||
cy.get('.attachments .attachments .files a.attachment')
|
|
||||||
.should('exist')
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Task', () => {
|
|
||||||
let namespaces
|
|
||||||
let lists
|
|
||||||
let buckets
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
UserFactory.create(1)
|
|
||||||
namespaces = NamespaceFactory.create(1)
|
|
||||||
lists = ListFactory.create(1)
|
|
||||||
buckets = BucketFactory.create(1, {
|
|
||||||
list_id: lists[0].id,
|
|
||||||
})
|
|
||||||
TaskFactory.truncate()
|
|
||||||
UserListFactory.truncate()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should be created new', () => {
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
cy.get('.input[placeholder="Add a new task…"')
|
|
||||||
.type('New Task')
|
|
||||||
cy.get('.button')
|
|
||||||
.contains('Add')
|
|
||||||
.click()
|
|
||||||
cy.get('.tasks .task .tasktext')
|
|
||||||
.first()
|
|
||||||
.should('contain', 'New Task')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Inserts new tasks at the top of the list', () => {
|
|
||||||
TaskFactory.create(1)
|
|
||||||
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
cy.get('.list-is-empty-notice')
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('.input[placeholder="Add a new task…"')
|
|
||||||
.type('New Task')
|
|
||||||
cy.get('.button')
|
|
||||||
.contains('Add')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.wait(1000) // Wait for the request
|
|
||||||
cy.get('.tasks .task .tasktext')
|
|
||||||
.first()
|
|
||||||
.should('contain', 'New Task')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Marks a task as done', () => {
|
|
||||||
TaskFactory.create(1)
|
|
||||||
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
cy.get('.tasks .task .fancycheckbox label.check')
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add a task to favorites', () => {
|
|
||||||
TaskFactory.create(1)
|
|
||||||
|
|
||||||
cy.visit('/lists/1/list')
|
|
||||||
cy.get('.tasks .task .favorite')
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
cy.get('.menu.namespaces-lists')
|
|
||||||
.should('contain', 'Favorites')
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('Task Detail View', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
TaskCommentFactory.truncate()
|
|
||||||
LabelTaskFactory.truncate()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows all task details', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
index: 1,
|
|
||||||
description: 'Lorem ipsum dolor sit amet.'
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view h1.title.input')
|
|
||||||
.should('contain', tasks[0].title)
|
|
||||||
cy.get('.task-view h1.title.task-id')
|
|
||||||
.should('contain', '#1')
|
|
||||||
cy.get('.task-view h6.subtitle')
|
|
||||||
.should('contain', namespaces[0].title)
|
|
||||||
.should('contain', lists[0].title)
|
|
||||||
cy.get('.task-view .details.content.description')
|
|
||||||
.should('contain', tasks[0].description)
|
|
||||||
cy.get('.task-view .action-buttons p.created')
|
|
||||||
.should('contain', 'Created')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows a done label for done tasks', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
index: 1,
|
|
||||||
done: true,
|
|
||||||
done_at: formatISO(new Date())
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .heading .is-done')
|
|
||||||
.should('be.visible')
|
|
||||||
.should('contain', 'Done')
|
|
||||||
cy.get('.task-view .action-buttons p.created')
|
|
||||||
.scrollIntoView()
|
|
||||||
.should('be.visible')
|
|
||||||
.should('contain', 'Done')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can mark a task as done', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
done: false,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Mark task done!')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .heading .is-done')
|
|
||||||
.should('exist')
|
|
||||||
.should('contain', 'Done')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.should('contain', 'Mark as undone')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Shows a task identifier since the list has one', () => {
|
|
||||||
const lists = ListFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
identifier: 'TEST',
|
|
||||||
})
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: lists[0].id,
|
|
||||||
index: 1,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view h1.title.task-id')
|
|
||||||
.should('contain', `${lists[0].identifier}-${tasks[0].index}`)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can edit the description', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
description: 'Lorem ipsum dolor sit amet.'
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .details.content.description .editor button')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .details.content.description .editor .vue-easymde .EasyMDEContainer .CodeMirror-scroll')
|
|
||||||
.type('{selectall}New Description')
|
|
||||||
cy.get('[data-cy="saveEditor"]')
|
|
||||||
.contains('Save')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .details.content.description h3 span.is-small.has-text-success')
|
|
||||||
.contains('Saved!')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add a new comment', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .comments .media.comment .editor .vue-easymde .EasyMDEContainer .CodeMirror-scroll')
|
|
||||||
.should('be.visible')
|
|
||||||
.type('{selectall}New Comment')
|
|
||||||
cy.get('.task-view .comments .media.comment .button:not([disabled])')
|
|
||||||
.contains('Comment')
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .comments .media.comment .editor')
|
|
||||||
.should('contain', 'New Comment')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can move a task to another list', () => {
|
|
||||||
const lists = ListFactory.create(2)
|
|
||||||
BucketFactory.create(2, {
|
|
||||||
list_id: '{increment}'
|
|
||||||
})
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: lists[0].id,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Move')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .content.details .field .multiselect.control .input-wrapper input')
|
|
||||||
.type(`${lists[1].title}{enter}`)
|
|
||||||
// The requests happen with a 200ms timeout. Because of that, the results are not yet there when cypress
|
|
||||||
// presses enter and we can't simulate pressing on enter to select the item.
|
|
||||||
cy.get('.task-view .content.details .field .multiselect.control .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view h6.subtitle')
|
|
||||||
.should('contain', namespaces[0].title)
|
|
||||||
.should('contain', lists[1].title)
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can delete a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.should('be.visible')
|
|
||||||
.contains('Delete')
|
|
||||||
.click()
|
|
||||||
cy.get('.modal-mask .modal-container .modal-content .header')
|
|
||||||
.should('contain', 'Delete this task')
|
|
||||||
cy.get('.modal-mask .modal-container .modal-content .actions .button')
|
|
||||||
.contains('Do it!')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.url()
|
|
||||||
.should('contain', `/lists/${tasks[0].list_id}/`)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add an assignee to a task', () => {
|
|
||||||
const users = UserFactory.create(5)
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
UserListFactory.create(5, {
|
|
||||||
list_id: 1,
|
|
||||||
user_id: '{increment}',
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('[data-cy="taskDetail.assign"]')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .column.assignees .multiselect input')
|
|
||||||
.type(users[1].username)
|
|
||||||
cy.get('.task-view .column.assignees .multiselect .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .column.assignees .multiselect .input-wrapper span.assignee')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can remove an assignee from a task', () => {
|
|
||||||
const users = UserFactory.create(2)
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
UserListFactory.create(5, {
|
|
||||||
list_id: 1,
|
|
||||||
user_id: '{increment}',
|
|
||||||
})
|
|
||||||
TaskAssigneeFactory.create(1, {
|
|
||||||
task_id: tasks[0].id,
|
|
||||||
user_id: users[1].id,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .column.assignees .multiselect .input-wrapper span.assignee')
|
|
||||||
.get('.remove-assignee')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .column.assignees .multiselect .input-wrapper span.assignee')
|
|
||||||
.should('not.exist')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add a new label to a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
LabelFactory.truncate()
|
|
||||||
const newLabelText = 'some new label'
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Add Labels')
|
|
||||||
.should('be.visible')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect input')
|
|
||||||
.type(newLabelText)
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect .search-results')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect .input-wrapper span.tag')
|
|
||||||
.should('exist')
|
|
||||||
.should('contain', newLabelText)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add an existing label to a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
const labels = LabelFactory.create(1)
|
|
||||||
LabelTaskFactory.truncate()
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
addLabelToTaskAndVerify(labels[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add a label to a task and it shows up on the kanban board afterwards', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: lists[0].id,
|
|
||||||
bucket_id: buckets[0].id,
|
|
||||||
})
|
|
||||||
const labels = LabelFactory.create(1)
|
|
||||||
LabelTaskFactory.truncate()
|
|
||||||
|
|
||||||
cy.visit(`/lists/${lists[0].id}/kanban`)
|
|
||||||
|
|
||||||
cy.get('.bucket .task')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.click()
|
|
||||||
|
|
||||||
addLabelToTaskAndVerify(labels[0].title)
|
|
||||||
|
|
||||||
cy.get('.modal-content .close')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.bucket .task')
|
|
||||||
.should('contain.text', labels[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can remove a label from a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: 1,
|
|
||||||
})
|
|
||||||
const labels = LabelFactory.create(1)
|
|
||||||
LabelTaskFactory.create(1, {
|
|
||||||
task_id: tasks[0].id,
|
|
||||||
label_id: labels[0].id,
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.getSettled('.task-view .details.labels-list .multiselect .input-wrapper')
|
|
||||||
.should('be.visible')
|
|
||||||
.should('contain', labels[0].title)
|
|
||||||
cy.getSettled('.task-view .details.labels-list .multiselect .input-wrapper')
|
|
||||||
.children()
|
|
||||||
.first()
|
|
||||||
.get('[data-cy="taskDetail.removeLabel"]')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.task-view .details.labels-list .multiselect .input-wrapper')
|
|
||||||
.should('not.contain', labels[0].title)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can set a due date for a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
done: false,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Set Due Date')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Due Date')
|
|
||||||
.get('.date-input .datepicker .show')
|
|
||||||
.click()
|
|
||||||
cy.get('.datepicker .datepicker-popup button')
|
|
||||||
.contains('Tomorrow')
|
|
||||||
.click()
|
|
||||||
cy.get('[data-cy="closeDatepicker"]')
|
|
||||||
.contains('Confirm')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Due Date')
|
|
||||||
.get('.date-input .datepicker-popup')
|
|
||||||
.should('not.exist')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can set a priority for a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Set Priority')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Priority')
|
|
||||||
.get('.select select')
|
|
||||||
.select('Urgent')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Priority')
|
|
||||||
.get('.select select')
|
|
||||||
.should('have.value', '4')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can set the progress for a task', () => {
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
cy.get('.task-view .action-buttons .button')
|
|
||||||
.contains('Set Progress')
|
|
||||||
.click()
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Progress')
|
|
||||||
.get('.select select')
|
|
||||||
.select('50%')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
|
|
||||||
cy.wait(200)
|
|
||||||
|
|
||||||
cy.get('.task-view .columns.details .column')
|
|
||||||
.contains('Progress')
|
|
||||||
.get('.select select')
|
|
||||||
.should('be.visible')
|
|
||||||
.should('have.value', '0.5')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add an attachment to a task', () => {
|
|
||||||
TaskAttachmentFactory.truncate()
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
})
|
|
||||||
cy.visit(`/tasks/${tasks[0].id}`)
|
|
||||||
|
|
||||||
uploadAttachmentAndVerify(tasks[0].id)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Can add an attachment to a task and see it appearing on kanban', () => {
|
|
||||||
TaskAttachmentFactory.truncate()
|
|
||||||
const tasks = TaskFactory.create(1, {
|
|
||||||
id: 1,
|
|
||||||
list_id: lists[0].id,
|
|
||||||
bucket_id: buckets[0].id,
|
|
||||||
})
|
|
||||||
const labels = LabelFactory.create(1)
|
|
||||||
LabelTaskFactory.truncate()
|
|
||||||
|
|
||||||
cy.visit(`/lists/${lists[0].id}/kanban`)
|
|
||||||
|
|
||||||
cy.get('.bucket .task')
|
|
||||||
.contains(tasks[0].title)
|
|
||||||
.click()
|
|
||||||
|
|
||||||
uploadAttachmentAndVerify(tasks[0].id)
|
|
||||||
|
|
||||||
cy.get('.modal-content .close')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.bucket .task .footer .icon svg.fa-paperclip')
|
|
||||||
.should('exist')
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,58 +0,0 @@
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
|
|
||||||
const testAndAssertFailed = fixture => {
|
|
||||||
cy.visit('/login')
|
|
||||||
cy.get('input[id=username]').type(fixture.username)
|
|
||||||
cy.get('input[id=password]').type(fixture.password)
|
|
||||||
cy.get('.button').contains('Login').click()
|
|
||||||
|
|
||||||
cy.wait(5000) // It can take waaaayy too long to log the user in
|
|
||||||
cy.url().should('include', '/')
|
|
||||||
cy.get('div.message.danger').contains('Wrong username or password.')
|
|
||||||
}
|
|
||||||
|
|
||||||
context('Login', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
UserFactory.create(1, {
|
|
||||||
username: 'test',
|
|
||||||
})
|
|
||||||
cy.visit('/', {
|
|
||||||
onBeforeLoad(win) {
|
|
||||||
win.localStorage.removeItem('token')
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should log in with the right credentials', () => {
|
|
||||||
const fixture = {
|
|
||||||
username: 'test',
|
|
||||||
password: '1234',
|
|
||||||
}
|
|
||||||
|
|
||||||
cy.visit('/login')
|
|
||||||
cy.get('input[id=username]').type(fixture.username)
|
|
||||||
cy.get('input[id=password]').type(fixture.password)
|
|
||||||
cy.get('.button').contains('Login').click()
|
|
||||||
cy.url().should('include', '/')
|
|
||||||
cy.clock(1625656161057) // 13:00
|
|
||||||
cy.get('h2').should('contain', `Hi ${fixture.username}!`)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should fail with a bad password', () => {
|
|
||||||
const fixture = {
|
|
||||||
username: 'test',
|
|
||||||
password: '123456',
|
|
||||||
}
|
|
||||||
|
|
||||||
testAndAssertFailed(fixture)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should fail with a bad username', () => {
|
|
||||||
const fixture = {
|
|
||||||
username: 'loremipsum',
|
|
||||||
password: '1234',
|
|
||||||
}
|
|
||||||
|
|
||||||
testAndAssertFailed(fixture)
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,44 +0,0 @@
|
||||||
import '../../support/authenticateUser'
|
|
||||||
import {createLists} from '../list/prepareLists'
|
|
||||||
|
|
||||||
function logout() {
|
|
||||||
cy.get('.navbar .user .username')
|
|
||||||
.click()
|
|
||||||
cy.get('.navbar .user .dropdown-menu .dropdown-item')
|
|
||||||
.contains('Logout')
|
|
||||||
.click()
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Log out', () => {
|
|
||||||
it('Logs the user out', () => {
|
|
||||||
cy.visit('/')
|
|
||||||
|
|
||||||
expect(localStorage.getItem('token')).to.not.eq(null)
|
|
||||||
|
|
||||||
logout()
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/login')
|
|
||||||
.then(() => {
|
|
||||||
expect(localStorage.getItem('token')).to.eq(null)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it.skip('Should clear the list history after logging the user out', () => {
|
|
||||||
const lists = createLists()
|
|
||||||
cy.visit(`/lists/${lists[0].id}`)
|
|
||||||
.then(() => {
|
|
||||||
expect(localStorage.getItem('listHistory')).to.not.eq(null)
|
|
||||||
})
|
|
||||||
|
|
||||||
logout()
|
|
||||||
|
|
||||||
cy.wait(1000) // This makes re-loading of the list and associated entities (and the resulting error) visible
|
|
||||||
|
|
||||||
cy.url()
|
|
||||||
.should('contain', '/login')
|
|
||||||
.then(() => {
|
|
||||||
expect(localStorage.getItem('listHistory')).to.eq(null)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,48 +0,0 @@
|
||||||
// This test assumes no mailer is set up and all users are activated immediately.
|
|
||||||
|
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
|
|
||||||
context('Registration', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
UserFactory.create(1, {
|
|
||||||
username: 'test',
|
|
||||||
})
|
|
||||||
cy.visit('/', {
|
|
||||||
onBeforeLoad(win) {
|
|
||||||
win.localStorage.removeItem('token')
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Should work without issues', () => {
|
|
||||||
const fixture = {
|
|
||||||
username: 'testuser',
|
|
||||||
password: '123456',
|
|
||||||
email: 'testuser@example.com',
|
|
||||||
}
|
|
||||||
|
|
||||||
cy.visit('/register')
|
|
||||||
cy.get('#username').type(fixture.username)
|
|
||||||
cy.get('#email').type(fixture.email)
|
|
||||||
cy.get('#password').type(fixture.password)
|
|
||||||
cy.get('#register-submit').click()
|
|
||||||
cy.url().should('include', '/')
|
|
||||||
cy.clock(1625656161057) // 13:00
|
|
||||||
cy.get('h2').should('contain', `Hi ${fixture.username}!`)
|
|
||||||
})
|
|
||||||
|
|
||||||
it.only('Should fail', () => {
|
|
||||||
const fixture = {
|
|
||||||
username: 'test',
|
|
||||||
password: '123456',
|
|
||||||
email: 'testuser@example.com',
|
|
||||||
}
|
|
||||||
|
|
||||||
cy.visit('/register')
|
|
||||||
cy.get('#username').type(fixture.username)
|
|
||||||
cy.get('#email').type(fixture.email)
|
|
||||||
cy.get('#password').type(fixture.password)
|
|
||||||
cy.get('#register-submit').click()
|
|
||||||
cy.get('div.message.danger').contains('A user with this username already exists.')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,47 +0,0 @@
|
||||||
import {UserFactory} from '../../factories/user'
|
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
|
||||||
|
|
||||||
describe('User Settings', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
UserFactory.create(1)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Changes the user avatar', () => {
|
|
||||||
cy.intercept(`${Cypress.env('API_URL')}/user/settings/avatar/upload`).as('uploadAvatar')
|
|
||||||
|
|
||||||
cy.visit('/user/settings/avatar')
|
|
||||||
|
|
||||||
cy.get('input[name=avatarProvider][value=upload]')
|
|
||||||
.click()
|
|
||||||
cy.get('input[type=file]', {timeout: 1000})
|
|
||||||
.selectFile('cypress/fixtures/image.jpg', {force: true}) // The input is not visible, but on purpose
|
|
||||||
cy.get('.vue-handler-wrapper.vue-handler-wrapper--south .vue-simple-handler.vue-simple-handler--south')
|
|
||||||
.trigger('mousedown', {which: 1})
|
|
||||||
.trigger('mousemove', {clientY: 100})
|
|
||||||
.trigger('mouseup')
|
|
||||||
cy.get('[data-cy="uploadAvatar"]')
|
|
||||||
.contains('Upload Avatar')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.wait('@uploadAvatar')
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('Updates the name', () => {
|
|
||||||
cy.visit('/user/settings/general')
|
|
||||||
|
|
||||||
cy.get('.general-settings .control input.input')
|
|
||||||
.first()
|
|
||||||
.type('Lorem Ipsum')
|
|
||||||
cy.get('[data-cy="saveGeneralSettings"]')
|
|
||||||
.contains('Save')
|
|
||||||
.click()
|
|
||||||
|
|
||||||
cy.get('.global-notification')
|
|
||||||
.should('contain', 'Success')
|
|
||||||
cy.get('.navbar .user .username')
|
|
||||||
.should('contain', 'Lorem Ipsum')
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,20 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class BucketFactory extends Factory {
|
|
||||||
static table = 'buckets'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
title: faker.lorem.words(3),
|
|
||||||
list_id: 1,
|
|
||||||
created_by_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class LabelTaskFactory extends Factory {
|
|
||||||
static table = 'label_tasks'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
task_id: 1,
|
|
||||||
label_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class LabelFactory extends Factory {
|
|
||||||
static table = 'labels'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
title: faker.lorem.words(2),
|
|
||||||
description: faker.lorem.text(10),
|
|
||||||
hex_color: (Math.random()*0xFFFFFF<<0).toString(16), // random 6-digit hex number
|
|
||||||
created_by_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from "date-fns"
|
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
|
|
||||||
export class LinkShareFactory extends Factory {
|
|
||||||
static table = 'link_shares'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
hash: faker.random.word(32),
|
|
||||||
list_id: 1,
|
|
||||||
right: 0,
|
|
||||||
sharing_type: 0,
|
|
||||||
shared_by_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from "date-fns"
|
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
|
|
||||||
export class ListFactory extends Factory {
|
|
||||||
static table = 'lists'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
title: faker.lorem.words(3),
|
|
||||||
owner_id: 1,
|
|
||||||
namespace_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class NamespaceFactory extends Factory {
|
|
||||||
static table = 'namespaces'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
title: faker.lorem.words(3),
|
|
||||||
owner_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class TaskFactory extends Factory {
|
|
||||||
static table = 'tasks'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
title: faker.lorem.words(3),
|
|
||||||
done: false,
|
|
||||||
list_id: 1,
|
|
||||||
created_by_id: 1,
|
|
||||||
index: '{increment}',
|
|
||||||
position: '{increment}',
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class TaskAssigneeFactory extends Factory {
|
|
||||||
static table = 'task_assignees'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
task_id: 1,
|
|
||||||
user_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class TaskAttachmentFactory extends Factory {
|
|
||||||
static table = 'task_attachments'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
task_id: 1,
|
|
||||||
file_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from "date-fns"
|
|
||||||
|
|
||||||
export class TaskCommentFactory extends Factory {
|
|
||||||
static table = 'task_comments'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
comment: faker.lorem.text(3),
|
|
||||||
author_id: 1,
|
|
||||||
task_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class TeamFactory extends Factory {
|
|
||||||
static table = 'teams'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: faker.lorem.words(3),
|
|
||||||
created_by_id: 1,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from 'date-fns'
|
|
||||||
|
|
||||||
export class TeamMemberFactory extends Factory {
|
|
||||||
static table = 'team_members'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
return {
|
|
||||||
team_id: 1,
|
|
||||||
user_id: 1,
|
|
||||||
admin: false,
|
|
||||||
created: formatISO(new Date()),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
import {faker} from '@faker-js/faker'
|
|
||||||
|
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from "date-fns"
|
|
||||||
|
|
||||||
export class UserFactory extends Factory {
|
|
||||||
static table = 'users'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
username: faker.lorem.word(10) + faker.datatype.uuid(),
|
|
||||||
password: '$2a$14$dcadBoMBL9jQoOcZK8Fju.cy0Ptx2oZECkKLnaa8ekRoTFe1w7To.', // 1234
|
|
||||||
status: 0,
|
|
||||||
issuer: 'local',
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
import {Factory} from '../support/factory'
|
|
||||||
import {formatISO} from "date-fns"
|
|
||||||
|
|
||||||
export class UserListFactory extends Factory {
|
|
||||||
static table = 'users_lists'
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
const now = new Date()
|
|
||||||
|
|
||||||
return {
|
|
||||||
id: '{increment}',
|
|
||||||
list_id: 1,
|
|
||||||
user_id: 1,
|
|
||||||
right: 0,
|
|
||||||
created: formatISO(now),
|
|
||||||
updated: formatISO(now)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Before Width: | Height: | Size: 872 KiB |
|
@ -1,29 +0,0 @@
|
||||||
|
|
||||||
// This authenticates a user and puts the token in local storage which allows us to perform authenticated requests.
|
|
||||||
// Built after https://github.com/cypress-io/cypress-example-recipes/tree/bd2d6ffb33214884cab343d38e7f9e6ebffb323f/examples/logging-in__jwt
|
|
||||||
|
|
||||||
import {UserFactory} from '../factories/user'
|
|
||||||
|
|
||||||
let token
|
|
||||||
|
|
||||||
before(() => {
|
|
||||||
const users = UserFactory.create(1)
|
|
||||||
|
|
||||||
cy.request('POST', `${Cypress.env('API_URL')}/login`, {
|
|
||||||
username: users[0].username,
|
|
||||||
password: '1234',
|
|
||||||
})
|
|
||||||
.its('body')
|
|
||||||
.then(r => {
|
|
||||||
token = r.token
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
cy.log(`Using token ${token} to make authenticated requests`)
|
|
||||||
cy.visit('/', {
|
|
||||||
onBeforeLoad(win) {
|
|
||||||
win.localStorage.setItem('token', token)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,71 +0,0 @@
|
||||||
/// <reference types="cypress" />
|
|
||||||
// ***********************************************
|
|
||||||
// This example commands.ts shows you how to
|
|
||||||
// create various custom commands and overwrite
|
|
||||||
// existing commands.
|
|
||||||
//
|
|
||||||
// For more comprehensive examples of custom
|
|
||||||
// commands please read more here:
|
|
||||||
// https://on.cypress.io/custom-commands
|
|
||||||
// ***********************************************
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a parent command --
|
|
||||||
// Cypress.Commands.add('login', (email, password) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a child command --
|
|
||||||
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This is a dual command --
|
|
||||||
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// -- This will overwrite an existing command --
|
|
||||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
|
||||||
//
|
|
||||||
// declare global {
|
|
||||||
// namespace Cypress {
|
|
||||||
// interface Chainable {
|
|
||||||
// login(email: string, password: string): Chainable<void>
|
|
||||||
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
||||||
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
|
||||||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recursively gets an element, returning only after it's determined to be attached to the DOM for good.
|
|
||||||
*
|
|
||||||
* Source: https://github.com/cypress-io/cypress/issues/7306#issuecomment-850621378
|
|
||||||
*/
|
|
||||||
Cypress.Commands.add('getSettled', (selector, opts = {}) => {
|
|
||||||
const retries = opts.retries || 3
|
|
||||||
const delay = opts.delay || 100
|
|
||||||
|
|
||||||
const isAttached = (resolve, count = 0) => {
|
|
||||||
const el = Cypress.$(selector)
|
|
||||||
|
|
||||||
// is element attached to the DOM?
|
|
||||||
count = Cypress.dom.isAttached(el) ? count + 1 : 0
|
|
||||||
|
|
||||||
// hit our base case, return the element
|
|
||||||
if (count >= retries) {
|
|
||||||
return resolve(el)
|
|
||||||
}
|
|
||||||
|
|
||||||
// retry after a bit of a delay
|
|
||||||
setTimeout(() => isAttached(resolve, count), delay)
|
|
||||||
}
|
|
||||||
|
|
||||||
// wrap, so we can chain cypress commands off the result
|
|
||||||
return cy.wrap(null).then(() => {
|
|
||||||
return new Cypress.Promise((resolve) => {
|
|
||||||
return isAttached(resolve, 0)
|
|
||||||
}).then((el) => {
|
|
||||||
return cy.wrap(el)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
|
@ -1,12 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
||||||
<title>Components App</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div data-cy-root></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,29 +0,0 @@
|
||||||
// ***********************************************************
|
|
||||||
// This example support/component.ts is processed and
|
|
||||||
// loaded automatically before your test files.
|
|
||||||
//
|
|
||||||
// This is a great place to put global configuration and
|
|
||||||
// behavior that modifies Cypress.
|
|
||||||
//
|
|
||||||
// You can change the location of this file or turn off
|
|
||||||
// automatically serving support files with the
|
|
||||||
// 'supportFile' configuration option.
|
|
||||||
//
|
|
||||||
// You can read more here:
|
|
||||||
// https://on.cypress.io/configuration
|
|
||||||
// ***********************************************************
|
|
||||||
|
|
||||||
// Import commands.js using ES2015 syntax:
|
|
||||||
import './commands'
|
|
||||||
|
|
||||||
// Alternatively you can use CommonJS syntax:
|
|
||||||
// require('./commands')
|
|
||||||
|
|
||||||
import { mount } from 'cypress/vue'
|
|
||||||
// Ensure global styles are loaded
|
|
||||||
import '../../src/styles/global.scss';
|
|
||||||
|
|
||||||
Cypress.Commands.add('mount', mount)
|
|
||||||
|
|
||||||
// Example use:
|
|
||||||
// cy.mount(MyComponent)
|
|
|
@ -1,10 +0,0 @@
|
||||||
|
|
||||||
import './commands'
|
|
||||||
import '@4tw/cypress-drag-drop'
|
|
||||||
|
|
||||||
// see https://github.com/cypress-io/cypress/issues/702#issuecomment-587127275
|
|
||||||
Cypress.on('window:before:load', (win) => {
|
|
||||||
// disable service workers
|
|
||||||
// @ts-ignore
|
|
||||||
delete win.navigator.__proto__.ServiceWorker
|
|
||||||
})
|
|
|
@ -1,52 +0,0 @@
|
||||||
import {seed} from './seed'
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A factory makes it easy to seed the database with data.
|
|
||||||
*/
|
|
||||||
export class Factory {
|
|
||||||
static table = null
|
|
||||||
|
|
||||||
static factory() {
|
|
||||||
return {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Seeds a bunch of fake data into the database.
|
|
||||||
*
|
|
||||||
* Takes an override object as its single argument which will override the data from the factory.
|
|
||||||
* If the value of one of the override fields is `{increment}` that value will be replaced with an incrementing
|
|
||||||
* number through all created entities.
|
|
||||||
*
|
|
||||||
* @param override
|
|
||||||
* @returns {[]}
|
|
||||||
*/
|
|
||||||
static create(count = 1, override = {}, truncate = true) {
|
|
||||||
const data = []
|
|
||||||
|
|
||||||
for (let i = 1; i <= count; i++) {
|
|
||||||
const entry = {
|
|
||||||
...this.factory(),
|
|
||||||
...override,
|
|
||||||
}
|
|
||||||
for (const e in entry) {
|
|
||||||
if(typeof entry[e] === 'function') {
|
|
||||||
entry[e] = entry[e](i)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if (entry[e] === '{increment}') {
|
|
||||||
entry[e] = i
|
|
||||||
}
|
|
||||||
}
|
|
||||||
data.push(entry)
|
|
||||||
}
|
|
||||||
|
|
||||||
seed(this.table, data, truncate)
|
|
||||||
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
static truncate() {
|
|
||||||
seed(this.table, null)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
/**
|
|
||||||
* Seeds a db table with data. If a data object is provided as the second argument, it will load the fixtures
|
|
||||||
* file for the table and merge the data from it with the passed data. This allows you to override specific
|
|
||||||
* fields of the fixtures without having to redeclare the whole fixture.
|
|
||||||
*
|
|
||||||
* Passing null as the second argument empties the table.
|
|
||||||
*
|
|
||||||
* @param table
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export function seed(table, data = {}, truncate = true) {
|
|
||||||
if (data === null) {
|
|
||||||
data = []
|
|
||||||
}
|
|
||||||
|
|
||||||
cy.request({
|
|
||||||
method: 'PATCH',
|
|
||||||
url: `${Cypress.env('API_URL')}/test/${table}?truncate=${truncate ? 'true' : 'false'}`,
|
|
||||||
headers: {
|
|
||||||
'Authorization': Cypress.env('TEST_SECRET'),
|
|
||||||
},
|
|
||||||
body: data,
|
|
||||||
})
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
|
|
||||||
export function updateUserSettings(settings) {
|
|
||||||
const token = `Bearer ${window.localStorage.getItem('token')}`
|
|
||||||
|
|
||||||
return cy.request({
|
|
||||||
method: 'GET',
|
|
||||||
url: `${Cypress.env('API_URL')}/user`,
|
|
||||||
headers: {
|
|
||||||
'Authorization': token,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.its('body')
|
|
||||||
.then(oldSettings => {
|
|
||||||
return cy.request({
|
|
||||||
method: 'POST',
|
|
||||||
url: `${Cypress.env('API_URL')}/user/settings/general`,
|
|
||||||
headers: {
|
|
||||||
'Authorization': token,
|
|
||||||
},
|
|
||||||
body: {
|
|
||||||
...oldSettings,
|
|
||||||
...settings,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "@vue/tsconfig/tsconfig.web.json",
|
|
||||||
"include": ["./integration/**/*", "./support/**/*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
"isolatedModules": false,
|
|
||||||
"target": "es5",
|
|
||||||
"lib": ["es5", "dom"],
|
|
||||||
"types": ["cypress"]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
image: vikunja/frontend:unstable
|
|
||||||
manifests:
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:unstable-linux-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: linux
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:unstable-linux-arm64
|
|
||||||
platform:
|
|
||||||
architecture: arm64
|
|
||||||
os: linux
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:unstable-linux-arm
|
|
||||||
platform:
|
|
||||||
architecture: arm
|
|
||||||
os: linux
|
|
|
@ -1,23 +0,0 @@
|
||||||
image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
|
||||||
{{#if build.tags}}
|
|
||||||
tags:
|
|
||||||
{{#each build.tags}}
|
|
||||||
- {{this}}
|
|
||||||
{{/each}}
|
|
||||||
{{/if}}
|
|
||||||
manifests:
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: linux
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
|
||||||
platform:
|
|
||||||
architecture: arm64
|
|
||||||
os: linux
|
|
||||||
-
|
|
||||||
image: vikunja/frontend:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
|
||||||
platform:
|
|
||||||
architecture: arm
|
|
||||||
os: linux
|
|
3
env.d.ts
vendored
|
@ -1,3 +0,0 @@
|
||||||
/// <reference types="vite/client" />
|
|
||||||
/// <reference types="vite-svg-loader" />
|
|
||||||
/// <reference types="cypress" />
|
|
25
flake.lock
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1664753041,
|
|
||||||
"narHash": "sha256-0ogaD8PaGHluARFeupofvk1Nq9gpVeZdlFM0Kcwguys=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "a62844b302507c7531ad68a86cb7aa54704c9cb4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"id": "nixpkgs",
|
|
||||||
"type": "indirect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
10
flake.nix
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
description = "Vikunja frontend dev environment";
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
|
||||||
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
in {
|
|
||||||
defaultPackage.x86_64-linux =
|
|
||||||
pkgs.mkShell { buildInputs = [ pkgs.nodePackages.pnpm pkgs.cypress ]; };
|
|
||||||
};
|
|
||||||
}
|
|
38
index.html
|
@ -1,38 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
||||||
<title>Vikunja</title>
|
|
||||||
<meta name="description" content="Vikunja (/vɪˈkuːnjə/) - The to-do app to organize your life.">
|
|
||||||
<meta name="theme-color" content="#1973ff"/>
|
|
||||||
|
|
||||||
<link rel="icon" href="/favicon.ico">
|
|
||||||
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon-180x180.png"/>
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/open-sans-v15-latin-700italic.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/open-sans-v15-latin-italic.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/quicksand-v7-latin-500.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/quicksand-v7-latin-700.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/open-sans-v15-latin-regular.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/open-sans-v15-latin-700.woff2" as="font">
|
|
||||||
<link rel="preload" crossorigin="anonymous" href="/fonts/quicksand-v7-latin-regular.woff2" as="font">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<noscript>
|
|
||||||
<strong>We're sorry but Vikunja doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
||||||
</noscript>
|
|
||||||
<div id="app"></div>
|
|
||||||
<script type="module" src="/src/main.ts"></script>
|
|
||||||
<script>
|
|
||||||
//
|
|
||||||
// This variable points the frontend to the api.
|
|
||||||
// It has to be the full url, including the last /api/v1 part and port.
|
|
||||||
// You can change this if your api is not reachable on the same port as the frontend.
|
|
||||||
window.API_URL = 'http://localhost:3456/api/v1'
|
|
||||||
// Enable error tracking with sentry. If this is set to true, will send anonymized data to
|
|
||||||
// our sentry instance to notify us of potential problems.
|
|
||||||
window.SENTRY_ENABLED = false
|
|
||||||
window.SENTRY_DSN = 'https://85694a2d757547cbbc90cd4b55c5a18d@o1047380.ingest.sentry.io/6024480'
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
15
netlify.toml
|
@ -1,15 +0,0 @@
|
||||||
[build]
|
|
||||||
command = "pnpm run build"
|
|
||||||
publish = "dist-preview"
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = "/*"
|
|
||||||
to = "/index.html"
|
|
||||||
status = 200
|
|
||||||
|
|
||||||
[[headers]]
|
|
||||||
for = "/*"
|
|
||||||
[headers.values]
|
|
||||||
X-Frame-Options = "DENY"
|
|
||||||
X-XSS-Protection = "1; mode=block"
|
|
||||||
X-Robots-Tag = "noindex"
|
|
127
nginx.conf
|
@ -6,110 +6,55 @@ pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
types {
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
application/manifest+json webmanifest;
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
}
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
access_log /var/log/nginx/access.log main;
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log main;
|
sendfile on;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
sendfile on;
|
keepalive_timeout 65;
|
||||||
#tcp_nopush on;
|
|
||||||
|
|
||||||
keepalive_timeout 65;
|
gzip on;
|
||||||
|
gzip_disable "msie6";
|
||||||
|
|
||||||
gzip on;
|
gzip_vary on;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_buffers 16 8k;
|
||||||
|
gzip_http_version 1.1;
|
||||||
|
gzip_min_length 256;
|
||||||
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml;
|
||||||
|
|
||||||
gzip_vary on;
|
server {
|
||||||
gzip_proxied any;
|
listen 80;
|
||||||
gzip_comp_level 6;
|
listen 81 default_server http2 proxy_protocol; ## Needed when behind HAProxy with SSL termination + HTTP/2 support
|
||||||
gzip_buffers 16 8k;
|
listen 443 default_server ssl http2;
|
||||||
gzip_http_version 1.1;
|
|
||||||
gzip_min_length 256;
|
|
||||||
gzip_types
|
|
||||||
text/plain
|
|
||||||
text/css
|
|
||||||
application/json
|
|
||||||
application/x-javascript
|
|
||||||
application/javascript
|
|
||||||
text/xml
|
|
||||||
application/xml
|
|
||||||
application/xml+rss
|
|
||||||
text/javascript
|
|
||||||
application/vnd.ms-fontobject
|
|
||||||
application/x-font-ttf
|
|
||||||
font/opentype
|
|
||||||
image/svg+xml
|
|
||||||
image/x-icon
|
|
||||||
audio/wav;
|
|
||||||
|
|
||||||
map_hash_max_size 128;
|
server_name _;
|
||||||
map_hash_bucket_size 128;
|
|
||||||
|
|
||||||
# Expires map
|
ssl_certificate /etc/nginx/ssl/dummy.crt;
|
||||||
map $sent_http_content_type $expires {
|
ssl_certificate_key /etc/nginx/ssl/dummy.key;
|
||||||
default off;
|
|
||||||
text/css max;
|
|
||||||
application/javascript max;
|
|
||||||
text/javascript max;
|
|
||||||
application/vnd.ms-fontobject max;
|
|
||||||
application/x-font-ttf max;
|
|
||||||
font/opentype max;
|
|
||||||
font/woff2 max;
|
|
||||||
image/svg+xml max;
|
|
||||||
image/x-icon max;
|
|
||||||
audio/wav max;
|
|
||||||
~images/ max;
|
|
||||||
~font/ max;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
location / {
|
||||||
listen 80;
|
root /usr/share/nginx/html;
|
||||||
listen 81 default_server http2 proxy_protocol; ## Needed when behind HAProxy with SSL termination + HTTP/2 support
|
try_files $uri $uri/ /;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
server_name _;
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
expires $expires;
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
root /usr/share/nginx/html;
|
}
|
||||||
|
|
||||||
# all assets contain hash in filename, cache forever
|
|
||||||
location ^~ /assets/ {
|
|
||||||
add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable";
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
# all workbox scripts are compiled with hash in filename, cache forever3
|
|
||||||
location ^~ /workbox- {
|
|
||||||
add_header Cache-Control "public, max-age=31536000, s-maxage=31536000, immutable";
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
# assume that everything else is handled by the application router, by injecting the index.html.
|
|
||||||
location / {
|
|
||||||
autoindex off;
|
|
||||||
expires off;
|
|
||||||
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
|
|
||||||
try_files $uri /index.html =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* .(txt|webmanifest|css|js|mjs|map|svg|jpg|jpeg|png|ico|ttf|woff|woff2|wav)$ {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
location = /50x.html {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 10 KiB |
|
@ -1,149 +0,0 @@
|
||||||
<?xml version="1.0" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
||||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
||||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
width="16.000000pt" height="16.000000pt" viewBox="0 0 16.000000 16.000000"
|
|
||||||
preserveAspectRatio="xMidYMid meet">
|
|
||||||
<metadata>
|
|
||||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
|
||||||
</metadata>
|
|
||||||
<g transform="translate(0.000000,16.000000) scale(0.000320,-0.000320)"
|
|
||||||
fill="#000000" stroke="none">
|
|
||||||
<path d="M18 46618 c45 -75 122 -207 122 -211 0 -2 25 -45 55 -95 30 -50 55
|
|
||||||
-96 55 -102 0 -5 5 -10 10 -10 6 0 10 -4 10 -9 0 -5 73 -135 161 -288 89 -153
|
|
||||||
173 -298 187 -323 14 -25 32 -57 41 -72 88 -149 187 -324 189 -335 2 -7 8 -13
|
|
||||||
13 -13 5 0 9 -4 9 -10 0 -5 46 -89 103 -187 175 -302 490 -846 507 -876 8 -16
|
|
||||||
20 -36 25 -45 28 -46 290 -498 339 -585 13 -23 74 -129 136 -236 61 -107 123
|
|
||||||
-215 137 -240 14 -25 29 -50 33 -56 5 -5 23 -37 40 -70 18 -33 38 -67 44 -75
|
|
||||||
11 -16 21 -33 63 -109 14 -25 29 -50 33 -56 4 -5 21 -35 38 -65 55 -100 261
|
|
||||||
-455 269 -465 4 -5 14 -21 20 -35 15 -29 41 -75 103 -180 24 -41 52 -88 60
|
|
||||||
-105 9 -16 57 -100 107 -185 112 -193 362 -626 380 -660 8 -14 23 -38 33 -55
|
|
||||||
11 -16 23 -37 27 -45 4 -8 26 -46 48 -85 23 -38 53 -90 67 -115 46 -81 64
|
|
||||||
-113 178 -310 62 -107 121 -210 132 -227 37 -67 56 -99 85 -148 16 -27 32 -57
|
|
||||||
36 -65 4 -8 15 -27 25 -42 9 -15 53 -89 96 -165 44 -76 177 -307 296 -513 120
|
|
||||||
-206 268 -463 330 -570 131 -227 117 -203 200 -348 36 -62 73 -125 82 -140 10
|
|
||||||
-15 21 -34 25 -42 4 -8 20 -37 36 -65 17 -27 38 -65 48 -82 49 -85 64 -111 87
|
|
||||||
-153 13 -25 28 -49 32 -55 4 -5 78 -134 165 -285 87 -151 166 -288 176 -305
|
|
||||||
10 -16 26 -43 35 -59 9 -17 125 -217 257 -445 132 -229 253 -441 270 -471 17
|
|
||||||
-30 45 -79 64 -108 18 -29 33 -54 33 -57 0 -2 20 -37 44 -77 24 -40 123 -212
|
|
||||||
221 -383 97 -170 190 -330 205 -355 16 -25 39 -65 53 -90 13 -25 81 -144 152
|
|
||||||
-265 70 -121 137 -238 150 -260 12 -22 37 -65 55 -95 18 -30 43 -73 55 -95 12
|
|
||||||
-22 48 -85 80 -140 77 -132 163 -280 190 -330 13 -22 71 -123 130 -225 59
|
|
||||||
-102 116 -199 126 -217 10 -17 29 -50 43 -72 15 -22 26 -43 26 -45 0 -2 27
|
|
||||||
-50 60 -106 33 -56 60 -103 60 -105 0 -2 55 -98 90 -155 8 -14 182 -316 239
|
|
||||||
-414 13 -22 45 -79 72 -124 27 -46 49 -86 49 -89 0 -2 14 -24 30 -48 16 -24
|
|
||||||
30 -46 30 -49 0 -5 74 -135 100 -176 5 -8 24 -42 43 -75 50 -88 58 -101 262
|
|
||||||
-455 104 -179 199 -345 213 -370 14 -25 28 -49 32 -55 4 -5 17 -26 28 -45 10
|
|
||||||
-19 62 -109 114 -200 114 -197 133 -230 170 -295 16 -27 33 -57 38 -65 17 -28
|
|
||||||
96 -165 103 -180 4 -8 16 -28 26 -45 10 -16 77 -131 148 -255 72 -124 181
|
|
||||||
-313 243 -420 62 -107 121 -209 131 -227 35 -62 323 -560 392 -678 38 -66 83
|
|
||||||
-145 100 -175 16 -30 33 -59 37 -65 4 -5 17 -27 29 -47 34 -61 56 -100 90
|
|
||||||
-156 17 -29 31 -55 31 -57 0 -2 17 -32 39 -67 21 -35 134 -229 251 -433 117
|
|
||||||
-203 235 -407 261 -451 27 -45 49 -85 49 -88 0 -4 8 -19 19 -34 15 -21 200
|
|
||||||
-341 309 -533 10 -19 33 -58 51 -87 17 -29 31 -54 31 -56 0 -2 25 -44 55 -94
|
|
||||||
30 -50 55 -95 55 -98 0 -4 6 -15 14 -23 7 -9 27 -41 43 -71 17 -30 170 -297
|
|
||||||
342 -594 171 -296 311 -542 311 -547 0 -5 5 -9 10 -9 6 0 10 -4 10 -10 0 -5
|
|
||||||
22 -47 49 -92 27 -46 58 -99 68 -118 24 -43 81 -140 93 -160 5 -8 66 -114 135
|
|
||||||
-235 69 -121 130 -227 135 -235 12 -21 259 -447 283 -490 10 -19 28 -47 38
|
|
||||||
-62 11 -14 19 -29 19 -32 0 -3 37 -69 83 -148 99 -170 305 -526 337 -583 13
|
|
||||||
-22 31 -53 41 -70 11 -16 22 -37 26 -45 7 -14 82 -146 103 -180 14 -24 181
|
|
||||||
-311 205 -355 13 -22 46 -80 75 -130 29 -49 64 -110 78 -135 14 -25 51 -88 82
|
|
||||||
-140 31 -52 59 -102 63 -110 4 -8 18 -33 31 -55 205 -353 284 -489 309 -535
|
|
||||||
17 -30 45 -78 62 -106 18 -28 36 -60 39 -72 4 -12 12 -22 17 -22 5 0 9 -4 9
|
|
||||||
-10 0 -5 109 -197 241 -427 133 -230 250 -431 259 -448 51 -90 222 -385 280
|
|
||||||
-485 37 -63 78 -135 92 -160 14 -25 67 -117 118 -205 51 -88 101 -175 111
|
|
||||||
-193 34 -58 55 -95 149 -257 51 -88 101 -173 110 -190 9 -16 76 -131 147 -255
|
|
||||||
72 -124 140 -241 151 -260 61 -108 281 -489 355 -615 38 -66 77 -133 87 -150
|
|
||||||
35 -63 91 -161 100 -175 14 -23 99 -169 128 -220 54 -97 135 -235 142 -245 4
|
|
||||||
-5 20 -32 35 -60 26 -48 238 -416 276 -480 10 -16 26 -46 37 -65 30 -53 382
|
|
||||||
-661 403 -695 10 -16 22 -37 26 -45 4 -8 26 -48 50 -88 24 -41 43 -75 43 -77
|
|
||||||
0 -2 22 -40 50 -85 27 -45 50 -84 50 -86 0 -3 38 -69 83 -147 84 -142 302
|
|
||||||
-520 340 -587 10 -19 34 -60 52 -90 18 -30 44 -75 57 -100 14 -25 45 -79 70
|
|
||||||
-120 25 -41 56 -96 70 -121 14 -25 77 -133 138 -240 62 -107 122 -210 132
|
|
||||||
-229 25 -43 310 -535 337 -581 11 -19 26 -45 34 -59 17 -32 238 -414 266 -460
|
|
||||||
11 -19 24 -41 28 -49 3 -7 75 -133 160 -278 84 -146 153 -269 153 -274 0 -5 5
|
|
||||||
-9 10 -9 6 0 10 -4 10 -10 0 -5 82 -150 181 -322 182 -314 201 -346 240 -415
|
|
||||||
12 -21 80 -139 152 -263 71 -124 141 -245 155 -270 14 -25 28 -49 32 -55 6 -8
|
|
||||||
145 -248 220 -380 37 -66 209 -362 229 -395 11 -19 24 -42 28 -49 4 -8 67
|
|
||||||
-118 140 -243 73 -125 133 -230 133 -233 0 -2 15 -28 33 -57 19 -29 47 -78 64
|
|
||||||
-108 17 -30 53 -93 79 -139 53 -90 82 -141 157 -272 82 -142 115 -199 381
|
|
||||||
-659 142 -245 268 -463 281 -485 12 -22 71 -125 132 -230 60 -104 172 -298
|
|
||||||
248 -430 76 -132 146 -253 156 -270 11 -16 22 -36 26 -44 3 -8 30 -54 60 -103
|
|
||||||
29 -49 53 -91 53 -93 0 -3 18 -34 40 -70 22 -36 40 -67 40 -69 0 -2 37 -66 81
|
|
||||||
-142 45 -77 98 -168 119 -204 20 -36 47 -81 58 -100 12 -19 27 -47 33 -62 6
|
|
||||||
-16 15 -28 20 -28 5 0 9 -4 9 -9 0 -6 63 -118 140 -251 77 -133 140 -243 140
|
|
||||||
-245 0 -2 18 -33 41 -70 22 -37 49 -83 60 -101 10 -19 29 -51 40 -71 25 -45
|
|
||||||
109 -189 126 -218 7 -11 17 -29 22 -40 6 -11 22 -38 35 -60 14 -22 37 -62 52
|
|
||||||
-90 14 -27 35 -62 45 -77 11 -14 19 -29 19 -32 0 -3 18 -35 40 -71 22 -36 40
|
|
||||||
-67 40 -69 0 -2 19 -35 42 -72 23 -38 55 -94 72 -124 26 -47 139 -244 171
|
|
||||||
-298 6 -9 21 -36 34 -60 28 -48 37 -51 51 -19 6 12 19 36 29 52 10 17 27 46
|
|
||||||
38 65 11 19 104 181 208 360 103 179 199 345 213 370 14 25 42 74 64 109 21
|
|
||||||
34 38 65 38 67 0 2 18 33 40 69 22 36 40 67 40 69 0 3 177 310 199 346 16 26
|
|
||||||
136 234 140 244 2 5 25 44 52 88 27 44 49 81 49 84 0 2 18 34 40 70 22 36 40
|
|
||||||
67 40 69 0 2 20 36 43 77 35 58 169 289 297 513 9 17 50 86 90 155 40 69 86
|
|
||||||
150 103 180 16 30 35 62 41 70 6 8 16 24 22 35 35 64 72 129 167 293 59 100
|
|
||||||
116 199 127 220 11 20 30 53 41 72 43 72 1070 1850 1121 1940 14 25 65 113
|
|
||||||
113 195 48 83 96 166 107 185 10 19 28 50 38 68 11 18 73 124 137 235 64 111
|
|
||||||
175 303 246 427 71 124 173 299 225 390 52 91 116 202 143 248 27 45 49 85 49
|
|
||||||
89 0 4 6 14 14 22 7 9 28 43 46 76 26 47 251 436 378 655 11 19 29 51 40 70
|
|
||||||
11 19 101 176 201 348 99 172 181 317 181 323 0 5 5 9 10 9 6 0 10 5 10 11 0
|
|
||||||
6 8 23 18 37 11 15 32 52 49 82 16 30 130 228 253 440 122 212 234 405 248
|
|
||||||
430 13 25 39 70 57 100 39 65 69 117 130 225 25 44 50 87 55 95 12 19 78 134
|
|
||||||
220 380 61 107 129 224 150 260 161 277 222 382 246 425 15 28 47 83 71 123
|
|
||||||
24 41 43 78 43 83 0 5 4 9 8 9 4 0 13 12 19 28 7 15 23 45 36 67 66 110 277
|
|
||||||
478 277 483 0 3 6 13 14 21 7 9 27 41 43 71 17 30 45 80 63 110 34 57 375 649
|
|
||||||
394 685 6 11 16 27 22 35 6 8 26 42 44 75 18 33 41 74 51 90 10 17 24 41 32
|
|
||||||
55 54 97 72 128 88 152 11 14 19 28 19 30 0 3 79 141 175 308 96 167 175 305
|
|
||||||
175 308 0 3 6 13 14 21 7 9 26 39 41 66 33 60 276 483 338 587 24 40 46 80 50
|
|
||||||
88 4 8 13 24 20 35 14 23 95 163 125 215 11 19 52 91 92 160 40 69 80 139 90
|
|
||||||
155 9 17 103 179 207 360 105 182 200 346 211 365 103 181 463 802 489 845 7
|
|
||||||
11 15 27 19 35 4 8 29 51 55 95 64 110 828 1433 848 1470 9 17 24 41 33 55 9
|
|
||||||
14 29 48 45 77 15 28 52 93 82 145 30 51 62 107 71 123 17 30 231 398 400 690
|
|
||||||
51 88 103 179 115 202 12 23 26 48 32 55 6 7 24 38 40 68 17 30 61 107 98 170
|
|
||||||
37 63 84 144 103 180 19 36 41 72 48 81 8 8 14 18 14 21 0 4 27 51 59 106 32
|
|
||||||
55 72 124 89 154 16 29 71 125 122 213 51 88 104 180 118 205 13 25 28 50 32
|
|
||||||
55 4 6 17 26 28 45 11 19 45 80 77 135 31 55 66 116 77 135 11 19 88 152 171
|
|
||||||
295 401 694 620 1072 650 1125 11 19 87 152 170 295 83 143 158 273 166 288 9
|
|
||||||
16 21 36 26 45 6 9 31 52 55 96 25 43 54 94 66 115 11 20 95 164 186 321 91
|
|
||||||
157 173 299 182 315 9 17 26 46 37 65 12 19 66 114 121 210 56 96 108 186 117
|
|
||||||
200 8 14 24 40 34 59 24 45 383 664 412 713 5 9 17 29 26 45 15 28 120 210
|
|
||||||
241 419 36 61 68 117 72 125 4 8 12 23 19 34 35 57 245 420 262 453 11 20 35
|
|
||||||
61 53 90 17 29 32 54 32 56 0 3 28 51 62 108 33 57 70 119 80 138 10 19 23 42
|
|
||||||
28 50 5 8 32 53 59 100 27 47 149 258 271 470 122 212 234 405 248 430 30 53
|
|
||||||
62 108 80 135 6 11 15 27 19 35 4 8 85 150 181 315 96 165 187 323 202 350 31
|
|
||||||
56 116 202 130 225 5 8 25 42 43 75 19 33 92 159 162 280 149 257 157 271 202
|
|
||||||
350 19 33 38 67 43 75 9 14 228 392 275 475 12 22 55 96 95 165 40 69 80 139
|
|
||||||
90 155 24 42 202 350 221 383 9 15 27 47 41 72 14 25 75 131 136 236 61 106
|
|
||||||
121 210 134 232 99 172 271 470 279 482 5 8 23 40 40 70 18 30 81 141 142 245
|
|
||||||
60 105 121 210 135 235 14 25 71 124 127 220 56 96 143 247 194 335 51 88 96
|
|
||||||
167 102 175 14 24 180 311 204 355 23 43 340 590 356 615 5 8 50 87 101 175
|
|
||||||
171 301 517 898 582 1008 25 43 46 81 46 83 0 2 12 23 27 47 14 23 40 67 56
|
|
||||||
97 16 30 35 62 42 70 7 8 15 22 18 30 4 8 20 38 37 65 16 28 33 57 37 65 6 12
|
|
||||||
111 196 143 250 5 8 55 95 112 193 57 98 113 195 126 215 12 20 27 46 32 57 6
|
|
||||||
11 14 27 20 35 5 8 76 130 156 270 80 140 165 287 187 325 23 39 52 90 66 115
|
|
||||||
13 25 30 52 37 61 8 8 14 18 14 21 0 4 41 77 92 165 50 87 175 302 276 478
|
|
||||||
101 176 208 360 236 408 28 49 67 117 86 152 19 35 41 70 48 77 6 6 12 15 12
|
|
||||||
19 0 7 124 224 167 291 12 21 23 40 23 42 0 2 21 40 46 83 26 43 55 92 64 109
|
|
||||||
54 95 327 568 354 614 19 30 45 75 59 100 71 128 82 145 89 148 4 2 8 8 8 13
|
|
||||||
0 5 42 82 94 172 311 538 496 858 518 897 14 25 40 70 58 100 18 30 42 71 53
|
|
||||||
90 10 19 79 139 152 265 73 127 142 246 153 265 10 19 43 76 72 125 29 50 63
|
|
||||||
108 75 130 65 116 80 140 87 143 4 2 8 8 8 12 0 8 114 212 140 250 6 8 14 24
|
|
||||||
20 35 5 11 54 97 108 190 l100 170 -9611 3 c-5286 1 -9614 -1 -9618 -5 -5 -6
|
|
||||||
-419 -719 -619 -1068 -89 -155 -267 -463 -323 -560 -38 -66 -81 -140 -95 -165
|
|
||||||
-31 -56 -263 -457 -526 -910 -110 -190 -224 -388 -254 -440 -29 -52 -61 -109
|
|
||||||
-71 -125 -23 -39 -243 -420 -268 -465 -11 -19 -204 -352 -428 -740 -224 -388
|
|
||||||
-477 -826 -563 -975 -85 -148 -185 -322 -222 -385 -37 -63 -120 -207 -185
|
|
||||||
-320 -65 -113 -177 -306 -248 -430 -72 -124 -172 -297 -222 -385 -51 -88 -142
|
|
||||||
-245 -202 -350 -131 -226 -247 -427 -408 -705 -65 -113 -249 -432 -410 -710
|
|
||||||
-160 -278 -388 -673 -506 -877 -118 -205 -216 -373 -219 -373 -3 0 -52 82
|
|
||||||
-109 183 -58 100 -144 250 -192 332 -95 164 -402 696 -647 1120 -85 149 -228
|
|
||||||
396 -317 550 -212 365 -982 1700 -1008 1745 -10 19 -43 76 -72 125 -29 50 -64
|
|
||||||
110 -77 135 -14 25 -63 110 -110 190 -47 80 -96 165 -110 190 -14 25 -99 171
|
|
||||||
-188 325 -89 154 -174 300 -188 325 -13 25 -64 113 -112 195 -48 83 -140 242
|
|
||||||
-205 355 -65 113 -183 317 -263 454 -79 137 -152 264 -163 282 -50 89 -335
|
|
||||||
583 -354 614 -12 19 -34 58 -50 85 -15 28 -129 226 -253 440 -124 215 -235
|
|
||||||
408 -247 430 -12 22 -69 121 -127 220 -58 99 -226 389 -373 645 -148 256 -324
|
|
||||||
561 -392 678 -67 117 -134 232 -147 255 -13 23 -33 59 -46 80 l-22 37 -9615 0
|
|
||||||
-9615 0 20 -32z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 174 KiB |
|
@ -1,203 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
version="1.1"
|
|
||||||
id="svg2"
|
|
||||||
xml:space="preserve"
|
|
||||||
width="854.99921"
|
|
||||||
height="250.33229"
|
|
||||||
viewBox="0 0 854.9992 250.33229"
|
|
||||||
sodipodi:docname="logo-full-pride.svg"
|
|
||||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
|
||||||
inkscape:export-xdpi="382.35129"
|
|
||||||
inkscape:export-ydpi="382.35129"><metadata
|
|
||||||
id="metadata8"><rdf:RDF><cc:Work
|
|
||||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
|
||||||
id="defs6"><clipPath
|
|
||||||
clipPathUnits="userSpaceOnUse"
|
|
||||||
id="clipPath4673"><path
|
|
||||||
d="m -494.56809,2401.2217 c -4.09651,22.9357 -8.38485,45.1976 -12.88198,66.6479 -46.57735,222.2017 -109.92915,344.5814 -178.38369,344.5814 -66.13415,0 -128.30782,-117.0181 -175.07036,-329.484 -5.76784,-26.2111 -11.21446,-53.4994 -16.33419,-81.7453 -36.38654,-200.7081 -56.18173,-450.2885 -56.18173,-713.7039 0,-300.4742 25.75435,-582.9663 72.51592,-795.44502 46.76254,-212.4658 108.93621,-329.47968 175.07036,-329.47968 66.13322,0 128.3069,117.01388 175.07039,329.47968 46.76251,212.47872 72.5142,494.97082 72.5142,795.44502 0,256.8692 -20.33815,512.3389 -56.31892,713.7039"
|
|
||||||
style="fill:#196aff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.20138533"
|
|
||||||
id="path4675"
|
|
||||||
inkscape:connector-curvature="0" /></clipPath></defs><sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1916"
|
|
||||||
inkscape:window-height="1018"
|
|
||||||
id="namedview4"
|
|
||||||
showgrid="true"
|
|
||||||
fit-margin-top="0"
|
|
||||||
fit-margin-left="10"
|
|
||||||
fit-margin-right="10"
|
|
||||||
fit-margin-bottom="0"
|
|
||||||
inkscape:zoom="16"
|
|
||||||
inkscape:cx="154.80338"
|
|
||||||
inkscape:cy="2.3103017"
|
|
||||||
inkscape:window-x="1920"
|
|
||||||
inkscape:window-y="60"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="g12"><inkscape:grid
|
|
||||||
type="xygrid"
|
|
||||||
id="grid868"
|
|
||||||
originx="-12.58708"
|
|
||||||
originy="0.35364203" /></sodipodi:namedview><g
|
|
||||||
id="g10"
|
|
||||||
inkscape:groupmode="layer"
|
|
||||||
inkscape:label="ink_ext_XXXXXX"
|
|
||||||
transform="matrix(1.3333333,0,0,-1.3333333,-100.86197,369.33978)"><g
|
|
||||||
id="g12"
|
|
||||||
transform="matrix(0.1,0,0,0.1,9.5479652,-4.2435374)"><g
|
|
||||||
id="g4627"
|
|
||||||
transform="matrix(3.7753253,0,0,0.83091105,4259.9494,475.58715)"
|
|
||||||
clip-path="url(#clipPath4673)"><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-2812.6438"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851"
|
|
||||||
style="opacity:1;fill:#e40303;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-2437.644"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851-6"
|
|
||||||
style="opacity:1;fill:#ff8c00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-2062.6438"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851-7"
|
|
||||||
style="opacity:1;fill:#ffed00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-1687.6438"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851-5"
|
|
||||||
style="opacity:1;fill:#008026;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-1312.6438"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851-3"
|
|
||||||
style="opacity:1;fill:#004dff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><rect
|
|
||||||
transform="scale(1,-1)"
|
|
||||||
y="-937.6438"
|
|
||||||
x="-933.41803"
|
|
||||||
height="374.99991"
|
|
||||||
width="495.10489"
|
|
||||||
id="rect851-3-5"
|
|
||||||
style="opacity:1;fill:#750787;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:31.49272537;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /></g><path
|
|
||||||
d="m 1960.0237,1629.0569 c 34.748,101.8719 92.1383,133.0607 99.2719,290.2631 2.5075,55.2445 -14.2745,230.7172 -14.2745,230.7172 0,0 27.2756,70.3569 -25.1425,148.7323 -81.2774,121.5222 -248.6722,129.7845 -336.5838,129.7845 -87.9117,0 -253.3518,-8.2623 -334.6328,-129.7845 -52.4216,-78.3754 -25.146,-148.7323 -25.146,-148.7323 0,0 -9.2845,-90.2472 -16.3111,-169.8449 -1.6551,-18.6789 0.1533,-92.5664 2.3897,-110.4174 4.0198,-31.9882 14.0997,-63.4172 25.1283,-94.011 13.9642,-38.738 35.8502,-78.0457 52.5608,-117.7907 50.4349,-119.9916 8.2287,-268.6092 10.8075,-398.0029 2.1793,-91.846 -19.4855,-185.0145 -27.9746,-274.83178 95.5446,-32.50114 196.764,-49.45194 300.5873,-49.45194 116.6781,0 230.0819,21.34937 335.8169,62.18766 -19.8566,112.45356 -42.9303,219.11416 -46.49,259.80906 -10.3653,123.0277 -40.2161,253.5112 -0.01,371.3736"
|
|
||||||
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35756606"
|
|
||||||
id="path46"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1316.582,2345.7001 c 1.12,-18.2371 2.9177,-36.931 8.054,-54.6795 1.6121,-5.5321 3.9948,-19.1645 11.1142,-21.1904 8.8528,-2.5218 25.2282,8.0396 31.438,12.6158 12.0309,8.8564 23.295,17.9732 35.3294,26.9224 7.6759,5.707 16.0579,10.194 23.5732,16.0615 8.1787,6.3738 14.3315,14.0925 21.137,21.5935 8.2608,9.1132 14.4563,18.5475 20.8089,28.7202 4.9686,7.9397 36.0928,13.108 41.0756,20.477 5.4395,8.0576 0.8917,18.0233 0.8917,27.9426 0,72.2105 4.3373,143.679 6.0244,214.4877 1.7406,48.5731 20.816,106.2522 -52.0329,83.4852 -156.0915,-48.5731 -154.3509,-264.1129 -147.4135,-376.436"
|
|
||||||
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path48"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 2004.2059,2244.2845 c -1.5693,1.705 -4.084,3.1531 -6.0957,4.644 -8.7423,6.4738 -16.9852,13.2472 -24.4934,20.9159 -9.1632,9.3593 -18.6866,18.4584 -27.4218,28.1672 -7.6829,8.5318 -16.8568,16.1649 -24.3472,24.9001 -4.9935,5.8032 -9.8159,11.9809 -14.2245,18.0731 -2.2506,3.0924 -3.4277,6.8126 -5.1968,10.1227 -2.6359,4.8794 -38.8321,9.8515 -35.2368,14.6097 6.135,8.111 19.7924,14.9913 23.0775,24.2829 16.789,47.3853 24.1189,238.0858 26.1448,286.7552 5.2111,124.4644 114.4738,-6.0743 133.5563,-56.1633 55.507,-145.7156 22.5352,-251.9643 -45.0953,-376.4323"
|
|
||||||
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path50"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1855.5904,1765.3985 c -0.079,71.8609 -9.0098,100.9341 -49.0795,136.071 -25.0641,21.9716 -54.3656,30.3537 -101.009,29.2016 -46.6399,1.1521 -80.2536,-13.0261 -104.4902,-38.19 -36.5601,-37.9653 -46.1869,-60.4185 -46.2903,-132.2795 -0.057,-38.8427 41.8246,-124.789 54.2871,-144.6241 20.684,-34.9835 58.9668,-47.5637 96.4934,-44.9385 37.5302,-2.6252 75.8165,9.955 96.4863,44.9385 12.4732,19.8351 53.6558,104.1371 53.6022,149.821"
|
|
||||||
style="fill:#f1e6d3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path52"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1378.6235,2279.7067 c -9.363,83.8204 -37.5659,233.6558 59.8692,322.5162 10.7468,9.8088 13.6324,-23.5625 15.4301,-37.0629 2.4717,-18.5369 -0.05,-71.4829 0.3281,-90.1445 0.6955,-35.1368 8.0575,-53.5167 4.6262,-69.5782 -9.3737,-43.9041 -16.8961,-41.072 -25.8595,-67.7697 -17.7771,-52.946 -51.8332,-80.8778 -54.3941,-57.9609"
|
|
||||||
style="fill:#f1d7d4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path54"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1987.2991,2296.2674 c 9.9729,-17.8484 36.0214,78.1421 44.1859,119.8312 7.6866,39.2458 17.4525,91.3964 3.9521,130.3855 -7.2406,20.9158 -51.6799,82.3401 -56.923,61.2352 -2.0438,-8.1966 -3.0996,-69.2249 -8.1252,-98.4266 -6.2207,-36.1319 -17.4383,-71.8608 -17.5061,-108.6064 -0.1462,-82.3402 24.6682,-85.7358 34.4163,-104.4189"
|
|
||||||
style="fill:#f1d7d4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path56"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1666.2525,1309.6114 c -2.1116,-6.4096 -18.1053,-11.1036 -24.1118,-13.0404 -14.517,-4.6903 -27.4039,6.7556 -35.5149,16.4003 -11.2783,13.3685 -10.9787,34.691 -15.7012,50.2816 -2.857,9.4271 -19.0183,10.7076 -23.8727,1.9867 -16.1899,-29.1125 -79.0231,25.6705 -64.4205,43.9077 9.6268,12.0273 -13.4184,22.6493 -22.9205,10.786 -28.1851,-35.2081 47.6315,-100.77 91.1146,-83 1.9368,-8.7959 3.9663,-17.5809 7.7008,-25.9345 7.3263,-16.4073 23.3485,-27.008 39.9307,-35.918 22.5851,-12.1093 66.4607,9.1597 73.1628,29.4585 4.6654,14.1211 -20.7197,19.1182 -25.3673,5.0721"
|
|
||||||
style="fill:#faeee0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path58"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1866.4514,1522.3406 c 2.3327,-9.7803 2.7001,-42.9125 -15.5157,-24.7859 -7.3905,7.3548 -22.0679,3.0139 -22.6671,-6.8234 -1.409,-22.7706 -24.2438,-23.2735 -43.9469,-16.3895 -15.6334,5.4536 -23.8871,-16.1507 -8.3785,-21.5615 28.9305,-10.0942 60.3293,-4.5013 72.8061,17.3669 9.8158,-4.619 20.9194,-5.8782 29.8223,2.5003 15.5477,14.6454 17.8911,35.2723 13.3684,54.2407 -3.4348,14.3744 -28.9163,9.8302 -25.4886,-4.5476"
|
|
||||||
style="fill:#faeee0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path60"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1912.6169,1046.2368 c -6.8198,-13.9393 -19.3322,-13.0689 -32.7507,-7.2157 -9.8408,4.2837 -22.0109,-2.8 -19.0432,-12.7621 5.9745,-19.9814 -19.2644,-25.8168 -36.3317,-18.6902 -15.0199,6.274 -28.0745,-13.43272 -12.8941,-19.77811 30.7497,-12.83345 69.8385,-1.60507 75.5098,25.44571 19.778,-3.1351 38.6644,2.4183 48.0951,21.7221 6.5272,13.3221 -15.9723,24.8001 -22.5852,11.2783"
|
|
||||||
style="fill:#faeee0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path62"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1712.7461,2121.1754 c -3.1673,-19.6496 -40.0127,3.2315 -49.1616,9.4342 -8.0539,5.4502 -18.4726,2.1401 -19.457,-7.048 -1.3162,-12.3804 -17.9947,-8.7851 -25.617,-7.2299 -14.4171,2.9318 -26.6442,11.9167 -26.9867,25.4172 -0.3352,13.1187 7.9898,26.8938 12.3306,39.2102 2.7785,7.8648 -8.4926,16.5179 -16.732,11.2569 -14.838,-9.4736 -86.3779,-17.9947 -57.8861,13.1901 9.0776,9.9335 -6.9446,24.1439 -16.1185,14.0997 -13.1615,-14.4101 -22.0643,-47.4175 6.4097,-54.4049 15.0306,-3.6845 36.7811,-3.499 55.3179,0.7276 -7.74,-24.8073 -9.3629,-47.5137 22.5459,-63.4538 21.5615,-10.7754 51.1733,-10.7006 63.7214,5.9459 26.4016,-14.1996 67.8731,-27.9747 73.6087,7.5581 2.033,12.5659 -19.9244,17.991 -21.9753,5.2967"
|
|
||||||
style="fill:#faeee0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path64"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1589.3446,1665.802 c 38.3291,-3.2422 76.6725,-11.9489 115.3583,-10.5507 24.7289,0.8989 50.3315,4.3623 74.7286,7.979 17.7236,2.6252 39.4527,5.7248 51.3088,18.8649 1.1129,-43.8327 -90.0767,-57.5507 -125.4453,-58.4425 -41.0328,-1.0379 -87.1519,16.7678 -115.9504,42.1493"
|
|
||||||
style="fill:#494949;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path66"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1692.9645,1757.2483 c -4.3837,-28.1351 -5.2896,-56.6661 -2.6502,-84.9689 0.6991,-7.3976 -1.2734,-25.032 8.5639,-28.7452 7.9755,-3.0139 17.8342,2.6502 19.1361,9.8445 2.2008,12.1273 -2.9604,27.4218 -3.3991,39.8415 -0.5173,14.5455 0,29.1125 1.5373,43.5902 0.9202,8.5818 5.7354,20.1597 -4.0877,26.2055 -7.2086,4.4336 -17.7771,2.7964 -19.1003,-5.7676"
|
|
||||||
style="fill:#494949;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path68"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1767.4791,1825.6458 c -23.0381,-0.9952 -44.4284,-13.8857 -61.7276,-26.3125 -15.6583,10.3937 -39.3671,19.9458 -59.0951,14.3851 -11.7599,-3.3029 -1.0808,-6.909 3.8235,-10.0442 9.0634,-6.028 16.4503,-13.7751 23.1167,-21.7791 10.1155,-12.2663 19.1075,-25.1461 29.9007,-36.9773 7.4726,5.3788 14.6062,10.811 21.1014,17.0958 3.014,2.9141 27.6857,35.9536 31.4736,41.5429 2.4184,3.5597 4.8581,7.2371 7.6295,10.5863 2.8142,3.3885 10.779,8.7779 3.7773,11.503"
|
|
||||||
style="fill:#494949;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path70"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1475.9087,1981.716 c 11.3746,29.5047 23.6017,66.5855 54.7829,60.686 23.6052,-5.0578 55.2038,-83.849 34.9799,-76.0662 -10.9573,4.2125 -19.6746,40.0234 -40.2445,44.6674 -13.0689,2.9533 -31.1884,-42.3561 -48.6765,-46.9894 -8.4784,-2.24 -4.2125,10.1155 -0.8418,17.7022"
|
|
||||||
style="fill:#2c3844;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path72"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 1810.9195,1981.716 c 11.3782,29.5047 23.6053,66.5855 54.7865,60.686 23.6017,-5.0578 55.2002,-83.849 34.9763,-76.0662 -10.9573,4.2125 -19.671,40.0234 -40.2445,44.6674 -13.0689,2.9533 -31.1883,-42.3561 -48.673,-46.9894 -8.4783,-2.24 -4.2159,10.1155 -0.8453,17.7022"
|
|
||||||
style="fill:#2c3844;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35668287"
|
|
||||||
id="path74"
|
|
||||||
inkscape:connector-curvature="0" /><g
|
|
||||||
aria-label="Vikunja"
|
|
||||||
transform="matrix(0.97366203,0,0,-0.97366203,184.32573,24.625779)"
|
|
||||||
style="font-style:normal;font-weight:normal;font-size:1163.38110352px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:29.08452606"
|
|
||||||
id="text831"><path
|
|
||||||
d="m 3302.2541,-1549.4053 c 3.4901,2.3268 8.1436,5.8169 10.4704,6.9803 1.1634,0 1.1634,0 1.1634,0 0,0 1.1633,0 1.1633,1.1634 2.3268,0 6.9803,1.1634 9.3071,2.3267 1.1634,0 2.3268,0 2.3268,0 3.4901,1.1634 8.1436,1.1634 11.6338,1.1634 3.4901,0 6.9803,0 11.6338,-1.1634 1.1634,0 2.3267,0 2.3267,0 3.4902,-1.1633 5.8169,-2.3267 9.3071,-2.3267 1.1634,-1.1634 1.1634,-1.1634 2.3268,-1.1634 0,0 0,0 0,0 3.4901,-1.1634 6.9802,-4.6535 9.307,-5.8169 2.3268,-1.1634 2.3268,-1.1634 2.3268,-1.1634 2.3267,-2.3268 4.6535,-3.4901 6.9802,-5.8169 1.1634,-1.1634 1.1634,-1.1634 2.3268,-3.4901 1.1634,-2.3268 4.6535,-4.6536 5.8169,-6.9803 1.1634,0 1.1634,0 1.1634,-1.1634 2.3268,-2.3268 3.4901,-6.9803 4.6535,-9.3071 l 287.3552,-679.4145 c 12.7971,-31.4113 -2.3268,-69.8029 -34.9015,-82.6001 -31.4113,-13.9606 -69.8028,1.1634 -83.7634,33.7381 l -226.8593,538.6454 -226.8593,-538.6454 c -13.9606,-32.5747 -51.1888,-47.6987 -82.6001,-33.7381 -33.7381,12.7972 -48.862,51.1888 -34.9014,82.6001 l 285.0283,679.4145 c 2.3268,2.3268 4.6536,6.9803 5.8169,9.3071 0,1.1634 1.1634,1.1634 1.1634,1.1634 1.1634,2.3267 3.4902,4.6535 5.8169,6.9803 0,2.3267 1.1634,2.3267 1.1634,3.4901 3.4901,2.3268 5.8169,3.4901 8.1437,5.8169 1.1634,0 1.1634,0 1.1634,0 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path834"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 3936.8421,-2118.2987 c -34.9014,0 -62.8226,26.7578 -62.8226,63.986 v 453.7186 c 0,34.9015 27.9212,62.8226 62.8226,62.8226 36.0648,0 62.8226,-27.9211 62.8226,-62.8226 v -453.7186 c 0,-37.2282 -26.7578,-63.986 -62.8226,-63.986 z m 62.8226,-171.017 c 0,-34.9014 -26.7578,-62.8226 -62.8226,-62.8226 -34.9014,0 -62.8226,27.9212 -62.8226,62.8226 v 24.431 c 0,34.9015 27.9212,63.986 62.8226,63.986 36.0648,0 62.8226,-29.0845 62.8226,-63.986 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path836"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 4264.043,-1537.7715 c 36.0648,0 65.1493,-29.0845 65.1493,-63.9859 v -102.3776 l 63.986,-63.9859 171.017,207.0818 c 11.6338,15.1239 30.2479,23.2676 48.862,23.2676 13.9606,0 29.0845,-4.6535 40.7183,-15.1239 27.9212,-22.1043 31.4113,-62.8226 9.3071,-90.7438 l -179.1607,-215.2255 174.5071,-174.5071 c 25.5944,-24.431 25.5944,-65.1494 0,-90.7438 -24.431,-24.431 -66.3127,-24.431 -90.7437,0 l -238.4931,238.4932 v -402.5299 c 0,-34.9014 -29.0845,-63.986 -65.1493,-63.986 -36.0649,0 -63.986,29.0846 -63.986,63.986 v 686.3949 c 0,34.9014 27.9211,63.9859 63.986,63.9859 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path838"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 5316.6484,-1779.7548 v -278.048 c 0,-32.5747 -30.2479,-61.6592 -62.8226,-61.6592 -34.9014,0 -60.4958,29.0845 -60.4958,61.6592 v 278.048 c -1.1634,66.3128 -54.6789,118.6649 -122.155,118.6649 -66.3127,0 -118.6649,-52.3521 -118.6649,-118.6649 v -278.048 c 0,-32.5747 -26.7577,-61.6592 -61.6592,-61.6592 -33.738,0 -61.6592,29.0845 -61.6592,61.6592 v 278.048 c 0,132.6255 109.3579,241.9833 241.9833,241.9833 133.7888,0 245.4734,-109.3578 245.4734,-241.9833 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path840"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 5769.022,-2119.462 c -45.3719,0 -88.417,13.9605 -123.3184,36.0648 -10.4705,-22.1043 -32.5747,-36.0648 -57.0057,-36.0648 -34.9015,0 -61.6592,27.9211 -61.6592,61.6592 v 180.324 c 0,0 0,0 0,0 v 278.0481 c 0,33.7381 26.7577,61.6592 61.6592,61.6592 30.2479,0 55.8423,-22.1042 61.6592,-50.0254 2.3267,-4.6535 2.3267,-8.1436 2.3267,-11.6338 v -278.0481 c 0,-65.1493 51.1888,-117.5015 116.3382,-117.5015 66.3127,0 120.9916,52.3522 120.9916,117.5015 v 278.0481 c 0,33.7381 29.0845,61.6592 61.6592,61.6592 33.738,0 60.4958,-27.9211 60.4958,-61.6592 v -278.0481 c 0,-131.462 -108.1944,-241.9832 -243.1466,-241.9832 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path842"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 6255.6424,-2199.7353 c 34.9014,0 62.8226,-30.2479 62.8226,-63.986 v -23.2676 c 0,-37.2282 -27.9212,-63.986 -62.8226,-63.986 -34.9015,0 -63.986,26.7578 -63.986,63.986 v 23.2676 c 0,33.7381 29.0845,63.986 63.986,63.986 z m -65.1494,867.8823 c 69.8029,0 125.6452,-57.0057 125.6452,-125.6452 v -597.9779 c 0,-36.0648 -26.7578,-63.9859 -62.8226,-63.9859 -33.738,0 -62.8226,27.9211 -62.8226,63.9859 v 597.9779 c 0,0 0,0 0,0 -37.2282,0 -63.9859,27.9212 -63.9859,61.6592 0,37.2282 26.7577,63.986 63.9859,63.986 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path844"
|
|
||||||
inkscape:connector-curvature="0" /><path
|
|
||||||
d="m 6998.4795,-2056.6395 c 0,-34.9014 -27.9212,-62.8225 -61.6592,-62.8225 -30.248,0 -53.5156,22.1042 -60.4959,51.1887 -44.2084,-31.4113 -96.5606,-51.1887 -154.7296,-51.1887 -79.11,0 -147.7494,33.738 -197.7748,87.2535 -50.0254,52.3522 -79.11,124.4818 -79.11,204.7551 0,79.1099 29.0846,151.2396 79.11,204.7551 50.0254,52.3521 118.6648,84.9268 197.7748,84.9268 0,0 0,0 0,0 58.169,0 110.5212,-18.6141 154.7296,-50.0254 6.9803,27.9212 30.2479,50.0254 60.4959,50.0254 33.738,0 61.6592,-27.9211 61.6592,-61.6592 v -228.0227 c 0,0 0,0 0,0 0,0 0,0 0,0 z m -168.6903,349.0144 c -27.9212,29.0845 -67.4761,45.3718 -108.1944,45.3718 -41.8818,0 -81.4367,-16.2873 -108.1945,-45.3718 -27.9211,-30.2479 -44.2085,-72.1297 -44.2085,-119.8283 0,-48.862 16.2874,-90.7437 44.2085,-119.8282 26.7578,-31.4113 66.3127,-47.6987 108.1945,-47.6987 40.7183,0 80.2732,16.2874 108.1944,47.6987 27.9211,29.0845 45.3719,70.9662 45.3719,119.8282 0,47.6986 -17.4508,89.5804 -45.3719,119.8283 z"
|
|
||||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:Quicksand;-inkscape-font-specification:'Quicksand Bold';fill:#252626;fill-opacity:1;stroke-width:29.08452606"
|
|
||||||
id="path846"
|
|
||||||
inkscape:connector-curvature="0" /></g>
|
|
||||||
|
|
||||||
</g></g></svg>
|
|
Before Width: | Height: | Size: 20 KiB |
|
@ -1 +0,0 @@
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1007.922 821.827"><defs><style>.a{fill:#fff;}.b{fill:url(#a);}.c{mask:url(#b);}.d{fill:url(#c);}.e{mask:url(#d);}.f{fill:url(#e);}.g{fill:url(#f);}.h{mask:url(#g);}.i{fill:url(#h);}.j{fill:#195abd;}.k{fill:url(#i);}</style><linearGradient id="a" x1="700.766" y1="597.024" x2="749.765" y2="597.024" gradientTransform="translate(86.603 -142.296) scale(0.867 1.307)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-opacity="0.13"/><stop offset="0.994" stop-opacity="0"/></linearGradient><mask id="b" x="317.137" y="651.827" width="170" height="205.208" maskUnits="userSpaceOnUse"><g transform="translate(-8.064 -116.521)"><rect class="a" x="367.701" y="870.953" width="85" height="85" transform="translate(766.054 -22.512) rotate(45)"/></g></mask><radialGradient id="c" cx="410.201" cy="853.349" r="85" gradientTransform="translate(715.49 -156.637) rotate(45)" gradientUnits="userSpaceOnUse"><stop offset="0.5" stop-opacity="0.13"/><stop offset="0.994" stop-opacity="0"/></radialGradient><mask id="d" x="837.922" y="95.835" width="205.208" height="205.208" maskUnits="userSpaceOnUse"><g transform="translate(-8.064 -116.521)"><rect class="a" x="876.038" y="260.012" width="170" height="85" transform="translate(1426.685 1195.977) rotate(-135)"/></g></mask><radialGradient id="e" cx="1051.126" cy="1265.852" r="85" gradientTransform="translate(771.087 1854.394) rotate(-135)" xlink:href="#c"/><linearGradient id="f" x1="1880.8" y1="34.286" x2="1929.799" y2="34.286" gradientTransform="matrix(0.867, 0, 0, -0.796, -1446.031, 767.147)" xlink:href="#a"/><mask id="g" x="-35.208" y="299.482" width="205.208" height="205.208" maskUnits="userSpaceOnUse"><g transform="translate(-8.064 -116.521)"><rect class="a" x="-21.988" y="463.659" width="170" height="85" transform="translate(-339.453 192.807) rotate(-45)"/></g></mask><radialGradient id="h" cx="27.608" cy="2001.37" r="85" gradientTransform="matrix(0.707, -0.707, -0.707, -0.707, 1480.66, 1854.394)" xlink:href="#c"/><linearGradient id="i" x1="308.378" y1="811.629" x2="919.318" y2="200.689" gradientTransform="translate(-178.117 582.307) rotate(-45)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2987e6"/><stop offset="0.994" stop-color="#58c1f5"/></linearGradient></defs><title>Todo</title><rect class="b" x="694.422" y="269.785" width="42.5" height="736.5" transform="translate(652.71 -435.701) rotate(45)"/><g class="c"><circle class="d" cx="402.137" cy="736.827" r="85"/></g><g class="e"><circle class="f" cx="922.922" cy="216.043" r="85"/></g><rect class="g" x="185.305" y="515.608" width="42.5" height="448.5" transform="translate(867.705 1000.439) rotate(135)"/><g class="h"><circle class="i" cx="85" cy="419.69" r="85"/></g><rect class="j" x="164.378" y="319.982" width="288" height="576" rx="42.5" transform="translate(-347.651 279.609) rotate(-45)"/><rect class="k" x="469.848" y="74.159" width="288" height="864" rx="42.5" transform="translate(529.636 -402.327) rotate(45)"/></svg>
|
|
Before Width: | Height: | Size: 3 KiB |
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
|
||||||
<g>
|
|
||||||
<path d="M224.001997,0 L31.9980026,0 C14.3579381,0.0394964443 0.0614809418,14.336846 0,32 L0,224 C0,241.6 14.3971038,256 31.9980026,256 L224.001997,256 C241.602896,256 256,241.6 256,224 L256,32 C256,14.4 241.602896,0 224.001997,0" fill="#E44332"></path>
|
|
||||||
<path d="M54.132778,120.802491 C58.5960224,118.196275 154.476075,62.477451 156.667847,61.1862981 C158.859619,59.9110855 158.97917,55.9898065 156.508446,54.5711324 C154.053661,53.1604284 149.391165,50.4824817 147.661658,49.4543415 C145.192242,48.0957707 142.191169,48.132074 139.755339,49.5499825 C138.527947,50.2672896 56.6035026,97.8486625 53.8697654,99.4107981 C50.5781227,101.291737 46.5372925,101.323617 43.2695601,99.4107981 L0,74.0181257 L0,95.6011002 C10.5205046,101.801822 36.7181549,117.200015 43.062338,120.826401 C46.8481256,122.978322 50.4745117,122.930502 54.1407481,120.802491" fill="#FFFFFF"></path>
|
|
||||||
<path d="M54.132778,161.609296 C58.5960224,159.00308 154.476075,103.284257 156.667847,101.993104 C158.859619,100.717891 158.97917,96.7966121 156.508446,95.377938 C154.053661,93.9672339 149.391165,91.2892873 147.661658,90.2611471 C145.192242,88.9025763 142.191169,88.9388796 139.755339,90.3567881 C138.527947,91.0740952 56.6035026,138.655468 53.8697654,140.217604 C50.5781227,142.098542 46.5372925,142.130423 43.2695601,140.217604 L0,114.824931 L0,136.407906 C10.5205046,142.608627 36.7181549,158.00682 43.062338,161.633206 C46.8481256,163.785128 50.4745117,163.737307 54.1407481,161.609296" fill="#FFFFFF"></path>
|
|
||||||
<path d="M54.132778,204.966527 C58.5960224,202.360311 154.476075,146.641487 156.667847,145.350335 C158.859619,144.075122 158.97917,140.153843 156.508446,138.735169 C154.053661,137.324465 149.391165,134.646518 147.661658,133.618378 C145.192242,132.259807 142.191169,132.29611 139.755339,133.714019 C138.527947,134.431326 56.6035026,182.012699 53.8697654,183.574835 C50.5781227,185.455773 46.5372925,185.487654 43.2695601,183.574835 L0,158.182162 L0,179.765137 C10.5205046,185.965858 36.7181549,201.364051 43.062338,204.990437 C46.8481256,207.142359 50.4745117,207.094538 54.1407481,204.966527" fill="#FFFFFF"></path>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 2.3 KiB |
|
@ -1,16 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
|
||||||
<defs>
|
|
||||||
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
|
||||||
<stop stop-color="#0091E6" offset="0%"></stop>
|
|
||||||
<stop stop-color="#0079BF" offset="100%"></stop>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<g>
|
|
||||||
<g>
|
|
||||||
<rect fill="url(#linearGradient-1)" x="0" y="0" width="256" height="256" rx="25"></rect>
|
|
||||||
<rect fill="#FFFFFF" x="144.64" y="33.28" width="78.08" height="112" rx="12"></rect>
|
|
||||||
<rect fill="#FFFFFF" x="33.28" y="33.28" width="78.08" height="176" rx="12"></rect>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 85 KiB |
147
package.json
|
@ -1,114 +1,63 @@
|
||||||
{
|
{
|
||||||
"name": "vikunja-frontend",
|
"name": "vikunja-frontend",
|
||||||
"version": "0.10.0",
|
"version": "0.8.0",
|
||||||
|
"license": "LGPL-3.0-or-later",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vite",
|
"serve": "vue-cli-service serve",
|
||||||
"serve:dist-dev": "node scripts/serve-dist.js",
|
"build": "vue-cli-service build",
|
||||||
"serve:dist": "vite preview --port 4173",
|
"lint": "vue-cli-service lint"
|
||||||
"build": "vite build && workbox copyLibraries dist/",
|
|
||||||
"build:modern-only": "BUILD_MODERN_ONLY=true vite build && workbox copyLibraries dist/",
|
|
||||||
"build:dev": "vite build -m development --outDir dist-dev/",
|
|
||||||
"lint": "eslint --ignore-pattern '*.test.*' ./src --ext .vue,.js,.ts",
|
|
||||||
"cypress:open": "cypress open",
|
|
||||||
"test:unit": "vitest --run",
|
|
||||||
"test:unit-watch": "vitest watch",
|
|
||||||
"test:frontend": "cypress run",
|
|
||||||
"typecheck": "vue-tsc --noEmit && vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
||||||
"browserslist:update": "npx browserslist@latest --update-db"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "6.2.0",
|
"bulma": "^0.7.1",
|
||||||
"@fortawesome/free-regular-svg-icons": "6.2.0",
|
"lodash": "^4.17.11",
|
||||||
"@fortawesome/free-solid-svg-icons": "6.2.0",
|
"v-tooltip": "^2.0.0-rc.33",
|
||||||
"@fortawesome/vue-fontawesome": "3.0.1",
|
"verte": "^0.0.12",
|
||||||
"@github/hotkey": "2.0.1",
|
"vue": "^2.5.17",
|
||||||
"@kyvg/vue3-notification": "2.4.1",
|
"vue-draggable-resizable": "^2.0.0-rc2"
|
||||||
"@sentry/tracing": "7.15.0",
|
|
||||||
"@sentry/vue": "7.15.0",
|
|
||||||
"@types/is-touch-device": "1.0.0",
|
|
||||||
"@types/lodash.clonedeep": "4.5.7",
|
|
||||||
"@types/sortablejs": "1.15.0",
|
|
||||||
"@vueuse/core": "9.3.0",
|
|
||||||
"@vueuse/router": "9.3.0",
|
|
||||||
"axios": "0.27.2",
|
|
||||||
"blurhash": "2.0.3",
|
|
||||||
"bulma-css-variables": "0.9.33",
|
|
||||||
"camel-case": "4.1.2",
|
|
||||||
"codemirror": "5.65.9",
|
|
||||||
"date-fns": "2.29.3",
|
|
||||||
"dompurify": "2.4.0",
|
|
||||||
"easymde": "2.18.0",
|
|
||||||
"flatpickr": "4.6.13",
|
|
||||||
"flexsearch": "0.7.21",
|
|
||||||
"floating-vue": "2.0.0-beta.20",
|
|
||||||
"highlight.js": "11.6.0",
|
|
||||||
"is-touch-device": "1.0.1",
|
|
||||||
"lodash.clonedeep": "4.5.0",
|
|
||||||
"lodash.debounce": "4.0.8",
|
|
||||||
"marked": "4.1.1",
|
|
||||||
"minimist": "1.2.7",
|
|
||||||
"pinia": "2.0.23",
|
|
||||||
"register-service-worker": "1.7.2",
|
|
||||||
"snake-case": "3.0.4",
|
|
||||||
"sortablejs": "1.15.0",
|
|
||||||
"ufo": "0.8.5",
|
|
||||||
"vue": "3.2.40",
|
|
||||||
"vue-advanced-cropper": "2.8.6",
|
|
||||||
"vue-drag-resize": "2.0.3",
|
|
||||||
"vue-flatpickr-component": "9.0.8",
|
|
||||||
"vue-i18n": "9.2.2",
|
|
||||||
"vue-router": "4.1.5",
|
|
||||||
"workbox-precaching": "6.5.4",
|
|
||||||
"zhyswan-vuedraggable": "4.1.3"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@4tw/cypress-drag-drop": "2.2.1",
|
"@fortawesome/fontawesome-svg-core": "^1",
|
||||||
"@cypress/vite-dev-server": "3.3.1",
|
"@fortawesome/free-regular-svg-icons": "^5",
|
||||||
"@cypress/vue": "4.2.0",
|
"@fortawesome/free-solid-svg-icons": "^5",
|
||||||
"@faker-js/faker": "7.5.0",
|
"@fortawesome/vue-fontawesome": "^0.1.1",
|
||||||
"@rushstack/eslint-patch": "1.2.0",
|
"@vue/cli-plugin-babel": "^3.0.1",
|
||||||
"@types/dompurify": "2.3.4",
|
"@vue/cli-plugin-eslint": "^3.0.1",
|
||||||
"@types/flexsearch": "0.7.3",
|
"@vue/cli-service": "^3.8.4",
|
||||||
"@types/lodash.debounce": "4.0.7",
|
"axios": "^0.19.0",
|
||||||
"@types/marked": "4.0.7",
|
"bulmaswatch": "^0.7.1",
|
||||||
"@types/node": "16.11.65",
|
"i": "^0.3.6",
|
||||||
"@typescript-eslint/eslint-plugin": "5.40.0",
|
"node-sass": "^4.9.3",
|
||||||
"@typescript-eslint/parser": "5.40.0",
|
"npm": "^6.4.1",
|
||||||
"@vitejs/plugin-legacy": "2.2.0",
|
"sass-loader": "^7.1.0",
|
||||||
"@vitejs/plugin-vue": "3.1.2",
|
"vue-flatpickr-component": "^8.1.2",
|
||||||
"@vue/eslint-config-typescript": "11.0.2",
|
"vue-multiselect": "^2.1.0",
|
||||||
"@vue/test-utils": "2.1.0",
|
"vue-notification": "^1.3.13",
|
||||||
"@vue/tsconfig": "0.1.3",
|
"vue-router": "^3.0.1",
|
||||||
"autoprefixer": "10.4.12",
|
"vue-template-compiler": "^2.5.17"
|
||||||
"browserslist": "4.21.4",
|
},
|
||||||
"caniuse-lite": "1.0.30001418",
|
"eslintConfig": {
|
||||||
"cypress": "10.10.0",
|
"root": true,
|
||||||
"esbuild": "0.15.10",
|
"env": {
|
||||||
"eslint": "8.25.0",
|
"node": true
|
||||||
"eslint-plugin-vue": "9.6.0",
|
},
|
||||||
"express": "4.18.2",
|
"extends": [
|
||||||
"happy-dom": "7.4.0",
|
"plugin:vue/essential",
|
||||||
"netlify-cli": "12.0.7",
|
"eslint:recommended"
|
||||||
"postcss": "8.4.17",
|
],
|
||||||
"postcss-preset-env": "7.8.2",
|
"rules": {},
|
||||||
"rollup": "3.0.0",
|
"parserOptions": {
|
||||||
"rollup-plugin-visualizer": "5.8.2",
|
"parser": "babel-eslint"
|
||||||
"sass": "1.55.0",
|
}
|
||||||
"typescript": "4.8.4",
|
|
||||||
"vite": "3.1.7",
|
|
||||||
"vite-plugin-pwa": "0.13.1",
|
|
||||||
"vite-svg-loader": "3.6.0",
|
|
||||||
"vitest": "0.24.1",
|
|
||||||
"vue-tsc": "1.0.5",
|
|
||||||
"wait-on": "6.0.1",
|
|
||||||
"workbox-cli": "6.5.4"
|
|
||||||
},
|
},
|
||||||
"postcss": {
|
"postcss": {
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"autoprefixer": {}
|
"autoprefixer": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"license": "AGPL-3.0-or-later",
|
"browserslist": [
|
||||||
"packageManager": "pnpm@7.13.4"
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not ie <= 8"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
13245
pnpm-lock.yaml
3
public/config.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"VIKUNJA_API_BASE_URL": "http://localhost:8080/api/v1/"
|
||||||
|
}
|