Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16499052f7 | ||
|
|
cc32daa009 | ||
|
|
ea1b3b7f92 | ||
|
|
4e2863faa7 | ||
|
|
b46fb43e6f | ||
|
|
bcacfa8fe2 | ||
|
|
4df2becd6f | ||
|
|
2990ea593a | ||
|
|
b976673826 | ||
|
|
16e034efcb | ||
|
|
6712625c3f | ||
|
|
b5bbf6a6a4 | ||
|
|
3d3e7761f5 | ||
|
|
fa56b9c01f | ||
|
|
882213784f | ||
|
|
251bd793f3 | ||
|
|
088b0e760b | ||
|
|
cc1fa1cc3b | ||
|
|
bcd3ea86e8 | ||
|
|
0176650f67 | ||
|
|
f3963aded3 | ||
|
|
bbe720481a | ||
|
|
04f9030474 | ||
|
|
6d135be859 | ||
|
|
63cbe7063e | ||
|
|
7985bea2b8 | ||
|
|
733abccaa9 | ||
|
|
119cce82b4 | ||
|
|
988e70ec40 | ||
|
|
5e3fca3771 | ||
|
|
6d9ce56f4a | ||
|
|
3c8c04fd37 | ||
|
|
790a1d5cc9 | ||
|
|
4b352fd878 | ||
|
|
a196f2ef11 | ||
|
|
6c65d135f7 | ||
|
|
a1a1e9a86a | ||
|
|
0d39a7567f | ||
|
|
76a18d06d6 | ||
|
|
ce52fc5af7 | ||
|
|
0a2863a79c | ||
|
|
39e320fe4b | ||
|
|
2f3dfe775e | ||
|
|
22964cb375 | ||
|
|
fd89cf7f2b | ||
|
|
5acf84c20b | ||
|
|
6cd9da844f | ||
|
|
d7847fe89b | ||
|
|
d033520927 | ||
|
|
d911030831 | ||
|
|
9d95ed6c41 | ||
|
|
1a5a853fa3 | ||
|
|
bb358e01dd | ||
|
|
9f0fce098e | ||
|
|
60ab09771d | ||
|
|
cb3ef783ba | ||
|
|
fe376b10c1 | ||
|
|
786441cda0 | ||
|
|
0d3cf0a32d | ||
|
|
b4e01d7256 | ||
|
|
73a641b935 | ||
|
|
6802a0dc69 | ||
|
|
81d6c43cd9 | ||
|
|
ca6a1a14f5 | ||
|
|
c096444acb | ||
|
|
51d05f3cd3 | ||
|
|
221da3c455 | ||
|
|
92098e136c | ||
|
|
fd5c33dd5d | ||
|
|
0c1c7e2192 | ||
|
|
b8d262f745 | ||
|
|
a1fd694248 | ||
|
|
634d6ceab1 | ||
|
|
31d4d5f38d | ||
|
|
3f99438402 | ||
|
|
7e7727e3e1 | ||
|
|
273d994750 | ||
|
|
86d21d6abd | ||
|
|
a9c200cc3b | ||
|
|
3fedc14062 | ||
|
|
c42e1fb5dd | ||
|
|
9961340118 | ||
|
|
f54bd22757 | ||
|
|
1043dacd67 | ||
|
|
616304a1fa | ||
|
|
1e01148138 | ||
|
|
ede56e1ae3 | ||
|
|
b2e0c45539 | ||
|
|
389648b546 | ||
|
|
f4789c28db | ||
|
|
668092de7d | ||
|
|
920f9c097d |
@@ -1,3 +1,4 @@
|
|||||||
|
# https://docs.docker.com/build/ci/github-actions/multi-platform/
|
||||||
name: Build and push Docker DEV image
|
name: Build and push Docker DEV image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -9,31 +10,98 @@ on:
|
|||||||
- '*.md'
|
- '*.md'
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY_IMAGE: ghcr.io/plankanban/planka
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-docker-image-dev:
|
build:
|
||||||
runs-on: self-hosted
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: [self-hosted, x64]
|
||||||
|
platform: linux/amd64
|
||||||
|
- os: [self-hosted, arm64]
|
||||||
|
platform: linux/arm64
|
||||||
|
- os: [self-hosted, arm64]
|
||||||
|
platform: linux/arm/v7
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY_IMAGE }}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push by digest
|
||||||
- name: Build and push
|
id: build
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: ${{ matrix.platform }}
|
||||||
push: true
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
tags: |
|
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
|
||||||
ghcr.io/plankanban/planka:dev
|
- name: Export digest
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/digests
|
||||||
|
digest="${{ steps.build.outputs.digest }}"
|
||||||
|
touch "/tmp/digests/${digest#sha256:}"
|
||||||
|
- name: Upload digest
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: digests
|
||||||
|
path: /tmp/digests/*
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
|
merge:
|
||||||
|
runs-on: [self-hosted]
|
||||||
|
needs:
|
||||||
|
- build
|
||||||
|
steps:
|
||||||
|
- name: Download digests
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: digests
|
||||||
|
path: /tmp/digests
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY_IMAGE }}
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Create manifest list and push
|
||||||
|
working-directory: /tmp/digests
|
||||||
|
run: |
|
||||||
|
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||||
|
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
|
||||||
|
- name: Inspect image
|
||||||
|
run: |
|
||||||
|
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
|
||||||
|
rerun-failed-jobs:
|
||||||
|
runs-on: [self-hosted]
|
||||||
|
needs: [ build, merge]
|
||||||
|
if: failure()
|
||||||
|
steps:
|
||||||
|
- name: Rerun failed jobs in the current workflow
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh run rerun ${{ github.run_id }} --failed
|
||||||
|
|||||||
+8
-3
@@ -6,7 +6,7 @@ RUN apk -U upgrade \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY server/package.json server/package-lock.json .
|
COPY server/package.json server/package-lock.json ./
|
||||||
|
|
||||||
RUN npm install npm@latest --global \
|
RUN npm install npm@latest --global \
|
||||||
&& npm install pnpm --global \
|
&& npm install pnpm --global \
|
||||||
@@ -17,7 +17,7 @@ FROM node:lts AS client
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY client/package.json client/package-lock.json .
|
COPY client/package.json client/package-lock.json ./
|
||||||
|
|
||||||
RUN npm install npm@latest --global \
|
RUN npm install npm@latest --global \
|
||||||
&& npm install pnpm --global \
|
&& npm install pnpm --global \
|
||||||
@@ -38,6 +38,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY --chown=node:node start.sh .
|
COPY --chown=node:node start.sh .
|
||||||
COPY --chown=node:node server .
|
COPY --chown=node:node server .
|
||||||
|
COPY --chown=node:node healthcheck.js .
|
||||||
|
|
||||||
RUN mv .env.sample .env
|
RUN mv .env.sample .env
|
||||||
|
|
||||||
@@ -52,4 +53,8 @@ VOLUME /app/private/attachments
|
|||||||
|
|
||||||
EXPOSE 1337
|
EXPOSE 1337
|
||||||
|
|
||||||
CMD ["./start.sh"]
|
HEALTHCHECK --interval=10s --timeout=2s --start-period=15s \
|
||||||
|
CMD node ./healthcheck.js
|
||||||
|
|
||||||
|
|
||||||
|
CMD [ "bash", "start.sh" ]
|
||||||
|
|||||||
@@ -10,13 +10,14 @@
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Create projects, boards, lists, cards, labels and tasks
|
- Create projects, boards, lists, cards, labels and tasks
|
||||||
- Add card members, track time, set a due date, add attachments, write comments
|
- Add card members, track time, set due dates, add attachments, write comments
|
||||||
- Markdown support in a card description and comment
|
- Markdown support in card description and comments
|
||||||
- Filter by members and labels
|
- Filter by members and labels
|
||||||
- Customize project background
|
- Customize project backgrounds
|
||||||
- Real-time updates
|
- Real-time updates
|
||||||
- User notifications
|
- Internal notifications
|
||||||
- Internationalization
|
- Multiple interface languages
|
||||||
|
- Single sign-on via OpenID Connect
|
||||||
|
|
||||||
## How to deploy Planka
|
## How to deploy Planka
|
||||||
|
|
||||||
@@ -44,3 +45,7 @@ See the [development section](https://docs.planka.cloud/docs/Development).
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
Planka is [AGPL-3.0 licensed](https://github.com/plankanban/planka/blob/master/LICENSE).
|
Planka is [AGPL-3.0 licensed](https://github.com/plankanban/planka/blob/master/LICENSE).
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
|
||||||
|
[](https://github.com/plankanban/planka/graphs/contributors)
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.13
|
version: 0.1.25
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "1.15.2"
|
appVersion: "1.16.3"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- alias: postgresql
|
- alias: postgresql
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ helm install planka . --set secretkey=$SECRETKEY \
|
|||||||
--set admin_email="demo@demo.demo" \
|
--set admin_email="demo@demo.demo" \
|
||||||
--set admin_password="demo" \
|
--set admin_password="demo" \
|
||||||
--set admin_name="Demo Demo" \
|
--set admin_name="Demo Demo" \
|
||||||
--set admin_username="demo"
|
--set admin_username="demo" \
|
||||||
--set ingress.enabled=true \
|
--set ingress.enabled=true \
|
||||||
--set ingress.hosts[0].host=planka.example.dev \
|
--set ingress.hosts[0].host=planka.example.dev \
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ helm install planka . --set secretkey=$SECRETKEY \
|
|||||||
--set admin_email="demo@demo.demo" \
|
--set admin_email="demo@demo.demo" \
|
||||||
--set admin_password="demo" \
|
--set admin_password="demo" \
|
||||||
--set admin_name="Demo Demo" \
|
--set admin_name="Demo Demo" \
|
||||||
--set admin_username="demo"
|
--set admin_username="demo" \
|
||||||
--set ingress.enabled=true \
|
--set ingress.enabled=true \
|
||||||
--set ingress.hosts[0].host=planka.example.dev \
|
--set ingress.hosts[0].host=planka.example.dev \
|
||||||
--set ingress.tls[0].secretName=planka-tls \
|
--set ingress.tls[0].secretName=planka-tls \
|
||||||
@@ -76,6 +76,7 @@ admin_name: "Demo Demo"
|
|||||||
admin_username: "demo"
|
admin_username: "demo"
|
||||||
# Admin user
|
# Admin user
|
||||||
|
|
||||||
|
# Ingress
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
@@ -55,14 +55,24 @@ spec:
|
|||||||
- mountPath: /app/private/attachments
|
- mountPath: /app/private/attachments
|
||||||
subPath: attachments
|
subPath: attachments
|
||||||
name: planka
|
name: planka
|
||||||
|
{{- if .Values.securityContext.readOnlyRootFilesystem }}
|
||||||
|
- mountPath: /app/logs
|
||||||
|
subPath: app-logs
|
||||||
|
name: emptydir
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
env:
|
env:
|
||||||
|
{{- if not .Values.postgresql.enabled }}
|
||||||
|
- name: DATABASE_URL
|
||||||
|
value: {{ required "If the included postgresql deployment is disabled you need to define a Database URL in 'dburl'" .Values.dburl }}
|
||||||
|
{{- else }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: planka-postgresql-svcbind-custom-user
|
name: planka-postgresql-svcbind-custom-user
|
||||||
key: uri
|
key: uri
|
||||||
|
{{- end }}
|
||||||
- name: BASE_URL
|
- name: BASE_URL
|
||||||
{{- if .Values.baseUrl }}
|
{{- if .Values.baseUrl }}
|
||||||
value: {{ .Values.baseUrl }}
|
value: {{ .Values.baseUrl }}
|
||||||
@@ -134,3 +144,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.securityContext.readOnlyRootFilesystem }}
|
||||||
|
- name: emptydir
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Values.autoscaling.enabled }}
|
{{- if .Values.autoscaling.enabled }}
|
||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "planka.fullname" . }}
|
name: {{ include "planka.fullname" . }}
|
||||||
@@ -17,12 +17,16 @@ spec:
|
|||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: memory
|
name: memory
|
||||||
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
target:
|
||||||
|
type: Utilization
|
||||||
|
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -105,12 +105,14 @@ postgresql:
|
|||||||
serviceBindings:
|
serviceBindings:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
## Set this if you disable the built-in postgresql deployment
|
||||||
|
dburl:
|
||||||
|
|
||||||
## PVC-based data storage configuration
|
## PVC-based data storage configuration
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
# existingClaim: netbox-data
|
# existingClaim: netbox-data
|
||||||
# storageClass: "-"
|
# storageClass: "-"
|
||||||
|
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
REACT_APP_VERSION=1.15.2
|
REACT_APP_VERSION=1.16.3
|
||||||
|
|||||||
Generated
+16
@@ -17,6 +17,8 @@
|
|||||||
"initials": "^3.1.2",
|
"initials": "^3.1.2",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"jwt-decode": "^4.0.0",
|
"jwt-decode": "^4.0.0",
|
||||||
|
"linkify-react": "^4.1.3",
|
||||||
|
"linkifyjs": "^4.1.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"nanoid": "^5.0.3",
|
"nanoid": "^5.0.3",
|
||||||
"node-sass": "^9.0.0",
|
"node-sass": "^9.0.0",
|
||||||
@@ -11911,6 +11913,20 @@
|
|||||||
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
|
||||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
|
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
|
||||||
},
|
},
|
||||||
|
"node_modules/linkify-react": {
|
||||||
|
"version": "4.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/linkify-react/-/linkify-react-4.1.3.tgz",
|
||||||
|
"integrity": "sha512-rhI3zM/fxn5BfRPHfi4r9N7zgac4vOIxub1wHIWXLA5ENTMs+BGaIaFO1D1PhmxgwhIKmJz3H7uCP0Dg5JwSlA==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"linkifyjs": "^4.0.0",
|
||||||
|
"react": ">= 15.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/linkifyjs": {
|
||||||
|
"version": "4.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.1.3.tgz",
|
||||||
|
"integrity": "sha512-auMesunaJ8yfkHvK4gfg1K0SaKX/6Wn9g2Aac/NwX+l5VdmFZzo/hdPGxEOETj+ryRa4/fiOPjeeKURSAJx1sg=="
|
||||||
|
},
|
||||||
"node_modules/loader-runner": {
|
"node_modules/loader-runner": {
|
||||||
"version": "4.3.0",
|
"version": "4.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
|
||||||
|
|||||||
@@ -70,6 +70,8 @@
|
|||||||
"initials": "^3.1.2",
|
"initials": "^3.1.2",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"jwt-decode": "^4.0.0",
|
"jwt-decode": "^4.0.0",
|
||||||
|
"linkify-react": "^4.1.3",
|
||||||
|
"linkifyjs": "^4.1.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"nanoid": "^5.0.3",
|
"nanoid": "^5.0.3",
|
||||||
"node-sass": "^9.0.0",
|
"node-sass": "^9.0.0",
|
||||||
|
|||||||
@@ -23,10 +23,14 @@ createCard.failure = (localId, error) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleCardCreate = (card) => ({
|
const handleCardCreate = (card, cardMemberships, cardLabels, tasks, attachments) => ({
|
||||||
type: ActionTypes.CARD_CREATE_HANDLE,
|
type: ActionTypes.CARD_CREATE_HANDLE,
|
||||||
payload: {
|
payload: {
|
||||||
card,
|
card,
|
||||||
|
cardMemberships,
|
||||||
|
cardLabels,
|
||||||
|
tasks,
|
||||||
|
attachments,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -60,6 +64,34 @@ const handleCardUpdate = (card) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const duplicateCard = (id, card, taskIds) => ({
|
||||||
|
type: ActionTypes.CARD_DUPLICATE,
|
||||||
|
payload: {
|
||||||
|
id,
|
||||||
|
card,
|
||||||
|
taskIds,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
duplicateCard.success = (localId, card, cardMemberships, cardLabels, tasks) => ({
|
||||||
|
type: ActionTypes.CARD_DUPLICATE__SUCCESS,
|
||||||
|
payload: {
|
||||||
|
localId,
|
||||||
|
card,
|
||||||
|
cardMemberships,
|
||||||
|
cardLabels,
|
||||||
|
tasks,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
duplicateCard.failure = (id, error) => ({
|
||||||
|
type: ActionTypes.CARD_DUPLICATE__FAILURE,
|
||||||
|
payload: {
|
||||||
|
id,
|
||||||
|
error,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const deleteCard = (id) => ({
|
const deleteCard = (id) => ({
|
||||||
type: ActionTypes.CARD_DELETE,
|
type: ActionTypes.CARD_DELETE,
|
||||||
payload: {
|
payload: {
|
||||||
@@ -94,6 +126,7 @@ export default {
|
|||||||
handleCardCreate,
|
handleCardCreate,
|
||||||
updateCard,
|
updateCard,
|
||||||
handleCardUpdate,
|
handleCardUpdate,
|
||||||
|
duplicateCard,
|
||||||
deleteCard,
|
deleteCard,
|
||||||
handleCardDelete,
|
handleCardDelete,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,9 +47,11 @@ initializeCore.fetchConfig = (config) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const logout = () => ({
|
const logout = (invalidateAccessToken) => ({
|
||||||
type: ActionTypes.LOGOUT,
|
type: ActionTypes.LOGOUT,
|
||||||
payload: {},
|
payload: {
|
||||||
|
invalidateAccessToken,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
logout.invalidateAccessToken = () => ({
|
logout.invalidateAccessToken = () => ({
|
||||||
|
|||||||
@@ -57,6 +57,12 @@ const updateCard = (id, data, headers) =>
|
|||||||
item: transformCard(body.item),
|
item: transformCard(body.item),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const duplicateCard = (id, data, headers) =>
|
||||||
|
socket.post(`/cards/${id}/duplicate`, data, headers).then((body) => ({
|
||||||
|
...body,
|
||||||
|
item: transformCard(body.item),
|
||||||
|
}));
|
||||||
|
|
||||||
const deleteCard = (id, headers) =>
|
const deleteCard = (id, headers) =>
|
||||||
socket.delete(`/cards/${id}`, undefined, headers).then((body) => ({
|
socket.delete(`/cards/${id}`, undefined, headers).then((body) => ({
|
||||||
...body,
|
...body,
|
||||||
@@ -81,6 +87,7 @@ export default {
|
|||||||
getCard,
|
getCard,
|
||||||
updateCard,
|
updateCard,
|
||||||
deleteCard,
|
deleteCard,
|
||||||
|
duplicateCard,
|
||||||
makeHandleCardCreate,
|
makeHandleCardCreate,
|
||||||
makeHandleCardUpdate,
|
makeHandleCardUpdate,
|
||||||
makeHandleCardDelete,
|
makeHandleCardDelete,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
|
|||||||
@@ -85,7 +85,6 @@
|
|||||||
height: 56px;
|
height: 56px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
scrollbar-width: thin;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ const ActionsStep = React.memo(
|
|||||||
onUpdate,
|
onUpdate,
|
||||||
onMove,
|
onMove,
|
||||||
onTransfer,
|
onTransfer,
|
||||||
|
onDuplicate,
|
||||||
onDelete,
|
onDelete,
|
||||||
onUserAdd,
|
onUserAdd,
|
||||||
onUserRemove,
|
onUserRemove,
|
||||||
@@ -76,6 +77,11 @@ const ActionsStep = React.memo(
|
|||||||
openStep(StepTypes.MOVE);
|
openStep(StepTypes.MOVE);
|
||||||
}, [openStep]);
|
}, [openStep]);
|
||||||
|
|
||||||
|
const handleDuplicateClick = useCallback(() => {
|
||||||
|
onDuplicate();
|
||||||
|
onClose();
|
||||||
|
}, [onDuplicate, onClose]);
|
||||||
|
|
||||||
const handleDeleteClick = useCallback(() => {
|
const handleDeleteClick = useCallback(() => {
|
||||||
openStep(StepTypes.DELETE);
|
openStep(StepTypes.DELETE);
|
||||||
}, [openStep]);
|
}, [openStep]);
|
||||||
@@ -207,6 +213,11 @@ const ActionsStep = React.memo(
|
|||||||
context: 'title',
|
context: 'title',
|
||||||
})}
|
})}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
<Menu.Item className={styles.menuItem} onClick={handleDuplicateClick}>
|
||||||
|
{t('action.duplicateCard', {
|
||||||
|
context: 'title',
|
||||||
|
})}
|
||||||
|
</Menu.Item>
|
||||||
<Menu.Item className={styles.menuItem} onClick={handleDeleteClick}>
|
<Menu.Item className={styles.menuItem} onClick={handleDeleteClick}>
|
||||||
{t('action.deleteCard', {
|
{t('action.deleteCard', {
|
||||||
context: 'title',
|
context: 'title',
|
||||||
@@ -232,6 +243,7 @@ ActionsStep.propTypes = {
|
|||||||
onUpdate: PropTypes.func.isRequired,
|
onUpdate: PropTypes.func.isRequired,
|
||||||
onMove: PropTypes.func.isRequired,
|
onMove: PropTypes.func.isRequired,
|
||||||
onTransfer: PropTypes.func.isRequired,
|
onTransfer: PropTypes.func.isRequired,
|
||||||
|
onDuplicate: PropTypes.func.isRequired,
|
||||||
onDelete: PropTypes.func.isRequired,
|
onDelete: PropTypes.func.isRequired,
|
||||||
onUserAdd: PropTypes.func.isRequired,
|
onUserAdd: PropTypes.func.isRequired,
|
||||||
onUserRemove: PropTypes.func.isRequired,
|
onUserRemove: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ const Card = React.memo(
|
|||||||
onUpdate,
|
onUpdate,
|
||||||
onMove,
|
onMove,
|
||||||
onTransfer,
|
onTransfer,
|
||||||
|
onDuplicate,
|
||||||
onDelete,
|
onDelete,
|
||||||
onUserAdd,
|
onUserAdd,
|
||||||
onUserRemove,
|
onUserRemove,
|
||||||
@@ -185,6 +186,7 @@ const Card = React.memo(
|
|||||||
onUpdate={onUpdate}
|
onUpdate={onUpdate}
|
||||||
onMove={onMove}
|
onMove={onMove}
|
||||||
onTransfer={onTransfer}
|
onTransfer={onTransfer}
|
||||||
|
onDuplicate={onDuplicate}
|
||||||
onDelete={onDelete}
|
onDelete={onDelete}
|
||||||
onUserAdd={onUserAdd}
|
onUserAdd={onUserAdd}
|
||||||
onUserRemove={onUserRemove}
|
onUserRemove={onUserRemove}
|
||||||
@@ -238,6 +240,7 @@ Card.propTypes = {
|
|||||||
onUpdate: PropTypes.func.isRequired,
|
onUpdate: PropTypes.func.isRequired,
|
||||||
onMove: PropTypes.func.isRequired,
|
onMove: PropTypes.func.isRequired,
|
||||||
onTransfer: PropTypes.func.isRequired,
|
onTransfer: PropTypes.func.isRequired,
|
||||||
|
onDuplicate: PropTypes.func.isRequired,
|
||||||
onDelete: PropTypes.func.isRequired,
|
onDelete: PropTypes.func.isRequired,
|
||||||
onUserAdd: PropTypes.func.isRequired,
|
onUserAdd: PropTypes.func.isRequired,
|
||||||
onUserRemove: PropTypes.func.isRequired,
|
onUserRemove: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import classNames from 'classnames';
|
|||||||
import { Progress } from 'semantic-ui-react';
|
import { Progress } from 'semantic-ui-react';
|
||||||
import { useToggle } from '../../lib/hooks';
|
import { useToggle } from '../../lib/hooks';
|
||||||
|
|
||||||
|
import Linkify from '../Linkify';
|
||||||
|
|
||||||
import styles from './Tasks.module.scss';
|
import styles from './Tasks.module.scss';
|
||||||
|
|
||||||
const Tasks = React.memo(({ items }) => {
|
const Tasks = React.memo(({ items }) => {
|
||||||
@@ -48,7 +50,7 @@ const Tasks = React.memo(({ items }) => {
|
|||||||
key={item.id}
|
key={item.id}
|
||||||
className={classNames(styles.task, item.isCompleted && styles.taskCompleted)}
|
className={classNames(styles.task, item.isCompleted && styles.taskCompleted)}
|
||||||
>
|
>
|
||||||
{item.name}
|
<Linkify linkStopPropagation>{item.name}</Linkify>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -55,8 +55,10 @@
|
|||||||
display: block;
|
display: block;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
|
overflow: hidden;
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
padding-left: 14px;
|
padding-left: 14px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "–";
|
content: "–";
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import classNames from 'classnames';
|
|||||||
import { useTranslation, Trans } from 'react-i18next';
|
import { useTranslation, Trans } from 'react-i18next';
|
||||||
import { Comment } from 'semantic-ui-react';
|
import { Comment } from 'semantic-ui-react';
|
||||||
|
|
||||||
|
import getDateFormat from '../../../utils/get-date-format';
|
||||||
import { ActivityTypes } from '../../../constants/Enums';
|
import { ActivityTypes } from '../../../constants/Enums';
|
||||||
import ItemComment from './ItemComment';
|
import ItemComment from './ItemComment';
|
||||||
import User from '../../User';
|
import User from '../../User';
|
||||||
@@ -66,7 +67,7 @@ const Item = React.memo(({ type, data, createdAt, user }) => {
|
|||||||
<div className={classNames(styles.content)}>
|
<div className={classNames(styles.content)}>
|
||||||
<div>{contentNode}</div>
|
<div>{contentNode}</div>
|
||||||
<span className={styles.date}>
|
<span className={styles.date}>
|
||||||
{t('format:longDateTime', {
|
{t(`format:${getDateFormat(createdAt)}`, {
|
||||||
postProcess: 'formatDate',
|
postProcess: 'formatDate',
|
||||||
value: createdAt,
|
value: createdAt,
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { Comment } from 'semantic-ui-react';
|
|||||||
import { usePopup } from '../../../lib/popup';
|
import { usePopup } from '../../../lib/popup';
|
||||||
import { Markdown } from '../../../lib/custom-ui';
|
import { Markdown } from '../../../lib/custom-ui';
|
||||||
|
|
||||||
|
import getDateFormat from '../../../utils/get-date-format';
|
||||||
import CommentEdit from './CommentEdit';
|
import CommentEdit from './CommentEdit';
|
||||||
import User from '../../User';
|
import User from '../../User';
|
||||||
import DeleteStep from '../../DeleteStep';
|
import DeleteStep from '../../DeleteStep';
|
||||||
@@ -33,7 +34,7 @@ const ItemComment = React.memo(
|
|||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<span className={styles.author}>{user.name}</span>
|
<span className={styles.author}>{user.name}</span>
|
||||||
<span className={styles.date}>
|
<span className={styles.date}>
|
||||||
{t('format:longDateTime', {
|
{t(`format:${getDateFormat(createdAt)}`, {
|
||||||
postProcess: 'formatDate',
|
postProcess: 'formatDate',
|
||||||
value: createdAt,
|
value: createdAt,
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const AttachmentAddZone = React.memo(({ children, onCreate }) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
||||||
<div {...getRootProps()} className={styles.wrapper}>
|
<div {...getRootProps()}>
|
||||||
{isDragActive && <div className={styles.dropzone}>{t('common.dropFileToUpload')}</div>}
|
{isDragActive && <div className={styles.dropzone}>{t('common.dropFileToUpload')}</div>}
|
||||||
{children}
|
{children}
|
||||||
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
|
||||||
|
|||||||
@@ -12,8 +12,4 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 2001;
|
z-index: 2001;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ const CardModal = React.memo(
|
|||||||
onUpdate,
|
onUpdate,
|
||||||
onMove,
|
onMove,
|
||||||
onTransfer,
|
onTransfer,
|
||||||
|
onDuplicate,
|
||||||
onDelete,
|
onDelete,
|
||||||
onUserAdd,
|
onUserAdd,
|
||||||
onUserRemove,
|
onUserRemove,
|
||||||
@@ -140,6 +141,11 @@ const CardModal = React.memo(
|
|||||||
});
|
});
|
||||||
}, [isSubscribed, onUpdate]);
|
}, [isSubscribed, onUpdate]);
|
||||||
|
|
||||||
|
const handleDuplicateClick = useCallback(() => {
|
||||||
|
onDuplicate();
|
||||||
|
onClose();
|
||||||
|
}, [onDuplicate, onClose]);
|
||||||
|
|
||||||
const handleGalleryOpen = useCallback(() => {
|
const handleGalleryOpen = useCallback(() => {
|
||||||
isGalleryOpened.current = true;
|
isGalleryOpened.current = true;
|
||||||
}, []);
|
}, []);
|
||||||
@@ -496,6 +502,10 @@ const CardModal = React.memo(
|
|||||||
{t('action.move')}
|
{t('action.move')}
|
||||||
</Button>
|
</Button>
|
||||||
</CardMovePopup>
|
</CardMovePopup>
|
||||||
|
<Button fluid className={styles.actionButton} onClick={handleDuplicateClick}>
|
||||||
|
<Icon name="copy outline" className={styles.actionIcon} />
|
||||||
|
{t('action.duplicate')}
|
||||||
|
</Button>
|
||||||
<DeletePopup
|
<DeletePopup
|
||||||
title="common.deleteCard"
|
title="common.deleteCard"
|
||||||
content="common.areYouSureYouWantToDeleteThisCard"
|
content="common.areYouSureYouWantToDeleteThisCard"
|
||||||
@@ -555,6 +565,7 @@ CardModal.propTypes = {
|
|||||||
onUpdate: PropTypes.func.isRequired,
|
onUpdate: PropTypes.func.isRequired,
|
||||||
onMove: PropTypes.func.isRequired,
|
onMove: PropTypes.func.isRequired,
|
||||||
onTransfer: PropTypes.func.isRequired,
|
onTransfer: PropTypes.func.isRequired,
|
||||||
|
onDuplicate: PropTypes.func.isRequired,
|
||||||
onDelete: PropTypes.func.isRequired,
|
onDelete: PropTypes.func.isRequired,
|
||||||
onUserAdd: PropTypes.func.isRequired,
|
onUserAdd: PropTypes.func.isRequired,
|
||||||
onUserRemove: PropTypes.func.isRequired,
|
onUserRemove: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import { usePopup } from '../../../lib/popup';
|
|||||||
|
|
||||||
import NameEdit from './NameEdit';
|
import NameEdit from './NameEdit';
|
||||||
import ActionsStep from './ActionsStep';
|
import ActionsStep from './ActionsStep';
|
||||||
|
import Linkify from '../../Linkify';
|
||||||
|
|
||||||
import styles from './Item.module.scss';
|
import styles from './Item.module.scss';
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ const Item = React.memo(
|
|||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
<span className={classNames(styles.task, isCompleted && styles.taskCompleted)}>
|
<span className={classNames(styles.task, isCompleted && styles.taskCompleted)}>
|
||||||
{name}
|
<Linkify linkStopPropagation>{name}</Linkify>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
{isPersisted && canEdit && (
|
{isPersisted && canEdit && (
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import PropTypes from 'prop-types';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
import getDateFormat from '../../utils/get-date-format';
|
||||||
|
|
||||||
import styles from './DueDate.module.scss';
|
import styles from './DueDate.module.scss';
|
||||||
|
|
||||||
const SIZES = {
|
const SIZES = {
|
||||||
@@ -12,15 +14,27 @@ const SIZES = {
|
|||||||
MEDIUM: 'medium',
|
MEDIUM: 'medium',
|
||||||
};
|
};
|
||||||
|
|
||||||
const FORMATS = {
|
const LONG_DATE_FORMAT_BY_SIZE = {
|
||||||
tiny: 'longDate',
|
tiny: 'longDate',
|
||||||
small: 'longDate',
|
small: 'longDate',
|
||||||
medium: 'longDateTime',
|
medium: 'longDateTime',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const FULL_DATE_FORMAT_BY_SIZE = {
|
||||||
|
tiny: 'fullDate',
|
||||||
|
small: 'fullDate',
|
||||||
|
medium: 'fullDateTime',
|
||||||
|
};
|
||||||
|
|
||||||
const DueDate = React.memo(({ value, size, isDisabled, onClick }) => {
|
const DueDate = React.memo(({ value, size, isDisabled, onClick }) => {
|
||||||
const [t] = useTranslation();
|
const [t] = useTranslation();
|
||||||
|
|
||||||
|
const dateFormat = getDateFormat(
|
||||||
|
value,
|
||||||
|
LONG_DATE_FORMAT_BY_SIZE[size],
|
||||||
|
FULL_DATE_FORMAT_BY_SIZE[size],
|
||||||
|
);
|
||||||
|
|
||||||
const contentNode = (
|
const contentNode = (
|
||||||
<span
|
<span
|
||||||
className={classNames(
|
className={classNames(
|
||||||
@@ -29,7 +43,7 @@ const DueDate = React.memo(({ value, size, isDisabled, onClick }) => {
|
|||||||
onClick && styles.wrapperHoverable,
|
onClick && styles.wrapperHoverable,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{t(`format:${FORMATS[size]}`, {
|
{t(`format:${dateFormat}`, {
|
||||||
value,
|
value,
|
||||||
postProcess: 'formatDate',
|
postProcess: 'formatDate',
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
import React, { useCallback } from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
import LinkifyReact from 'linkify-react';
|
||||||
|
|
||||||
|
import history from '../history';
|
||||||
|
|
||||||
|
const Linkify = React.memo(({ children, linkStopPropagation, ...props }) => {
|
||||||
|
const handleLinkClick = useCallback(
|
||||||
|
(event) => {
|
||||||
|
if (linkStopPropagation) {
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!event.target.getAttribute('target')) {
|
||||||
|
event.preventDefault();
|
||||||
|
history.push(event.target.href);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[linkStopPropagation],
|
||||||
|
);
|
||||||
|
|
||||||
|
const linkRenderer = useCallback(
|
||||||
|
({ attributes: { href, ...linkProps }, content }) => {
|
||||||
|
let url;
|
||||||
|
try {
|
||||||
|
url = new URL(href, window.location);
|
||||||
|
} catch (error) {} // eslint-disable-line no-empty
|
||||||
|
|
||||||
|
const isSameSite = !!url && url.origin === window.location.origin;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<a
|
||||||
|
{...linkProps} // eslint-disable-line react/jsx-props-no-spreading
|
||||||
|
href={href}
|
||||||
|
target={isSameSite ? undefined : '_blank'}
|
||||||
|
rel={isSameSite ? undefined : 'noreferrer'}
|
||||||
|
onClick={handleLinkClick}
|
||||||
|
>
|
||||||
|
{isSameSite ? url.pathname : content}
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
[handleLinkClick],
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<LinkifyReact
|
||||||
|
{...props} // eslint-disable-line react/jsx-props-no-spreading
|
||||||
|
options={{
|
||||||
|
defaultProtocol: 'https',
|
||||||
|
render: linkRenderer,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</LinkifyReact>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
Linkify.propTypes = {
|
||||||
|
children: PropTypes.string.isRequired,
|
||||||
|
linkStopPropagation: PropTypes.bool,
|
||||||
|
};
|
||||||
|
|
||||||
|
Linkify.defaultProps = {
|
||||||
|
linkStopPropagation: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Linkify;
|
||||||
@@ -43,7 +43,6 @@
|
|||||||
max-height: calc(100vh - 268px);
|
max-height: calc(100vh - 268px);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
|
||||||
width: 290px;
|
width: 290px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ const Login = React.memo(
|
|||||||
isSubmittingUsingOidc,
|
isSubmittingUsingOidc,
|
||||||
error,
|
error,
|
||||||
withOidc,
|
withOidc,
|
||||||
|
isOidcEnforced,
|
||||||
onAuthenticate,
|
onAuthenticate,
|
||||||
onAuthenticateUsingOidc,
|
onAuthenticateUsingOidc,
|
||||||
onMessageDismiss,
|
onMessageDismiss,
|
||||||
@@ -107,8 +108,10 @@ const Login = React.memo(
|
|||||||
}, [onAuthenticate, data]);
|
}, [onAuthenticate, data]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!isOidcEnforced) {
|
||||||
emailOrUsernameField.current.focus();
|
emailOrUsernameField.current.focus();
|
||||||
}, []);
|
}
|
||||||
|
}, [isOidcEnforced]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (wasSubmitting && !isSubmitting && error) {
|
if (wasSubmitting && !isSubmitting && error) {
|
||||||
@@ -159,6 +162,7 @@ const Login = React.memo(
|
|||||||
onDismiss={onMessageDismiss}
|
onDismiss={onMessageDismiss}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{!isOidcEnforced && (
|
||||||
<Form size="large" onSubmit={handleSubmit}>
|
<Form size="large" onSubmit={handleSubmit}>
|
||||||
<div className={styles.inputWrapper}>
|
<div className={styles.inputWrapper}>
|
||||||
<div className={styles.inputLabel}>{t('common.emailOrUsername')}</div>
|
<div className={styles.inputLabel}>{t('common.emailOrUsername')}</div>
|
||||||
@@ -195,15 +199,20 @@ const Login = React.memo(
|
|||||||
disabled={isSubmitting || isSubmittingUsingOidc}
|
disabled={isSubmitting || isSubmittingUsingOidc}
|
||||||
/>
|
/>
|
||||||
</Form>
|
</Form>
|
||||||
|
)}
|
||||||
{withOidc && (
|
{withOidc && (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
fluid={isOidcEnforced}
|
||||||
|
primary={isOidcEnforced}
|
||||||
|
size={isOidcEnforced ? 'large' : undefined}
|
||||||
|
icon={isOidcEnforced ? 'right arrow' : undefined}
|
||||||
|
labelPosition={isOidcEnforced ? 'right' : undefined}
|
||||||
|
content={t('action.logInWithSSO')}
|
||||||
loading={isSubmittingUsingOidc}
|
loading={isSubmittingUsingOidc}
|
||||||
disabled={isSubmitting || isSubmittingUsingOidc}
|
disabled={isSubmitting || isSubmittingUsingOidc}
|
||||||
onClick={onAuthenticateUsingOidc}
|
onClick={onAuthenticateUsingOidc}
|
||||||
>
|
/>
|
||||||
{t('action.logInWithSSO')}
|
|
||||||
</Button>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -242,6 +251,7 @@ Login.propTypes = {
|
|||||||
isSubmittingUsingOidc: PropTypes.bool.isRequired,
|
isSubmittingUsingOidc: PropTypes.bool.isRequired,
|
||||||
error: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
error: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
||||||
withOidc: PropTypes.bool.isRequired,
|
withOidc: PropTypes.bool.isRequired,
|
||||||
|
isOidcEnforced: PropTypes.bool.isRequired,
|
||||||
onAuthenticate: PropTypes.func.isRequired,
|
onAuthenticate: PropTypes.func.isRequired,
|
||||||
onAuthenticateUsingOidc: PropTypes.func.isRequired,
|
onAuthenticateUsingOidc: PropTypes.func.isRequired,
|
||||||
onMessageDismiss: PropTypes.func.isRequired,
|
onMessageDismiss: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
scrollbar-width: thin;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ const AccountPane = React.memo(
|
|||||||
organization,
|
organization,
|
||||||
language,
|
language,
|
||||||
isLocked,
|
isLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isAvatarUpdating,
|
isAvatarUpdating,
|
||||||
usernameUpdateForm,
|
usernameUpdateForm,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
@@ -104,7 +105,7 @@ const AccountPane = React.memo(
|
|||||||
value={language || 'auto'}
|
value={language || 'auto'}
|
||||||
onChange={handleLanguageChange}
|
onChange={handleLanguageChange}
|
||||||
/>
|
/>
|
||||||
{!isLocked && (
|
{(!isLocked || !isUsernameLocked) && (
|
||||||
<>
|
<>
|
||||||
<Divider horizontal section>
|
<Divider horizontal section>
|
||||||
<Header as="h4">
|
<Header as="h4">
|
||||||
@@ -113,13 +114,14 @@ const AccountPane = React.memo(
|
|||||||
})}
|
})}
|
||||||
</Header>
|
</Header>
|
||||||
</Divider>
|
</Divider>
|
||||||
|
{!isUsernameLocked && (
|
||||||
<div className={styles.action}>
|
<div className={styles.action}>
|
||||||
<UserUsernameEditPopup
|
<UserUsernameEditPopup
|
||||||
usePasswordConfirmation
|
|
||||||
defaultData={usernameUpdateForm.data}
|
defaultData={usernameUpdateForm.data}
|
||||||
username={username}
|
username={username}
|
||||||
isSubmitting={usernameUpdateForm.isSubmitting}
|
isSubmitting={usernameUpdateForm.isSubmitting}
|
||||||
error={usernameUpdateForm.error}
|
error={usernameUpdateForm.error}
|
||||||
|
usePasswordConfirmation={!isLocked} // FIXME: hack
|
||||||
onUpdate={onUsernameUpdate}
|
onUpdate={onUsernameUpdate}
|
||||||
onMessageDismiss={onUsernameUpdateMessageDismiss}
|
onMessageDismiss={onUsernameUpdateMessageDismiss}
|
||||||
>
|
>
|
||||||
@@ -130,6 +132,9 @@ const AccountPane = React.memo(
|
|||||||
</Button>
|
</Button>
|
||||||
</UserUsernameEditPopup>
|
</UserUsernameEditPopup>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
{!isLocked && (
|
||||||
|
<>
|
||||||
<div className={styles.action}>
|
<div className={styles.action}>
|
||||||
<UserEmailEditPopup
|
<UserEmailEditPopup
|
||||||
usePasswordConfirmation
|
usePasswordConfirmation
|
||||||
@@ -165,6 +170,8 @@ const AccountPane = React.memo(
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Tab.Pane>
|
</Tab.Pane>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -179,6 +186,7 @@ AccountPane.propTypes = {
|
|||||||
organization: PropTypes.string,
|
organization: PropTypes.string,
|
||||||
language: PropTypes.string,
|
language: PropTypes.string,
|
||||||
isLocked: PropTypes.bool.isRequired,
|
isLocked: PropTypes.bool.isRequired,
|
||||||
|
isUsernameLocked: PropTypes.bool.isRequired,
|
||||||
isAvatarUpdating: PropTypes.bool.isRequired,
|
isAvatarUpdating: PropTypes.bool.isRequired,
|
||||||
/* eslint-disable react/forbid-prop-types */
|
/* eslint-disable react/forbid-prop-types */
|
||||||
usernameUpdateForm: PropTypes.object.isRequired,
|
usernameUpdateForm: PropTypes.object.isRequired,
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ const UserSettingsModal = React.memo(
|
|||||||
language,
|
language,
|
||||||
subscribeToOwnCards,
|
subscribeToOwnCards,
|
||||||
isLocked,
|
isLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isAvatarUpdating,
|
isAvatarUpdating,
|
||||||
usernameUpdateForm,
|
usernameUpdateForm,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
@@ -50,6 +51,7 @@ const UserSettingsModal = React.memo(
|
|||||||
organization={organization}
|
organization={organization}
|
||||||
language={language}
|
language={language}
|
||||||
isLocked={isLocked}
|
isLocked={isLocked}
|
||||||
|
isUsernameLocked={isUsernameLocked}
|
||||||
isAvatarUpdating={isAvatarUpdating}
|
isAvatarUpdating={isAvatarUpdating}
|
||||||
usernameUpdateForm={usernameUpdateForm}
|
usernameUpdateForm={usernameUpdateForm}
|
||||||
emailUpdateForm={emailUpdateForm}
|
emailUpdateForm={emailUpdateForm}
|
||||||
@@ -108,6 +110,7 @@ UserSettingsModal.propTypes = {
|
|||||||
language: PropTypes.string,
|
language: PropTypes.string,
|
||||||
subscribeToOwnCards: PropTypes.bool.isRequired,
|
subscribeToOwnCards: PropTypes.bool.isRequired,
|
||||||
isLocked: PropTypes.bool.isRequired,
|
isLocked: PropTypes.bool.isRequired,
|
||||||
|
isUsernameLocked: PropTypes.bool.isRequired,
|
||||||
isAvatarUpdating: PropTypes.bool.isRequired,
|
isAvatarUpdating: PropTypes.bool.isRequired,
|
||||||
/* eslint-disable react/forbid-prop-types */
|
/* eslint-disable react/forbid-prop-types */
|
||||||
usernameUpdateForm: PropTypes.object.isRequired,
|
usernameUpdateForm: PropTypes.object.isRequired,
|
||||||
|
|||||||
@@ -136,13 +136,15 @@ const ActionsStep = React.memo(
|
|||||||
context: 'title',
|
context: 'title',
|
||||||
})}
|
})}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
{!user.isLocked && (
|
{!user.isUsernameLocked && (
|
||||||
<>
|
|
||||||
<Menu.Item className={styles.menuItem} onClick={handleEditUsernameClick}>
|
<Menu.Item className={styles.menuItem} onClick={handleEditUsernameClick}>
|
||||||
{t('action.editUsername', {
|
{t('action.editUsername', {
|
||||||
context: 'title',
|
context: 'title',
|
||||||
})}
|
})}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
|
)}
|
||||||
|
{!user.isLocked && (
|
||||||
|
<>
|
||||||
<Menu.Item className={styles.menuItem} onClick={handleEditEmailClick}>
|
<Menu.Item className={styles.menuItem} onClick={handleEditEmailClick}>
|
||||||
{t('action.editEmail', {
|
{t('action.editEmail', {
|
||||||
context: 'title',
|
context: 'title',
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ const Item = React.memo(
|
|||||||
isAdmin,
|
isAdmin,
|
||||||
isLocked,
|
isLocked,
|
||||||
isRoleLocked,
|
isRoleLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isDeletionLocked,
|
isDeletionLocked,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
passwordUpdateForm,
|
passwordUpdateForm,
|
||||||
@@ -61,6 +62,7 @@ const Item = React.memo(
|
|||||||
phone,
|
phone,
|
||||||
isAdmin,
|
isAdmin,
|
||||||
isLocked,
|
isLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isDeletionLocked,
|
isDeletionLocked,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
passwordUpdateForm,
|
passwordUpdateForm,
|
||||||
@@ -95,6 +97,7 @@ Item.propTypes = {
|
|||||||
isAdmin: PropTypes.bool.isRequired,
|
isAdmin: PropTypes.bool.isRequired,
|
||||||
isLocked: PropTypes.bool.isRequired,
|
isLocked: PropTypes.bool.isRequired,
|
||||||
isRoleLocked: PropTypes.bool.isRequired,
|
isRoleLocked: PropTypes.bool.isRequired,
|
||||||
|
isUsernameLocked: PropTypes.bool.isRequired,
|
||||||
isDeletionLocked: PropTypes.bool.isRequired,
|
isDeletionLocked: PropTypes.bool.isRequired,
|
||||||
/* eslint-disable react/forbid-prop-types */
|
/* eslint-disable react/forbid-prop-types */
|
||||||
emailUpdateForm: PropTypes.object.isRequired,
|
emailUpdateForm: PropTypes.object.isRequired,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import Item from './Item';
|
|||||||
const UsersModal = React.memo(
|
const UsersModal = React.memo(
|
||||||
({
|
({
|
||||||
items,
|
items,
|
||||||
|
canAdd,
|
||||||
onUpdate,
|
onUpdate,
|
||||||
onUsernameUpdate,
|
onUsernameUpdate,
|
||||||
onUsernameUpdateMessageDismiss,
|
onUsernameUpdateMessageDismiss,
|
||||||
@@ -112,6 +113,7 @@ const UsersModal = React.memo(
|
|||||||
isAdmin={item.isAdmin}
|
isAdmin={item.isAdmin}
|
||||||
isLocked={item.isLocked}
|
isLocked={item.isLocked}
|
||||||
isRoleLocked={item.isRoleLocked}
|
isRoleLocked={item.isRoleLocked}
|
||||||
|
isUsernameLocked={item.isUsernameLocked}
|
||||||
isDeletionLocked={item.isDeletionLocked}
|
isDeletionLocked={item.isDeletionLocked}
|
||||||
emailUpdateForm={item.emailUpdateForm}
|
emailUpdateForm={item.emailUpdateForm}
|
||||||
passwordUpdateForm={item.passwordUpdateForm}
|
passwordUpdateForm={item.passwordUpdateForm}
|
||||||
@@ -129,11 +131,13 @@ const UsersModal = React.memo(
|
|||||||
</Table.Body>
|
</Table.Body>
|
||||||
</Table>
|
</Table>
|
||||||
</Modal.Content>
|
</Modal.Content>
|
||||||
|
{canAdd && (
|
||||||
<Modal.Actions>
|
<Modal.Actions>
|
||||||
<UserAddPopupContainer>
|
<UserAddPopupContainer>
|
||||||
<Button positive content={t('action.addUser')} />
|
<Button positive content={t('action.addUser')} />
|
||||||
</UserAddPopupContainer>
|
</UserAddPopupContainer>
|
||||||
</Modal.Actions>
|
</Modal.Actions>
|
||||||
|
)}
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -141,6 +145,7 @@ const UsersModal = React.memo(
|
|||||||
|
|
||||||
UsersModal.propTypes = {
|
UsersModal.propTypes = {
|
||||||
items: PropTypes.array.isRequired, // eslint-disable-line react/forbid-prop-types
|
items: PropTypes.array.isRequired, // eslint-disable-line react/forbid-prop-types
|
||||||
|
canAdd: PropTypes.bool.isRequired,
|
||||||
onUpdate: PropTypes.func.isRequired,
|
onUpdate: PropTypes.func.isRequired,
|
||||||
onUsernameUpdate: PropTypes.func.isRequired,
|
onUsernameUpdate: PropTypes.func.isRequired,
|
||||||
onUsernameUpdateMessageDismiss: PropTypes.func.isRequired,
|
onUsernameUpdateMessageDismiss: PropTypes.func.isRequired,
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ export default {
|
|||||||
CARD_TRANSFER: 'CARD_TRANSFER',
|
CARD_TRANSFER: 'CARD_TRANSFER',
|
||||||
CARD_TRANSFER__SUCCESS: 'CARD_TRANSFER__SUCCESS',
|
CARD_TRANSFER__SUCCESS: 'CARD_TRANSFER__SUCCESS',
|
||||||
CARD_TRANSFER__FAILURE: 'CARD_TRANSFER__FAILURE',
|
CARD_TRANSFER__FAILURE: 'CARD_TRANSFER__FAILURE',
|
||||||
|
CARD_DUPLICATE: 'CARD_DUPLICATE',
|
||||||
|
CARD_DUPLICATE__SUCCESS: 'CARD_DUPLICATE__SUCCESS',
|
||||||
|
CARD_DUPLICATE__FAILURE: 'CARD_DUPLICATE__FAILURE',
|
||||||
CARD_DELETE: 'CARD_DELETE',
|
CARD_DELETE: 'CARD_DELETE',
|
||||||
CARD_DELETE__SUCCESS: 'CARD_DELETE__SUCCESS',
|
CARD_DELETE__SUCCESS: 'CARD_DELETE__SUCCESS',
|
||||||
CARD_DELETE__FAILURE: 'CARD_DELETE__FAILURE',
|
CARD_DELETE__FAILURE: 'CARD_DELETE__FAILURE',
|
||||||
|
|||||||
@@ -132,6 +132,8 @@ export default {
|
|||||||
CURRENT_CARD_MOVE: `${PREFIX}/CURRENT_CARD_MOVE`,
|
CURRENT_CARD_MOVE: `${PREFIX}/CURRENT_CARD_MOVE`,
|
||||||
CARD_TRANSFER: `${PREFIX}/CARD_TRANSFER`,
|
CARD_TRANSFER: `${PREFIX}/CARD_TRANSFER`,
|
||||||
CURRENT_CARD_TRANSFER: `${PREFIX}/CURRENT_CARD_TRANSFER`,
|
CURRENT_CARD_TRANSFER: `${PREFIX}/CURRENT_CARD_TRANSFER`,
|
||||||
|
CARD_DUPLICATE: `${PREFIX}/CARD_DUPLICATE`,
|
||||||
|
CURRENT_CARD_DUPLICATE: `${PREFIX}/CURRENT_CARD_DUPLICATE`,
|
||||||
CARD_DELETE: `${PREFIX}/CARD_DELETE`,
|
CARD_DELETE: `${PREFIX}/CARD_DELETE`,
|
||||||
CURRENT_CARD_DELETE: `${PREFIX}/CURRENT_CARD_DELETE`,
|
CURRENT_CARD_DELETE: `${PREFIX}/CURRENT_CARD_DELETE`,
|
||||||
CARD_DELETE_HANDLE: `${PREFIX}/CARD_DELETE_HANDLE`,
|
CARD_DELETE_HANDLE: `${PREFIX}/CARD_DELETE_HANDLE`,
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ const mapDispatchToProps = (dispatch, { id }) =>
|
|||||||
onUpdate: (data) => entryActions.updateCard(id, data),
|
onUpdate: (data) => entryActions.updateCard(id, data),
|
||||||
onMove: (listId, index) => entryActions.moveCard(id, listId, index),
|
onMove: (listId, index) => entryActions.moveCard(id, listId, index),
|
||||||
onTransfer: (boardId, listId) => entryActions.transferCard(id, boardId, listId),
|
onTransfer: (boardId, listId) => entryActions.transferCard(id, boardId, listId),
|
||||||
|
onDuplicate: () => entryActions.duplicateCard(id),
|
||||||
onDelete: () => entryActions.deleteCard(id),
|
onDelete: () => entryActions.deleteCard(id),
|
||||||
onUserAdd: (userId) => entryActions.addUserToCard(userId, id),
|
onUserAdd: (userId) => entryActions.addUserToCard(userId, id),
|
||||||
onUserRemove: (userId) => entryActions.removeUserFromCard(userId, id),
|
onUserRemove: (userId) => entryActions.removeUserFromCard(userId, id),
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ const mapDispatchToProps = (dispatch) =>
|
|||||||
onUpdate: entryActions.updateCurrentCard,
|
onUpdate: entryActions.updateCurrentCard,
|
||||||
onMove: entryActions.moveCurrentCard,
|
onMove: entryActions.moveCurrentCard,
|
||||||
onTransfer: entryActions.transferCurrentCard,
|
onTransfer: entryActions.transferCurrentCard,
|
||||||
|
onDuplicate: entryActions.duplicateCurrentCard,
|
||||||
onDelete: entryActions.deleteCurrentCard,
|
onDelete: entryActions.deleteCurrentCard,
|
||||||
onUserAdd: entryActions.addUserToCurrentCard,
|
onUserAdd: entryActions.addUserToCurrentCard,
|
||||||
onUserRemove: entryActions.removeUserFromCurrentCard,
|
onUserRemove: entryActions.removeUserFromCurrentCard,
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ const mapStateToProps = (state) => {
|
|||||||
isSubmittingUsingOidc,
|
isSubmittingUsingOidc,
|
||||||
error,
|
error,
|
||||||
withOidc: !!oidcConfig,
|
withOidc: !!oidcConfig,
|
||||||
|
isOidcEnforced: oidcConfig && oidcConfig.isEnforced,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ const mapStateToProps = (state) => {
|
|||||||
language,
|
language,
|
||||||
subscribeToOwnCards,
|
subscribeToOwnCards,
|
||||||
isLocked,
|
isLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isAvatarUpdating,
|
isAvatarUpdating,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
passwordUpdateForm,
|
passwordUpdateForm,
|
||||||
@@ -32,6 +33,7 @@ const mapStateToProps = (state) => {
|
|||||||
language,
|
language,
|
||||||
subscribeToOwnCards,
|
subscribeToOwnCards,
|
||||||
isLocked,
|
isLocked,
|
||||||
|
isUsernameLocked,
|
||||||
isAvatarUpdating,
|
isAvatarUpdating,
|
||||||
emailUpdateForm,
|
emailUpdateForm,
|
||||||
passwordUpdateForm,
|
passwordUpdateForm,
|
||||||
|
|||||||
@@ -6,10 +6,12 @@ import entryActions from '../entry-actions';
|
|||||||
import UsersModal from '../components/UsersModal';
|
import UsersModal from '../components/UsersModal';
|
||||||
|
|
||||||
const mapStateToProps = (state) => {
|
const mapStateToProps = (state) => {
|
||||||
|
const oidcConfig = selectors.selectOidcConfig(state);
|
||||||
const users = selectors.selectUsersExceptCurrent(state);
|
const users = selectors.selectUsersExceptCurrent(state);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
items: users,
|
items: users,
|
||||||
|
canAdd: !oidcConfig || !oidcConfig.isEnforced,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const handleCardUpdate = (card) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const moveCard = (id, listId, index = 0) => ({
|
const moveCard = (id, listId, index) => ({
|
||||||
type: EntryActionTypes.CARD_MOVE,
|
type: EntryActionTypes.CARD_MOVE,
|
||||||
payload: {
|
payload: {
|
||||||
id,
|
id,
|
||||||
@@ -47,7 +47,7 @@ const moveCard = (id, listId, index = 0) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const moveCurrentCard = (listId, index = 0) => ({
|
const moveCurrentCard = (listId, index) => ({
|
||||||
type: EntryActionTypes.CURRENT_CARD_MOVE,
|
type: EntryActionTypes.CURRENT_CARD_MOVE,
|
||||||
payload: {
|
payload: {
|
||||||
listId,
|
listId,
|
||||||
@@ -55,7 +55,7 @@ const moveCurrentCard = (listId, index = 0) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const transferCard = (id, boardId, listId, index = 0) => ({
|
const transferCard = (id, boardId, listId, index) => ({
|
||||||
type: EntryActionTypes.CARD_TRANSFER,
|
type: EntryActionTypes.CARD_TRANSFER,
|
||||||
payload: {
|
payload: {
|
||||||
id,
|
id,
|
||||||
@@ -65,7 +65,7 @@ const transferCard = (id, boardId, listId, index = 0) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const transferCurrentCard = (boardId, listId, index = 0) => ({
|
const transferCurrentCard = (boardId, listId, index) => ({
|
||||||
type: EntryActionTypes.CURRENT_CARD_TRANSFER,
|
type: EntryActionTypes.CURRENT_CARD_TRANSFER,
|
||||||
payload: {
|
payload: {
|
||||||
boardId,
|
boardId,
|
||||||
@@ -74,6 +74,18 @@ const transferCurrentCard = (boardId, listId, index = 0) => ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const duplicateCard = (id) => ({
|
||||||
|
type: EntryActionTypes.CARD_DUPLICATE,
|
||||||
|
payload: {
|
||||||
|
id,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const duplicateCurrentCard = () => ({
|
||||||
|
type: EntryActionTypes.CURRENT_CARD_DUPLICATE,
|
||||||
|
payload: {},
|
||||||
|
});
|
||||||
|
|
||||||
const deleteCard = (id) => ({
|
const deleteCard = (id) => ({
|
||||||
type: EntryActionTypes.CARD_DELETE,
|
type: EntryActionTypes.CARD_DELETE,
|
||||||
payload: {
|
payload: {
|
||||||
@@ -103,6 +115,8 @@ export default {
|
|||||||
moveCurrentCard,
|
moveCurrentCard,
|
||||||
transferCard,
|
transferCard,
|
||||||
transferCurrentCard,
|
transferCurrentCard,
|
||||||
|
duplicateCard,
|
||||||
|
duplicateCurrentCard,
|
||||||
deleteCard,
|
deleteCard,
|
||||||
deleteCurrentCard,
|
deleteCurrentCard,
|
||||||
handleCardDelete,
|
handleCardDelete,
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import EntryActionTypes from '../constants/EntryActionTypes';
|
import EntryActionTypes from '../constants/EntryActionTypes';
|
||||||
|
|
||||||
const logout = () => ({
|
const logout = (invalidateAccessToken) => ({
|
||||||
type: EntryActionTypes.LOGOUT,
|
type: EntryActionTypes.LOGOUT,
|
||||||
payload: {},
|
payload: {
|
||||||
|
invalidateAccessToken,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'v' p",
|
longDateTime: "d MMMM 'v' p",
|
||||||
|
fullDate: 'd MMM, y',
|
||||||
|
fullDateTime: "d MMMM, y 'v' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
@@ -37,9 +39,9 @@ export default {
|
|||||||
areYouSureYouWantToLeaveBoard: 'Opravdu chcete opustit tuto tabuli?',
|
areYouSureYouWantToLeaveBoard: 'Opravdu chcete opustit tuto tabuli?',
|
||||||
areYouSureYouWantToLeaveProject: 'Opravdu chcete opustit projekt?',
|
areYouSureYouWantToLeaveProject: 'Opravdu chcete opustit projekt?',
|
||||||
areYouSureYouWantToRemoveThisManagerFromProject:
|
areYouSureYouWantToRemoveThisManagerFromProject:
|
||||||
'Are you sure you want to remove this manager from the project?',
|
'Jste si jisti, že chcete tohoto správce z projektu odebrat?',
|
||||||
areYouSureYouWantToRemoveThisMemberFromBoard:
|
areYouSureYouWantToRemoveThisMemberFromBoard:
|
||||||
'Opravdu chcete odstranit tohoto člena z tabule?',
|
'Jste si jisti, že chcete tohoto člena odebrat z tabule?',
|
||||||
attachment: 'Příloha',
|
attachment: 'Příloha',
|
||||||
attachments: 'Přílohy',
|
attachments: 'Přílohy',
|
||||||
authentication: 'Ověření',
|
authentication: 'Ověření',
|
||||||
@@ -53,6 +55,7 @@ export default {
|
|||||||
cardNotFound_title: 'Karta nenalezena',
|
cardNotFound_title: 'Karta nenalezena',
|
||||||
cardOrActionAreDeleted: 'Karta nebo akce je smazána.',
|
cardOrActionAreDeleted: 'Karta nebo akce je smazána.',
|
||||||
color: 'Barva',
|
color: 'Barva',
|
||||||
|
copy_inline: 'copy',
|
||||||
createBoard_title: 'Vytvořit tabuli',
|
createBoard_title: 'Vytvořit tabuli',
|
||||||
createLabel_title: 'Vytvořit štítek',
|
createLabel_title: 'Vytvořit štítek',
|
||||||
createNewOneOrSelectExistingOne: 'Vytvořit nový nebo vyberte<br />již existující.',
|
createNewOneOrSelectExistingOne: 'Vytvořit nový nebo vyberte<br />již existující.',
|
||||||
@@ -128,7 +131,7 @@ export default {
|
|||||||
phone: 'Telefon',
|
phone: 'Telefon',
|
||||||
preferences: 'Volby',
|
preferences: 'Volby',
|
||||||
pressPasteShortcutToAddAttachmentFromClipboard:
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
'Tip: dejte Ctrl-V (Cmd-V na Mac) pro vložení přílohy ze schránky.',
|
'Tip: stisknutím Ctrl-V (Cmd-V na Mac) přidáte přílohu ze schránky.',
|
||||||
project: 'Projekt',
|
project: 'Projekt',
|
||||||
projectNotFound_title: 'Projekt nenalezen',
|
projectNotFound_title: 'Projekt nenalezen',
|
||||||
removeManager_title: 'Odstranit vedoucího',
|
removeManager_title: 'Odstranit vedoucího',
|
||||||
@@ -197,6 +200,8 @@ export default {
|
|||||||
deleteTask: 'Smazat úkol',
|
deleteTask: 'Smazat úkol',
|
||||||
deleteTask_title: 'Smazat úkol',
|
deleteTask_title: 'Smazat úkol',
|
||||||
deleteUser: 'Smazat uživatele',
|
deleteUser: 'Smazat uživatele',
|
||||||
|
duplicate: 'Duplikovat',
|
||||||
|
duplicateCard_title: 'Duplikovat kartu',
|
||||||
edit: 'Upravit',
|
edit: 'Upravit',
|
||||||
editDueDate_title: 'Upravit termín do',
|
editDueDate_title: 'Upravit termín do',
|
||||||
editDescription_title: 'Upravit popis',
|
editDescription_title: 'Upravit popis',
|
||||||
@@ -224,13 +229,13 @@ export default {
|
|||||||
removeMember: 'Odstranit člena',
|
removeMember: 'Odstranit člena',
|
||||||
save: 'Uložit',
|
save: 'Uložit',
|
||||||
showAllAttachments: 'Zozbrazit všechny přílohy ({{hidden}} skryté)',
|
showAllAttachments: 'Zozbrazit všechny přílohy ({{hidden}} skryté)',
|
||||||
showFewerAttachments: 'Zobrazit méně příloh',
|
|
||||||
showDetails: 'Zobrazit detaily',
|
showDetails: 'Zobrazit detaily',
|
||||||
|
showFewerAttachments: 'Zobrazit méně příloh',
|
||||||
start: 'Start',
|
start: 'Start',
|
||||||
stop: 'Stop',
|
stop: 'Stop',
|
||||||
subscribe: 'Odebírat',
|
subscribe: 'Odebírat',
|
||||||
unsubscribe: 'Neodebírat',
|
unsubscribe: 'Neodebírat',
|
||||||
uploadNewAvatar: 'Nahrát nového avatara',
|
uploadNewAvatar: 'Nahrát nový avatar',
|
||||||
uploadNewImage: 'Nahrát nový obrázek',
|
uploadNewImage: 'Nahrát nový obrázek',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "MMMM d 'at' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'a' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd. MMM',
|
longDate: 'd. MMM',
|
||||||
longDateTime: "d. MMMM 'um' p",
|
longDateTime: "d. MMMM 'um' p",
|
||||||
|
fullDate: 'd. MMM. y',
|
||||||
|
fullDateTime: "d. MMMM. y 'um' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "MMMM d 'at' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'at' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
@@ -49,6 +51,7 @@ export default {
|
|||||||
cardNotFound_title: 'Card Not Found',
|
cardNotFound_title: 'Card Not Found',
|
||||||
cardOrActionAreDeleted: 'Card or action are deleted.',
|
cardOrActionAreDeleted: 'Card or action are deleted.',
|
||||||
color: 'Color',
|
color: 'Color',
|
||||||
|
copy_inline: 'copy',
|
||||||
createBoard_title: 'Create Board',
|
createBoard_title: 'Create Board',
|
||||||
createLabel_title: 'Create Label',
|
createLabel_title: 'Create Label',
|
||||||
createNewOneOrSelectExistingOne: 'Create a new one or select<br />an existing one.',
|
createNewOneOrSelectExistingOne: 'Create a new one or select<br />an existing one.',
|
||||||
@@ -194,6 +197,8 @@ export default {
|
|||||||
deleteTask: 'Delete task',
|
deleteTask: 'Delete task',
|
||||||
deleteTask_title: 'Delete Task',
|
deleteTask_title: 'Delete Task',
|
||||||
deleteUser: 'Delete user',
|
deleteUser: 'Delete user',
|
||||||
|
duplicate: 'Duplicate',
|
||||||
|
duplicateCard_title: 'Duplicate Card',
|
||||||
edit: 'Edit',
|
edit: 'Edit',
|
||||||
editDueDate_title: 'Edit Due Date',
|
editDueDate_title: 'Edit Due Date',
|
||||||
editDescription_title: 'Edit Description',
|
editDescription_title: 'Edit Description',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'a' p",
|
longDateTime: "MMMM d 'a' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'a' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'à' p",
|
longDateTime: "d MMMM 'à' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'à' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
@@ -167,6 +169,7 @@ export default {
|
|||||||
deleteTask: 'Supprimer la tâche',
|
deleteTask: 'Supprimer la tâche',
|
||||||
deleteTask_title: 'Supprimer la tâche',
|
deleteTask_title: 'Supprimer la tâche',
|
||||||
deleteUser: "Supprimer l'utilisateur",
|
deleteUser: "Supprimer l'utilisateur",
|
||||||
|
duplicate: 'Dupliquer',
|
||||||
edit: 'Modifier',
|
edit: 'Modifier',
|
||||||
editDueDate_title: "Modifier la date d'échéance",
|
editDueDate_title: "Modifier la date d'échéance",
|
||||||
editDescription_title: 'Éditer la description',
|
editDescription_title: 'Éditer la description',
|
||||||
|
|||||||
@@ -0,0 +1,241 @@
|
|||||||
|
import dateFns from 'date-fns/locale/id';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
dateFns,
|
||||||
|
|
||||||
|
format: {
|
||||||
|
date: 'dd MMM yyyy',
|
||||||
|
time: 'p',
|
||||||
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
|
longDate: 'd MMM',
|
||||||
|
longDateTime: "d MMMM 'pada' p",
|
||||||
|
fullDate: 'd MMM, y',
|
||||||
|
fullDateTime: "d MMM, y 'pada' p",
|
||||||
|
},
|
||||||
|
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
aboutPlanka: 'Tentang Planka',
|
||||||
|
account: 'Akun',
|
||||||
|
actions: 'Tindakan',
|
||||||
|
addAttachment_title: 'Tambah Lampiran',
|
||||||
|
addComment: 'Tambahkan komentar',
|
||||||
|
addManager_title: 'Tambahkan Manager',
|
||||||
|
addMember_title: 'Tambahkan Anggota',
|
||||||
|
addUser_title: 'Tambahkan Pengguna',
|
||||||
|
administrator: 'Administrator',
|
||||||
|
all: 'Semua',
|
||||||
|
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
||||||
|
'Semua perubahan akan disimpan<br />setelah koneksi pulih.',
|
||||||
|
areYouSureYouWantToDeleteThisAttachment: 'Apakah anda ingin menghapus lampiran ini?',
|
||||||
|
areYouSureYouWantToDeleteThisBoard: 'Apakah anda ingin menghapus papan ini?',
|
||||||
|
areYouSureYouWantToDeleteThisCard: 'Apakah anda ingin menghapus kartu ini?',
|
||||||
|
areYouSureYouWantToDeleteThisComment: 'Apakah anda ingin menghapus komentar ini?',
|
||||||
|
areYouSureYouWantToDeleteThisLabel: 'Apakah anda ingin menghapus label ini?',
|
||||||
|
areYouSureYouWantToDeleteThisList: 'Apakah anda ingin menghapus daftar ini?',
|
||||||
|
areYouSureYouWantToDeleteThisProject: 'Apakah anda ingin menghapus proyek ini?',
|
||||||
|
areYouSureYouWantToDeleteThisTask: 'Apakah anda ingin menghapus tugas ini?',
|
||||||
|
areYouSureYouWantToDeleteThisUser: 'Apakah anda ingin menghapus pengguna ini?',
|
||||||
|
areYouSureYouWantToLeaveBoard: 'Apakah anda ingin keluar dari papan ini?',
|
||||||
|
areYouSureYouWantToLeaveProject: 'Apakah anda ingin keluar dari proyek ini?',
|
||||||
|
areYouSureYouWantToRemoveThisManagerFromProject:
|
||||||
|
'Apakah anda ingin menghapus manajer ini dari papan ini?',
|
||||||
|
areYouSureYouWantToRemoveThisMemberFromBoard:
|
||||||
|
'Apakah anda ingin menghapus anggota ini dari papan ini?',
|
||||||
|
attachment: 'Lampiran',
|
||||||
|
attachments: 'Lampiran-lampiran',
|
||||||
|
authentication: 'Autentikasi',
|
||||||
|
background: 'Latar belakang',
|
||||||
|
board: 'Papan',
|
||||||
|
boardNotFound_title: 'Papan Tidak Ditemukan',
|
||||||
|
canComment: 'Bisa berkomentar',
|
||||||
|
canEditContentOfBoard: 'Bisa mengubah isi papan.',
|
||||||
|
canOnlyViewBoard: 'Hanya dapat menglihat isi papan.',
|
||||||
|
cardActions_title: 'Aksi Kartu',
|
||||||
|
cardNotFound_title: 'Kartu Tidak Ditemukan',
|
||||||
|
cardOrActionAreDeleted: 'Kartu atau aksi telah dihapus.',
|
||||||
|
color: 'Warna',
|
||||||
|
createBoard_title: 'Buat Papan',
|
||||||
|
createLabel_title: 'Buat Label',
|
||||||
|
createNewOneOrSelectExistingOne: 'Create a new one or select<br />an existing one.',
|
||||||
|
createProject_title: 'Buat Proyek',
|
||||||
|
createTextFile_title: 'Buat Berkas Teks',
|
||||||
|
currentPassword: 'Kata sandi sekarang',
|
||||||
|
dangerZone_title: 'Zona Berbahaya',
|
||||||
|
date: 'Tanggal',
|
||||||
|
dueDate_title: 'Tenggat Waktu',
|
||||||
|
deleteAttachment_title: 'Hapus Lampiran',
|
||||||
|
deleteBoard_title: 'Hapus Papan',
|
||||||
|
deleteCard_title: 'Hapus Kartu',
|
||||||
|
deleteComment_title: 'Hapus Komentar',
|
||||||
|
deleteLabel_title: 'Hapus Label',
|
||||||
|
deleteList_title: 'Hapus Daftar',
|
||||||
|
deleteProject_title: 'Hapus Proyek',
|
||||||
|
deleteTask_title: 'Hapus Tugas',
|
||||||
|
deleteUser_title: 'Hapus Pengguna',
|
||||||
|
description: 'Deskripsi',
|
||||||
|
detectAutomatically: 'Deteksi otomatis',
|
||||||
|
dropFileToUpload: 'Tarik berkas untuk menggungah',
|
||||||
|
editor: 'Pengubah',
|
||||||
|
editAttachment_title: 'Ubah Lampiran',
|
||||||
|
editAvatar_title: 'Ubah Avatar',
|
||||||
|
editBoard_title: 'Ubah Papan',
|
||||||
|
editDueDate_title: 'Ubah Tenggat Waktu',
|
||||||
|
editEmail_title: 'Ubah E-mail',
|
||||||
|
editInformation_title: 'Ubah Informasi',
|
||||||
|
editLabel_title: 'Ubah Label',
|
||||||
|
editPassword_title: 'Ubah Kata Sandi',
|
||||||
|
editPermissions_title: 'Ubah Izin',
|
||||||
|
editStopwatch_title: 'Ubah Stopwatch',
|
||||||
|
editUsername_title: 'Ubah Username',
|
||||||
|
email: 'E-mail',
|
||||||
|
emailAlreadyInUse: 'E-mail telah digunakan',
|
||||||
|
enterCardTitle: 'Masukkan judul kartu... [Ctrl+Enter] untuk membuka otomatis.',
|
||||||
|
enterDescription: 'Masukkan deskripsi...',
|
||||||
|
enterFilename: 'Masukkan nama berkas...',
|
||||||
|
enterListTitle: 'Masukkan judul daftar...',
|
||||||
|
enterProjectTitle: 'Masukkan judul proyek',
|
||||||
|
enterTaskDescription: 'Masukkan deskripsi tugas...',
|
||||||
|
filterByLabels_title: 'Saring berdasarkan Label',
|
||||||
|
filterByMembers_title: 'Saring berdasarkan Anggota',
|
||||||
|
fromComputer_title: 'Dari Komputer',
|
||||||
|
fromTrello: 'Dari Trello',
|
||||||
|
general: 'Umum',
|
||||||
|
hours: 'Jam',
|
||||||
|
importBoard_title: 'Impor Papan',
|
||||||
|
invalidCurrentPassword: 'Kata sandi saat ini tidak valid',
|
||||||
|
labels: 'Label',
|
||||||
|
language: 'Bahasa',
|
||||||
|
leaveBoard_title: 'Keluar dari Papan',
|
||||||
|
leaveProject_title: 'Keluar dari Proyek',
|
||||||
|
list: 'Daftar',
|
||||||
|
listActions_title: 'Aksi Daftar',
|
||||||
|
managers: 'Manager',
|
||||||
|
members: 'Anggota',
|
||||||
|
minutes: 'Menit',
|
||||||
|
moveCard_title: 'Pindahkan Kartu',
|
||||||
|
name: 'Nama',
|
||||||
|
newEmail: 'E-mail baru',
|
||||||
|
newPassword: 'Kata sandi baru',
|
||||||
|
newUsername: 'Username baru',
|
||||||
|
noConnectionToServer: 'Tidak ada koneksi ke server',
|
||||||
|
noBoards: 'Tidak ada papan',
|
||||||
|
noLists: 'Tidak ada daftar',
|
||||||
|
noProjects: 'Tidak ada projek',
|
||||||
|
notifications: 'Notifikasi',
|
||||||
|
noUnreadNotifications: 'Tiada notifikasi yang belum dibaca.',
|
||||||
|
openBoard_title: 'Buka Papan',
|
||||||
|
optional_inline: 'opsional',
|
||||||
|
organization: 'Organisasi',
|
||||||
|
phone: 'Ponsel',
|
||||||
|
preferences: 'Preferensi',
|
||||||
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
|
'Tip: tekan Ctrl-V (Cmd-V di Mac) untuk menambahkan lampiran dari papan klip.',
|
||||||
|
project: 'Proyek',
|
||||||
|
projectNotFound_title: 'Proyek Tidak Ditemukan',
|
||||||
|
removeManager_title: 'Hapus Manager',
|
||||||
|
removeMember_title: 'Hapus Anggota',
|
||||||
|
searchLabels: 'Cari label...',
|
||||||
|
searchMembers: 'Cari anggota...',
|
||||||
|
searchUsers: 'Cari pengguna...',
|
||||||
|
seconds: 'Detik',
|
||||||
|
selectBoard: 'Pilih papan',
|
||||||
|
selectList: 'Pilih daftar',
|
||||||
|
selectPermissions_title: 'Pilih Izin',
|
||||||
|
selectProject: 'Pilih proyek',
|
||||||
|
settings: 'Setelan',
|
||||||
|
stopwatch: 'Stopwatch',
|
||||||
|
subscribeToMyOwnCardsByDefault: 'Berlangganan kartu saya sendiri secara default',
|
||||||
|
taskActions_title: 'Aksi Tugas',
|
||||||
|
tasks: 'Tugas',
|
||||||
|
thereIsNoPreviewAvailableForThisAttachment:
|
||||||
|
'Tidak ada pratinjau yang tersedia untuk lampiran ini.',
|
||||||
|
time: 'Waktu',
|
||||||
|
title: 'Judul',
|
||||||
|
userActions_title: 'Aksi Pengguna',
|
||||||
|
userAddedThisCardToList: '<0>{{user}}</0><1> menambahkan kartu ini ke {{list}}</1>',
|
||||||
|
userLeftNewCommentToCard: '{{user}} mengomentari «{{comment}}» di <2>{{card}}</2>',
|
||||||
|
userMovedCardFromListToList:
|
||||||
|
'{{user}} memindahkan <2>{{card}}</2> dari {{fromList}} ke {{toList}}',
|
||||||
|
userMovedThisCardFromListToList:
|
||||||
|
'<0>{{user}}</0><1> memindahkan kartu ini dari {{fromList}} ke {{toList}}</1>',
|
||||||
|
username: 'Username',
|
||||||
|
usernameAlreadyInUse: 'Username telah digunakan',
|
||||||
|
users: 'Pengguna',
|
||||||
|
version: 'Versi',
|
||||||
|
viewer: 'Penglihat',
|
||||||
|
writeComment: 'Tuliskan komentar...',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
addAnotherCard: 'Tambahkan kartu lain',
|
||||||
|
addAnotherList: 'Tambahkan daftar lain',
|
||||||
|
addAnotherTask: 'Tambahkan aksi lain',
|
||||||
|
addCard: 'Tambah kartu',
|
||||||
|
addCard_title: 'Tambah Kartu',
|
||||||
|
addComment: 'Tambah komentar',
|
||||||
|
addList: 'Tambah daftar',
|
||||||
|
addMember: 'Tambah anggota',
|
||||||
|
addMoreDetailedDescription: 'Tambahkan deskripsi yang lebih detail',
|
||||||
|
addTask: 'Tambah tugas',
|
||||||
|
addToCard: 'Tambahkan ke kartu',
|
||||||
|
addUser: 'Tambah pengguna',
|
||||||
|
createBoard: 'Tambah papan',
|
||||||
|
createFile: 'Tambah berkas',
|
||||||
|
createLabel: 'Tambah label',
|
||||||
|
createNewLabel: 'Tambah label baru',
|
||||||
|
createProject: 'Tambah proyek',
|
||||||
|
delete: 'Hapus',
|
||||||
|
deleteAttachment: 'Hapus lampiran',
|
||||||
|
deleteAvatar: 'Hapus avatar',
|
||||||
|
deleteBoard: 'Hapus papan',
|
||||||
|
deleteCard: 'Hapus kartu',
|
||||||
|
deleteCard_title: 'Hapus Kartu',
|
||||||
|
deleteComment: 'Hapus komentar',
|
||||||
|
deleteImage: 'Hapus gambar',
|
||||||
|
deleteLabel: 'Hapus labek',
|
||||||
|
deleteList: 'Hapus daftar',
|
||||||
|
deleteList_title: 'Hapus Daftar',
|
||||||
|
deleteProject: 'Hapus proyek',
|
||||||
|
deleteProject_title: 'Hapus Proyek',
|
||||||
|
deleteTask: 'Hapus tugas',
|
||||||
|
deleteTask_title: 'Hapus Tugas',
|
||||||
|
deleteUser: 'Hapus pengguna',
|
||||||
|
edit: 'Ubah',
|
||||||
|
editDueDate_title: 'Ubah Tenggat Waktu',
|
||||||
|
editDescription_title: 'Ubdah Deskripsi',
|
||||||
|
editEmail_title: 'Ubah E-mail',
|
||||||
|
editInformation_title: 'Ubah Informasi',
|
||||||
|
editPassword_title: 'Ubah Kata Sandi',
|
||||||
|
editPermissions: 'Ubah izin',
|
||||||
|
editStopwatch_title: 'Ubah Stopwatch',
|
||||||
|
editTitle_title: 'Ubah Judul',
|
||||||
|
editUsername_title: 'Ubah Username',
|
||||||
|
hideDetails: 'Sembunyikan detail',
|
||||||
|
import: 'Impor',
|
||||||
|
leaveBoard: 'Keluar dari papan',
|
||||||
|
leaveProject: 'Keluar dari proyek',
|
||||||
|
logOut_title: 'Keluar',
|
||||||
|
makeCover_title: 'Buat Cover',
|
||||||
|
move: 'Pindah',
|
||||||
|
moveCard_title: 'Pindahkan Kartu',
|
||||||
|
remove: 'Hapus',
|
||||||
|
removeBackground: 'Hapus latar belakang',
|
||||||
|
removeCover_title: 'Hapus Cover',
|
||||||
|
removeFromBoard: 'Hapus dari papan',
|
||||||
|
removeFromProject: 'Hapus dari proyek',
|
||||||
|
removeManager: 'Hapus manager',
|
||||||
|
removeMember: 'Hapus papan',
|
||||||
|
save: 'Simpan',
|
||||||
|
showAllAttachments: 'Tampilkan semua lampiran ({{hidden}} tersembunyi)',
|
||||||
|
showDetails: 'Tampilkan detail',
|
||||||
|
showFewerAttachments: 'Tampilkan lampiran lebih sedikit',
|
||||||
|
start: 'Mulai',
|
||||||
|
stop: 'Berhenti',
|
||||||
|
subscribe: 'Berlanggan',
|
||||||
|
unsubscribe: 'Berhenti berlangganan',
|
||||||
|
uploadNewAvatar: 'Unggah avatar baru',
|
||||||
|
uploadNewImage: 'Unggah gambar baru',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import login from './login';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
language: 'id',
|
||||||
|
country: 'id',
|
||||||
|
name: 'Bahasa Indonesia',
|
||||||
|
embeddedLocale: login,
|
||||||
|
};
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
export default {
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
emailOrUsername: 'E-mail atau username',
|
||||||
|
invalidEmailOrUsername: 'E-mail atau username salah',
|
||||||
|
invalidPassword: 'Kata sandi salah',
|
||||||
|
logInToPlanka: 'Masuk ke Planka',
|
||||||
|
noInternetConnection: 'Tidak ada koneksi internet',
|
||||||
|
pageNotFound_title: 'Halaman Tidak Ditemukan',
|
||||||
|
password: 'Kata sandi',
|
||||||
|
projectManagement: 'Manajemen projek',
|
||||||
|
serverConnectionFailed: 'Koneksi server gagal',
|
||||||
|
unknownError: 'Kesalahan tidak diketahui, coba lagi nanti.',
|
||||||
|
useSingleSignOn: 'Gunakan single sign-on',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
logIn: 'Masuk',
|
||||||
|
logInWithSSO: 'Masuk dengan SSO',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -4,19 +4,45 @@ import de from './de';
|
|||||||
import en from './en';
|
import en from './en';
|
||||||
import es from './es';
|
import es from './es';
|
||||||
import fr from './fr';
|
import fr from './fr';
|
||||||
|
import id from './id';
|
||||||
import it from './it';
|
import it from './it';
|
||||||
import ja from './ja';
|
import ja from './ja';
|
||||||
import ko from './ko';
|
import ko from './ko';
|
||||||
|
import nl from './nl';
|
||||||
import pl from './pl';
|
import pl from './pl';
|
||||||
|
import pt from './pt';
|
||||||
import ro from './ro';
|
import ro from './ro';
|
||||||
import ru from './ru';
|
import ru from './ru';
|
||||||
import sk from './sk';
|
import sk from './sk';
|
||||||
import sv from './sv';
|
import sv from './sv';
|
||||||
import tr from './tr';
|
import tr from './tr';
|
||||||
|
import ua from './ua';
|
||||||
import uz from './uz';
|
import uz from './uz';
|
||||||
import zh from './zh';
|
import zh from './zh';
|
||||||
|
|
||||||
const locales = [cs, da, de, en, es, fr, it, ja, ko, pl, ro, ru, sk, sv, tr, uz, zh];
|
const locales = [
|
||||||
|
cs,
|
||||||
|
da,
|
||||||
|
de,
|
||||||
|
en,
|
||||||
|
es,
|
||||||
|
fr,
|
||||||
|
id,
|
||||||
|
it,
|
||||||
|
ja,
|
||||||
|
ko,
|
||||||
|
nl,
|
||||||
|
pl,
|
||||||
|
pt,
|
||||||
|
ro,
|
||||||
|
ru,
|
||||||
|
sk,
|
||||||
|
sv,
|
||||||
|
tr,
|
||||||
|
ua,
|
||||||
|
uz,
|
||||||
|
zh,
|
||||||
|
];
|
||||||
|
|
||||||
export default locales;
|
export default locales;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ export default {
|
|||||||
date: 'd/M/yyyy',
|
date: 'd/M/yyyy',
|
||||||
time: 'p',
|
time: 'p',
|
||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'd MMM',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "d MMMM 'alle' p",
|
||||||
|
fullDate: 'd MMM, y',
|
||||||
|
fullDateTime: "d MMMM, y 'alle' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
@@ -19,7 +21,7 @@ export default {
|
|||||||
administrator: 'Amministratore',
|
administrator: 'Amministratore',
|
||||||
all: 'tutto',
|
all: 'tutto',
|
||||||
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
||||||
'All changes will be automatically saved<br />after connection restored.',
|
'Tutte le modifiche verranno salvate<br />al ripristino della connessione.',
|
||||||
areYouSureYouWantToDeleteThisAttachment: 'Sei sicuro di voler eliminare questo allegato?',
|
areYouSureYouWantToDeleteThisAttachment: 'Sei sicuro di voler eliminare questo allegato?',
|
||||||
areYouSureYouWantToDeleteThisBoard: 'Sei sicuro di voler eliminare questa bacheca?',
|
areYouSureYouWantToDeleteThisBoard: 'Sei sicuro di voler eliminare questa bacheca?',
|
||||||
areYouSureYouWantToDeleteThisCard: 'Sei sicuro di voler eliminare questa card?',
|
areYouSureYouWantToDeleteThisCard: 'Sei sicuro di voler eliminare questa card?',
|
||||||
@@ -48,6 +50,7 @@ export default {
|
|||||||
cardNotFound_title: 'Card non trovata',
|
cardNotFound_title: 'Card non trovata',
|
||||||
cardOrActionAreDeleted: "La card o l'azione vengono eliminate.",
|
cardOrActionAreDeleted: "La card o l'azione vengono eliminate.",
|
||||||
color: 'Colore',
|
color: 'Colore',
|
||||||
|
copy_inline: 'copia',
|
||||||
createBoard_title: 'Crea Bacheca',
|
createBoard_title: 'Crea Bacheca',
|
||||||
createLabel_title: 'Crea Etichetta',
|
createLabel_title: 'Crea Etichetta',
|
||||||
createNewOneOrSelectExistingOne: 'Crea nuovo o seleziona<br />esistente.',
|
createNewOneOrSelectExistingOne: 'Crea nuovo o seleziona<br />esistente.',
|
||||||
@@ -92,8 +95,10 @@ export default {
|
|||||||
filterByLabels_title: 'Filtra per Etichetta',
|
filterByLabels_title: 'Filtra per Etichetta',
|
||||||
filterByMembers_title: 'Filtra per Membro',
|
filterByMembers_title: 'Filtra per Membro',
|
||||||
fromComputer_title: 'Dal Computer',
|
fromComputer_title: 'Dal Computer',
|
||||||
|
fromTrello: 'Da Trello',
|
||||||
general: 'Generale',
|
general: 'Generale',
|
||||||
hours: 'Ore',
|
hours: 'Ore',
|
||||||
|
importBoard_title: 'Importa Board',
|
||||||
invalidCurrentPassword: 'Password corrente non valida',
|
invalidCurrentPassword: 'Password corrente non valida',
|
||||||
labels: 'Etichette',
|
labels: 'Etichette',
|
||||||
language: 'Lingua',
|
language: 'Lingua',
|
||||||
@@ -121,7 +126,7 @@ export default {
|
|||||||
phone: 'Telefono',
|
phone: 'Telefono',
|
||||||
preferences: 'Preferenze',
|
preferences: 'Preferenze',
|
||||||
pressPasteShortcutToAddAttachmentFromClipboard:
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
'Tip: prmi Ctrl-V (Cmd-V on Mac) per aggiungere un allegato dalla clipboard.',
|
'Consiglio: premi Ctrl-V (Cmd-V on Mac) per aggiungere un allegato dalla clipboard.',
|
||||||
project: 'Progetto',
|
project: 'Progetto',
|
||||||
projectNotFound_title: 'Progetto non trovato',
|
projectNotFound_title: 'Progetto non trovato',
|
||||||
removeManager_title: 'Rimuovi Manager',
|
removeManager_title: 'Rimuovi Manager',
|
||||||
@@ -191,6 +196,8 @@ export default {
|
|||||||
deleteTask: 'Elimina task',
|
deleteTask: 'Elimina task',
|
||||||
deleteTask_title: 'Elimina Task',
|
deleteTask_title: 'Elimina Task',
|
||||||
deleteUser: 'Elimina utente',
|
deleteUser: 'Elimina utente',
|
||||||
|
duplicate: 'Duplica',
|
||||||
|
duplicateCard_title: 'Duplica Card',
|
||||||
edit: 'Modifica',
|
edit: 'Modifica',
|
||||||
editDueDate_title: 'Modifica data di scadenza',
|
editDueDate_title: 'Modifica data di scadenza',
|
||||||
editDescription_title: 'Modifica Descrizione',
|
editDescription_title: 'Modifica Descrizione',
|
||||||
@@ -202,9 +209,10 @@ export default {
|
|||||||
editTitle_title: 'Modifica Titolo',
|
editTitle_title: 'Modifica Titolo',
|
||||||
editUsername_title: 'Modifica Username',
|
editUsername_title: 'Modifica Username',
|
||||||
hideDetails: 'Nascondi dettagli',
|
hideDetails: 'Nascondi dettagli',
|
||||||
|
import: 'Importa',
|
||||||
leaveBoard: 'Lascia bacheca',
|
leaveBoard: 'Lascia bacheca',
|
||||||
leaveProject: 'Lascia progetto',
|
leaveProject: 'Lascia progetto',
|
||||||
logOut_title: 'Log Out',
|
logOut_title: 'Disconnettiti',
|
||||||
makeCover_title: 'Crea Cover',
|
makeCover_title: 'Crea Cover',
|
||||||
move: 'Muovi',
|
move: 'Muovi',
|
||||||
moveCard_title: 'Muovi Card',
|
moveCard_title: 'Muovi Card',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMMMd日',
|
longDate: 'MMMMd日',
|
||||||
longDateTime: "MMMMd'日 ' HH:mm",
|
longDateTime: "MMMMd'日 ' HH:mm",
|
||||||
|
fullDate: 'yyyy年M月d日',
|
||||||
|
fullDateTime: 'yyyy年M月d日 HH:mm',
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: "MMMMd'일'",
|
longDate: "MMMMd'일'",
|
||||||
longDateTime: "MMMMd'일 ' a hh시 mm분",
|
longDateTime: "MMMMd'일 ' a hh시 mm분",
|
||||||
|
fullDate: 'yyyy년M월d일',
|
||||||
|
fullDateTime: 'yyyy년M월d일 a hh시 mm분',
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -0,0 +1,242 @@
|
|||||||
|
import dateFns from 'date-fns/locale/nl';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
dateFns,
|
||||||
|
|
||||||
|
format: {
|
||||||
|
date: 'd-M-yyyy',
|
||||||
|
time: 'p',
|
||||||
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
|
longDate: 'd MMM',
|
||||||
|
longDateTime: "d MMMM 'om' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'om' p",
|
||||||
|
},
|
||||||
|
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
aboutPlanka: 'Over Planka',
|
||||||
|
account: 'Account',
|
||||||
|
actions: 'Acties',
|
||||||
|
addAttachment_title: 'Bijlage toevoegen',
|
||||||
|
addComment: 'Opmerking toevoegen',
|
||||||
|
addManager_title: 'Manager toevoegen',
|
||||||
|
addMember_title: 'Lid toevoegen',
|
||||||
|
addUser_title: 'Gebruiker toevoegen',
|
||||||
|
administrator: 'Beheerder',
|
||||||
|
all: 'Alle',
|
||||||
|
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
||||||
|
'Alle wijzigingen worden automatisch opgeslagen<br />nadat de verbinding is hersteld.',
|
||||||
|
areYouSureYouWantToDeleteThisAttachment: 'Weet u zeker dat u deze bijlage wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisBoard: 'Weet u zeker dat u dit bord wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisCard: 'Weet u zeker dat u deze kaart wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisComment: 'Weet u zeker dat u deze opmerking wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisLabel: 'Weet u zeker dat u dit label wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisList: 'Weet u zeker dat u deze lijst wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisProject: 'Weet u zeker dat u dit project wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisTask: 'Weet u zeker dat u deze taak wilt verwijderen?',
|
||||||
|
areYouSureYouWantToDeleteThisUser: 'Weet u zeker dat u deze gebruiker wilt verwijderen?',
|
||||||
|
areYouSureYouWantToLeaveBoard: 'Weet u zeker dat u het bord wilt verlaten?',
|
||||||
|
areYouSureYouWantToLeaveProject: 'Weet u zeker dat u het project wilt verlaten?',
|
||||||
|
areYouSureYouWantToRemoveThisManagerFromProject:
|
||||||
|
'Weet u zeker dat u deze manager uit het project wilt verwijderen?',
|
||||||
|
areYouSureYouWantToRemoveThisMemberFromBoard:
|
||||||
|
'Weet u zeker dat u dit lid uit het bord wilt verwijderen?',
|
||||||
|
attachment: 'Bijlage',
|
||||||
|
attachments: 'Bijlagen',
|
||||||
|
authentication: 'Authenticatie',
|
||||||
|
background: 'Achtergrond',
|
||||||
|
board: 'Bord',
|
||||||
|
boardNotFound_title: 'Bord niet gevonden',
|
||||||
|
canComment: 'Kan opmerking plaatsen',
|
||||||
|
canEditContentOfBoard: 'Kan de inhoud van het bord bewerken.',
|
||||||
|
canOnlyViewBoard: 'Kan alleen het bord bekijken.',
|
||||||
|
cardActions_title: 'Kaartacties',
|
||||||
|
cardNotFound_title: 'Kaart niet gevonden',
|
||||||
|
cardOrActionAreDeleted: 'Kaart of actie zijn verwijderd.',
|
||||||
|
color: 'Kleur',
|
||||||
|
createBoard_title: 'Bord aanmaken',
|
||||||
|
createLabel_title: 'Label aanmaken',
|
||||||
|
createNewOneOrSelectExistingOne: 'Maak een nieuwe of selecteer een bestaande.',
|
||||||
|
createProject_title: 'Project aanmaken',
|
||||||
|
createTextFile_title: 'Tekstbestand aanmaken',
|
||||||
|
currentPassword: 'Huidig wachtwoord',
|
||||||
|
dangerZone_title: 'Gevaarlijke zone',
|
||||||
|
date: 'Datum',
|
||||||
|
dueDate_title: 'Vervaldatum',
|
||||||
|
deleteAttachment_title: 'Bijlage verwijderen',
|
||||||
|
deleteBoard_title: 'Bord verwijderen',
|
||||||
|
deleteCard_title: 'Kaart verwijderen',
|
||||||
|
deleteComment_title: 'Opmerking verwijderen',
|
||||||
|
deleteLabel_title: 'Label verwijderen',
|
||||||
|
deleteList_title: 'Lijst verwijderen',
|
||||||
|
deleteProject_title: 'Project verwijderen',
|
||||||
|
deleteTask_title: 'Taak verwijderen',
|
||||||
|
deleteUser_title: 'Gebruiker verwijderen',
|
||||||
|
description: 'Beschrijving',
|
||||||
|
detectAutomatically: 'Automatisch detecteren',
|
||||||
|
dropFileToUpload: 'Sleep bestand om te uploaden',
|
||||||
|
editor: 'Editor',
|
||||||
|
editAttachment_title: 'Bijlage bewerken',
|
||||||
|
editAvatar_title: 'Avatar bewerken',
|
||||||
|
editBoard_title: 'Bord bewerken',
|
||||||
|
editDueDate_title: 'Vervaldatum bewerken',
|
||||||
|
editEmail_title: 'E-mail bewerken',
|
||||||
|
editInformation_title: 'Informatie bewerken',
|
||||||
|
editLabel_title: 'Label bewerken',
|
||||||
|
editPassword_title: 'Wachtwoord bewerken',
|
||||||
|
editPermissions_title: 'Machtigingen bewerken',
|
||||||
|
editStopwatch_title: 'Stopwatch bewerken',
|
||||||
|
editUsername_title: 'Gebruikersnaam bewerken',
|
||||||
|
email: 'E-mail',
|
||||||
|
emailAlreadyInUse: 'E-mail is al in gebruik',
|
||||||
|
enterCardTitle: 'Voer kaarttitel in... [Ctrl+Enter] om automatisch te openen.',
|
||||||
|
enterDescription: 'Beschrijving invoeren...',
|
||||||
|
enterFilename: 'Bestandsnaam invoeren',
|
||||||
|
enterListTitle: 'Voer lijsttitel in...',
|
||||||
|
enterProjectTitle: 'Voer projecttitel in',
|
||||||
|
enterTaskDescription: 'Taakbeschrijving invoeren...',
|
||||||
|
filterByLabels_title: 'Filteren op labels',
|
||||||
|
filterByMembers_title: 'Filteren op leden',
|
||||||
|
fromComputer_title: 'Van computer',
|
||||||
|
fromTrello: 'Van Trello',
|
||||||
|
general: 'Algemeen',
|
||||||
|
hours: 'Uren',
|
||||||
|
importBoard_title: 'Bord importeren',
|
||||||
|
invalidCurrentPassword: 'Ongeldig huidig wachtwoord',
|
||||||
|
labels: 'Labels',
|
||||||
|
language: 'Taal',
|
||||||
|
leaveBoard_title: 'Bord verlaten',
|
||||||
|
leaveProject_title: 'Project verlaten',
|
||||||
|
list: 'Lijst',
|
||||||
|
listActions_title: 'Lijstacties',
|
||||||
|
managers: 'Managers',
|
||||||
|
members: 'Leden',
|
||||||
|
minutes: 'Minuten',
|
||||||
|
moveCard_title: 'Kaart verplaatsen',
|
||||||
|
name: 'Naam',
|
||||||
|
newEmail: 'Nieuwe e-mail',
|
||||||
|
newPassword: 'Nieuw wachtwoord',
|
||||||
|
newUsername: 'Nieuwe gebruikersnaam',
|
||||||
|
noConnectionToServer: 'Geen verbinding met server',
|
||||||
|
noBoards: 'Geen borden',
|
||||||
|
noLists: 'Geen lijsten',
|
||||||
|
noProjects: 'Geen projecten',
|
||||||
|
notifications: 'Meldingen',
|
||||||
|
noUnreadNotifications: 'Geen ongelezen meldingen.',
|
||||||
|
openBoard_title: 'Bord openen',
|
||||||
|
optional_inline: 'optioneel',
|
||||||
|
organization: 'Organisatie',
|
||||||
|
phone: 'Telefoon',
|
||||||
|
preferences: 'Voorkeuren',
|
||||||
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
|
'Tip: druk op Ctrl-V (Cmd-V op Mac) om een bijlage van het klembord toe te voegen.',
|
||||||
|
project: 'Project',
|
||||||
|
projectNotFound_title: 'Project niet gevonden',
|
||||||
|
removeManager_title: 'Manager verwijderen',
|
||||||
|
removeMember_title: 'Lid verwijderen',
|
||||||
|
searchLabels: 'Labels zoeken...',
|
||||||
|
searchMembers: 'Leden zoeken...',
|
||||||
|
searchUsers: 'Gebruikers zoeken...',
|
||||||
|
seconds: 'Seconden',
|
||||||
|
selectBoard: 'Bord selecteren',
|
||||||
|
selectList: 'Lijst selecteren',
|
||||||
|
selectPermissions_title: 'Machtigingen selecteren',
|
||||||
|
selectProject: 'Project selecteren',
|
||||||
|
settings: 'Instellingen',
|
||||||
|
stopwatch: 'Stopwatch',
|
||||||
|
subscribeToMyOwnCardsByDefault: 'Standaard abonneren op mijn eigen kaarten',
|
||||||
|
taskActions_title: 'Takenacties',
|
||||||
|
tasks: 'Taken',
|
||||||
|
thereIsNoPreviewAvailableForThisAttachment:
|
||||||
|
'Er is geen voorbeeld beschikbaar voor deze bijlage.',
|
||||||
|
time: 'Tijd',
|
||||||
|
title: 'Titel',
|
||||||
|
userActions_title: 'Gebruikersacties',
|
||||||
|
userAddedThisCardToList: '<0>{{user}}</0><1> heeft deze kaart toegevoegd aan {{list}}</1>',
|
||||||
|
userLeftNewCommentToCard:
|
||||||
|
'{{user}} heeft een nieuwe opmerking achtergelaten «{{comment}}» bij <2>{{card}}</2>',
|
||||||
|
userMovedCardFromListToList:
|
||||||
|
'{{user}} heeft <2>{{card}}</2> verplaatst van {{fromList}} naar {{toList}}',
|
||||||
|
userMovedThisCardFromListToList:
|
||||||
|
'<0>{{user}}</0><1> heeft deze kaart verplaatst van {{fromList}} naar {{toList}}</1>',
|
||||||
|
username: 'Gebruikersnaam',
|
||||||
|
usernameAlreadyInUse: 'Gebruikersnaam is al in gebruik',
|
||||||
|
users: 'Gebruikers',
|
||||||
|
version: 'Versie',
|
||||||
|
viewer: 'Kijker',
|
||||||
|
writeComment: 'Schrijf een opmerking...',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
addAnotherCard: 'Voeg nog een kaart toe',
|
||||||
|
addAnotherList: 'Voeg nog een lijst toe',
|
||||||
|
addAnotherTask: 'Voeg nog een taak toe',
|
||||||
|
addCard: 'Kaart toevoegen',
|
||||||
|
addCard_title: 'Kaart toevoegen',
|
||||||
|
addComment: 'Opmerking toevoegen',
|
||||||
|
addList: 'Lijst toevoegen',
|
||||||
|
addMember: 'Lid toevoegen',
|
||||||
|
addMoreDetailedDescription: 'Meer gedetailleerde beschrijving toevoegen',
|
||||||
|
addTask: 'Taak toevoegen',
|
||||||
|
addToCard: 'Toevoegen aan kaart',
|
||||||
|
addUser: 'Gebruiker toevoegen',
|
||||||
|
createBoard: 'Bord aanmaken',
|
||||||
|
createFile: 'Bestand aanmaken',
|
||||||
|
createLabel: 'Label aanmaken',
|
||||||
|
createNewLabel: 'Nieuw label aanmaken',
|
||||||
|
createProject: 'Project aanmaken',
|
||||||
|
delete: 'Verwijderen',
|
||||||
|
deleteAttachment: 'Bijlage verwijderen',
|
||||||
|
deleteAvatar: 'Avatar verwijderen',
|
||||||
|
deleteBoard: 'Bord verwijderen',
|
||||||
|
deleteCard: 'Kaart verwijderen',
|
||||||
|
deleteCard_title: 'Kaart verwijderen',
|
||||||
|
deleteComment: 'Opmerking verwijderen',
|
||||||
|
deleteImage: 'Afbeelding verwijderen',
|
||||||
|
deleteLabel: 'Label verwijderen',
|
||||||
|
deleteList: 'Lijst verwijderen',
|
||||||
|
deleteList_title: 'Lijst verwijderen',
|
||||||
|
deleteProject: 'Project verwijderen',
|
||||||
|
deleteProject_title: 'Project verwijderen',
|
||||||
|
deleteTask: 'Taak verwijderen',
|
||||||
|
deleteTask_title: 'Taak verwijderen',
|
||||||
|
deleteUser: 'Gebruiker verwijderen',
|
||||||
|
edit: 'Bewerken',
|
||||||
|
editDueDate_title: 'Vervaldatum bewerken',
|
||||||
|
editDescription_title: 'Beschrijving bewerken',
|
||||||
|
editEmail_title: 'E-mail bewerken',
|
||||||
|
editInformation_title: 'Informatie bewerken',
|
||||||
|
editPassword_title: 'Wachtwoord bewerken',
|
||||||
|
editPermissions: 'Machtigingen bewerken',
|
||||||
|
editStopwatch_title: 'Stopwatch bewerken',
|
||||||
|
editTitle_title: 'Titel bewerken',
|
||||||
|
editUsername_title: 'Gebruikersnaam bewerken',
|
||||||
|
hideDetails: 'Details verbergen',
|
||||||
|
import: 'Importeren',
|
||||||
|
leaveBoard: 'Bord verlaten',
|
||||||
|
leaveProject: 'Project verlaten',
|
||||||
|
logOut_title: 'Uitloggen',
|
||||||
|
makeCover_title: 'Omslag maken',
|
||||||
|
move: 'Verplaatsen',
|
||||||
|
moveCard_title: 'Kaart verplaatsen',
|
||||||
|
remove: 'Verwijderen',
|
||||||
|
removeBackground: 'Achtergrond verwijderen',
|
||||||
|
removeCover_title: 'Omslag verwijderen',
|
||||||
|
removeFromBoard: 'Verwijderen van bord',
|
||||||
|
removeFromProject: 'Verwijderen van project',
|
||||||
|
removeManager: 'Manager verwijderen',
|
||||||
|
removeMember: 'Lid verwijderen',
|
||||||
|
save: 'Opslaan',
|
||||||
|
showAllAttachments: 'Alle bijlagen weergeven ({{hidden}} verbergen)',
|
||||||
|
showDetails: 'Details weergeven',
|
||||||
|
showFewerAttachments: 'Minder bijlagen weergeven',
|
||||||
|
start: 'Start',
|
||||||
|
stop: 'Stop',
|
||||||
|
subscribe: 'Abonneren',
|
||||||
|
unsubscribe: 'Afmelden',
|
||||||
|
uploadNewAvatar: 'Nieuwe avatar uploaden',
|
||||||
|
uploadNewImage: 'Nieuwe afbeelding uploaden',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import login from './login';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
language: 'nl',
|
||||||
|
country: 'nl',
|
||||||
|
name: 'Nederlands',
|
||||||
|
embeddedLocale: login,
|
||||||
|
};
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
export default {
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
emailOrUsername: 'E-mail of gebruikersnaam',
|
||||||
|
invalidEmailOrUsername: 'Ongeldig e-mailadres of gebruikersnaam',
|
||||||
|
invalidPassword: 'Ongeldig wachtwoord',
|
||||||
|
logInToPlanka: 'Inloggen bij Planka',
|
||||||
|
noInternetConnection: 'Geen internetverbinding',
|
||||||
|
pageNotFound_title: 'Pagina niet gevonden',
|
||||||
|
password: 'Wachtwoord',
|
||||||
|
projectManagement: 'Projectbeheer',
|
||||||
|
serverConnectionFailed: 'Verbinding met de server mislukt',
|
||||||
|
unknownError: 'Onbekende fout, probeer het later opnieuw',
|
||||||
|
useSingleSignOn: 'Gebruik single sign-on',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
logIn: 'Inloggen',
|
||||||
|
logInWithSSO: 'Inloggen met SSO',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'o' p",
|
longDateTime: "d MMMM 'o' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'o' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -0,0 +1,241 @@
|
|||||||
|
import dateFns from 'date-fns/locale/pt-BR';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
dateFns,
|
||||||
|
|
||||||
|
format: {
|
||||||
|
date: 'dd/MM/yyyy',
|
||||||
|
time: 'p',
|
||||||
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
|
longDate: 'd MMM',
|
||||||
|
longDateTime: "d 'de' MMMM 'às' p",
|
||||||
|
fullDate: 'd MMM, y',
|
||||||
|
fullDateTime: "d 'de' MMMM, y 'às' p",
|
||||||
|
},
|
||||||
|
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
aboutPlanka: 'Sobre o Planka',
|
||||||
|
account: 'Conta',
|
||||||
|
actions: 'Ações',
|
||||||
|
addAttachment_title: 'Adicionar Anexo',
|
||||||
|
addComment: 'Adicionar comentário',
|
||||||
|
addManager_title: 'Adicionar Gerente',
|
||||||
|
addMember_title: 'Adicionar Membro',
|
||||||
|
addUser_title: 'Adicionar Usuário',
|
||||||
|
administrator: 'Administrador',
|
||||||
|
all: 'Todos',
|
||||||
|
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
||||||
|
'Todas as alterações serão salvas automaticamente<br />após a conexão ser restaurada.',
|
||||||
|
areYouSureYouWantToDeleteThisAttachment: 'Tem certeza de que deseja excluir este anexo?',
|
||||||
|
areYouSureYouWantToDeleteThisBoard: 'Tem certeza de que deseja excluir este quadro?',
|
||||||
|
areYouSureYouWantToDeleteThisCard: 'Tem certeza de que deseja excluir este cartão?',
|
||||||
|
areYouSureYouWantToDeleteThisComment: 'Tem certeza de que deseja excluir este comentário?',
|
||||||
|
areYouSureYouWantToDeleteThisLabel: 'Tem certeza de que deseja excluir este rótulo?',
|
||||||
|
areYouSureYouWantToDeleteThisList: 'Tem certeza de que deseja excluir esta lista?',
|
||||||
|
areYouSureYouWantToDeleteThisProject: 'Tem certeza de que deseja excluir este projeto?',
|
||||||
|
areYouSureYouWantToDeleteThisTask: 'Tem certeza de que deseja excluir esta tarefa?',
|
||||||
|
areYouSureYouWantToDeleteThisUser: 'Tem certeza de que deseja excluir este usuário?',
|
||||||
|
areYouSureYouWantToLeaveBoard: 'Tem certeza de que deseja sair do quadro?',
|
||||||
|
areYouSureYouWantToLeaveProject: 'Tem certeza de que deseja sair do projeto?',
|
||||||
|
areYouSureYouWantToRemoveThisManagerFromProject:
|
||||||
|
'Tem certeza de que deseja remover este gerente do projeto?',
|
||||||
|
areYouSureYouWantToRemoveThisMemberFromBoard:
|
||||||
|
'Tem certeza de que deseja remover este membro do quadro?',
|
||||||
|
attachment: 'Anexo',
|
||||||
|
attachments: 'Anexos',
|
||||||
|
authentication: 'Autenticação',
|
||||||
|
background: 'Fundo',
|
||||||
|
board: 'Quadro',
|
||||||
|
boardNotFound_title: 'Quadro não encontrado',
|
||||||
|
canComment: 'Pode comentar',
|
||||||
|
canEditContentOfBoard: 'Pode editar o conteúdo do quadro.',
|
||||||
|
canOnlyViewBoard: 'Só pode visualizar o quadro.',
|
||||||
|
cardActions_title: 'Ações do Cartão',
|
||||||
|
cardNotFound_title: 'Cartão não encontrado',
|
||||||
|
cardOrActionAreDeleted: 'Cartão ou ação foram excluídos.',
|
||||||
|
color: 'Cor',
|
||||||
|
createBoard_title: 'Criar Quadro',
|
||||||
|
createLabel_title: 'Criar Rótulo',
|
||||||
|
createNewOneOrSelectExistingOne: 'Criar um novo ou selecionar<br />um existente.',
|
||||||
|
createProject_title: 'Criar Projeto',
|
||||||
|
createTextFile_title: 'Criar Arquivo de Texto',
|
||||||
|
currentPassword: 'Senha atual',
|
||||||
|
dangerZone_title: 'Zona de Perigo',
|
||||||
|
date: 'Data',
|
||||||
|
dueDate_title: 'Data de Vencimento',
|
||||||
|
deleteAttachment_title: 'Excluir Anexo',
|
||||||
|
deleteBoard_title: 'Excluir Quadro',
|
||||||
|
deleteCard_title: 'Excluir Cartão',
|
||||||
|
deleteComment_title: 'Excluir Comentário',
|
||||||
|
deleteLabel_title: 'Excluir Rótulo',
|
||||||
|
deleteList_title: 'Excluir Lista',
|
||||||
|
deleteProject_title: 'Excluir Projeto',
|
||||||
|
deleteTask_title: 'Excluir Tarefa',
|
||||||
|
deleteUser_title: 'Excluir Usuário',
|
||||||
|
description: 'Descrição',
|
||||||
|
detectAutomatically: 'Detectar automaticamente',
|
||||||
|
dropFileToUpload: 'Solte o arquivo para enviar',
|
||||||
|
editor: 'Editor',
|
||||||
|
editAttachment_title: 'Editar Anexo',
|
||||||
|
editAvatar_title: 'Editar Avatar',
|
||||||
|
editBoard_title: 'Editar Quadro',
|
||||||
|
editDueDate_title: 'Editar Data de Vencimento',
|
||||||
|
editEmail_title: 'Editar E-mail',
|
||||||
|
editInformation_title: 'Editar Informações',
|
||||||
|
editLabel_title: 'Editar Rótulo',
|
||||||
|
editPassword_title: 'Editar Senha',
|
||||||
|
editPermissions_title: 'Editar Permissões',
|
||||||
|
editStopwatch_title: 'Editar Cronômetro',
|
||||||
|
editUsername_title: 'Editar Nome de Usuário',
|
||||||
|
email: 'E-mail',
|
||||||
|
emailAlreadyInUse: 'E-mail já está em uso',
|
||||||
|
enterCardTitle: 'Digite o título do cartão... [Ctrl+Enter] para abrir automaticamente.',
|
||||||
|
enterDescription: 'Digite a descrição...',
|
||||||
|
enterFilename: 'Digite o nome do arquivo',
|
||||||
|
enterListTitle: 'Digite o título da lista...',
|
||||||
|
enterProjectTitle: 'Digite o título do projeto',
|
||||||
|
enterTaskDescription: 'Digite a descrição da tarefa...',
|
||||||
|
filterByLabels_title: 'Filtrar por Rótulos',
|
||||||
|
filterByMembers_title: 'Filtrar por Membros',
|
||||||
|
fromComputer_title: 'Do Computador',
|
||||||
|
fromTrello: 'Do Trello',
|
||||||
|
general: 'Geral',
|
||||||
|
hours: 'Horas',
|
||||||
|
importBoard_title: 'Importar Quadro',
|
||||||
|
invalidCurrentPassword: 'Senha atual inválida',
|
||||||
|
labels: 'Rótulos',
|
||||||
|
language: 'Idioma',
|
||||||
|
leaveBoard_title: 'Sair do Quadro',
|
||||||
|
leaveProject_title: 'Sair do Projeto',
|
||||||
|
list: 'Lista',
|
||||||
|
listActions_title: 'Ações da Lista',
|
||||||
|
managers: 'Gerentes',
|
||||||
|
members: 'Membros',
|
||||||
|
minutes: 'Minutos',
|
||||||
|
moveCard_title: 'Mover Cartão',
|
||||||
|
name: 'Nome',
|
||||||
|
newEmail: 'Novo e-mail',
|
||||||
|
newPassword: 'Nova senha',
|
||||||
|
newUsername: 'Novo nome de usuário',
|
||||||
|
noConnectionToServer: 'Sem conexão com o servidor',
|
||||||
|
noBoards: 'Sem quadros',
|
||||||
|
noLists: 'Sem listas',
|
||||||
|
noProjects: 'Sem projetos',
|
||||||
|
notifications: 'Notificações',
|
||||||
|
noUnreadNotifications: 'Nenhuma notificação não lida.',
|
||||||
|
openBoard_title: 'Abrir Quadro',
|
||||||
|
optional_inline: 'opcional',
|
||||||
|
organization: 'Organização',
|
||||||
|
phone: 'Telefone',
|
||||||
|
preferences: 'Preferências',
|
||||||
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
|
'Dica: pressione Ctrl-V (Cmd-V no Mac) para adicionar um anexo da área de transferência.',
|
||||||
|
project: 'Projeto',
|
||||||
|
projectNotFound_title: 'Projeto não encontrado',
|
||||||
|
removeManager_title: 'Remover Gerente',
|
||||||
|
removeMember_title: 'Remover Membro',
|
||||||
|
searchLabels: 'Pesquisar rótulos...',
|
||||||
|
searchMembers: 'Pesquisar membros...',
|
||||||
|
searchUsers: 'Pesquisar usuários...',
|
||||||
|
seconds: 'Segundos',
|
||||||
|
selectBoard: 'Selecionar quadro',
|
||||||
|
selectList: 'Selecionar lista',
|
||||||
|
selectPermissions_title: 'Selecionar Permissões',
|
||||||
|
selectProject: 'Selecionar projeto',
|
||||||
|
settings: 'Configurações',
|
||||||
|
stopwatch: 'Cronômetro',
|
||||||
|
subscribeToMyOwnCardsByDefault: 'Inscrever-se automaticamente em meus próprios cartões',
|
||||||
|
taskActions_title: 'Ações da Tarefa',
|
||||||
|
tasks: 'Tarefas',
|
||||||
|
thereIsNoPreviewAvailableForThisAttachment:
|
||||||
|
'Não há pré-visualização disponível para este anexo.',
|
||||||
|
time: 'Tempo',
|
||||||
|
title: 'Título',
|
||||||
|
userActions_title: 'Ações do Usuário',
|
||||||
|
userAddedThisCardToList: '<0>{{user}}</0><1> adicionou este cartão a {{list}}</1>',
|
||||||
|
userLeftNewCommentToCard:
|
||||||
|
'{{user}} deixou um novo comentário «{{comment}}» em <2>{{card}}</2>',
|
||||||
|
userMovedCardFromListToList: '{{user}} moveu <2>{{card}}</2> de {{fromList}} para {{toList}}',
|
||||||
|
userMovedThisCardFromListToList:
|
||||||
|
'<0>{{user}}</0><1> moveu este cartão de {{fromList}} para {{toList}}</1>',
|
||||||
|
username: 'Nome de usuário',
|
||||||
|
usernameAlreadyInUse: 'Nome de usuário já está em uso',
|
||||||
|
users: 'Usuários',
|
||||||
|
version: 'Versão',
|
||||||
|
viewer: 'Visualizador',
|
||||||
|
writeComment: 'Escreva um comentário...',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
addAnotherCard: 'Adicionar outro cartão',
|
||||||
|
addAnotherList: 'Adicionar outra lista',
|
||||||
|
addAnotherTask: 'Adicionar outra tarefa',
|
||||||
|
addCard: 'Adicionar cartão',
|
||||||
|
addCard_title: 'Adicionar Cartão',
|
||||||
|
addComment: 'Adicionar comentário',
|
||||||
|
addList: 'Adicionar lista',
|
||||||
|
addMember: 'Adicionar membro',
|
||||||
|
addMoreDetailedDescription: 'Adicionar descrição mais detalhada',
|
||||||
|
addTask: 'Adicionar tarefa',
|
||||||
|
addToCard: 'Adicionar ao cartão',
|
||||||
|
addUser: 'Adicionar usuário',
|
||||||
|
createBoard: 'Criar quadro',
|
||||||
|
createFile: 'Criar arquivo',
|
||||||
|
createLabel: 'Criar rótulo',
|
||||||
|
createNewLabel: 'Criar novo rótulo',
|
||||||
|
createProject: 'Criar projeto',
|
||||||
|
delete: 'Excluir',
|
||||||
|
deleteAttachment: 'Excluir anexo',
|
||||||
|
deleteAvatar: 'Excluir avatar',
|
||||||
|
deleteBoard: 'Excluir quadro',
|
||||||
|
deleteCard: 'Excluir cartão',
|
||||||
|
deleteCard_title: 'Excluir Cartão',
|
||||||
|
deleteComment: 'Excluir comentário',
|
||||||
|
deleteImage: 'Excluir imagem',
|
||||||
|
deleteLabel: 'Excluir rótulo',
|
||||||
|
deleteList: 'Excluir lista',
|
||||||
|
deleteList_title: 'Excluir Lista',
|
||||||
|
deleteProject: 'Excluir projeto',
|
||||||
|
deleteProject_title: 'Excluir Projeto',
|
||||||
|
deleteTask: 'Excluir tarefa',
|
||||||
|
deleteTask_title: 'Excluir Tarefa',
|
||||||
|
deleteUser: 'Excluir usuário',
|
||||||
|
edit: 'Editar',
|
||||||
|
editDueDate_title: 'Editar Data de Vencimento',
|
||||||
|
editDescription_title: 'Editar Descrição',
|
||||||
|
editEmail_title: 'Editar E-mail',
|
||||||
|
editInformation_title: 'Editar Informações',
|
||||||
|
editPassword_title: 'Editar Senha',
|
||||||
|
editPermissions: 'Editar permissões',
|
||||||
|
editStopwatch_title: 'Editar Cronômetro',
|
||||||
|
editTitle_title: 'Editar Título',
|
||||||
|
editUsername_title: 'Editar Nome de Usuário',
|
||||||
|
hideDetails: 'Ocultar detalhes',
|
||||||
|
import: 'Importar',
|
||||||
|
leaveBoard: 'Sair do quadro',
|
||||||
|
leaveProject: 'Sair do projeto',
|
||||||
|
logOut_title: 'Sair',
|
||||||
|
makeCover_title: 'Tornar Capa',
|
||||||
|
move: 'Mover',
|
||||||
|
moveCard_title: 'Mover Cartão',
|
||||||
|
remove: 'Remover',
|
||||||
|
removeBackground: 'Remover fundo',
|
||||||
|
removeCover_title: 'Remover Capa',
|
||||||
|
removeFromBoard: 'Remover do quadro',
|
||||||
|
removeFromProject: 'Remover do projeto',
|
||||||
|
removeManager: 'Remover gerente',
|
||||||
|
removeMember: 'Remover membro',
|
||||||
|
save: 'Salvar',
|
||||||
|
showAllAttachments: 'Mostrar todos os anexos ({{hidden}} ocultos)',
|
||||||
|
showDetails: 'Mostrar detalhes',
|
||||||
|
showFewerAttachments: 'Mostrar menos anexos',
|
||||||
|
start: 'Iniciar',
|
||||||
|
stop: 'Parar',
|
||||||
|
subscribe: 'Inscrever-se',
|
||||||
|
unsubscribe: 'Cancelar inscrição',
|
||||||
|
uploadNewAvatar: 'Enviar novo avatar',
|
||||||
|
uploadNewImage: 'Enviar nova imagem',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import login from './login';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
language: 'pt',
|
||||||
|
country: 'br',
|
||||||
|
name: 'Português',
|
||||||
|
embeddedLocale: login,
|
||||||
|
};
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
export default {
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
emailOrUsername: 'E-mail ou nome de usuário',
|
||||||
|
invalidEmailOrUsername: 'E-mail ou nome de usuário inválido',
|
||||||
|
invalidPassword: 'Senha inválida',
|
||||||
|
logInToPlanka: 'Entrar no Planka',
|
||||||
|
noInternetConnection: 'Sem conexão com a internet',
|
||||||
|
pageNotFound_title: 'Página não encontrada',
|
||||||
|
password: 'Senha',
|
||||||
|
projectManagement: 'Gerenciamento de projetos',
|
||||||
|
serverConnectionFailed: 'Falha na conexão com o servidor',
|
||||||
|
unknownError: 'Erro desconhecido, tente novamente mais tarde',
|
||||||
|
useSingleSignOn: 'Usar login único',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
logIn: 'Entrar',
|
||||||
|
logInWithSSO: 'Entrar com SSO',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'в' p",
|
longDateTime: "d MMMM 'в' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'в' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'в' p",
|
longDateTime: "d MMMM 'в' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'в' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
@@ -197,6 +199,8 @@ export default {
|
|||||||
deleteProject: 'Удалить проект',
|
deleteProject: 'Удалить проект',
|
||||||
deleteTask: 'Удалить задачу',
|
deleteTask: 'Удалить задачу',
|
||||||
deleteUser: 'Удалить пользователя',
|
deleteUser: 'Удалить пользователя',
|
||||||
|
duplicate: 'Дублировать',
|
||||||
|
duplicateCard_title: 'Дублировать карточку',
|
||||||
edit: 'Изменить',
|
edit: 'Изменить',
|
||||||
editBackground: 'Изменить фон',
|
editBackground: 'Изменить фон',
|
||||||
editDueDate: 'Изменить срок',
|
editDueDate: 'Изменить срок',
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd MMM',
|
longDate: 'd MMM',
|
||||||
longDateTime: "d MMMM 'v' p",
|
longDateTime: "d MMMM 'v' p",
|
||||||
|
fullDate: 'd MMM y',
|
||||||
|
fullDateTime: "d MMMM y 'v' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "MMMM d 'at' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'at' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'd. MMM',
|
longDate: 'd. MMM',
|
||||||
longDateTime: "d. MMMM 'Saat' p",
|
longDateTime: "d. MMMM 'Saat' p",
|
||||||
|
fullDate: 'd. MMM. y',
|
||||||
|
fullDateTime: "d. MMMM. y 'Saat' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -0,0 +1,237 @@
|
|||||||
|
export default {
|
||||||
|
format: {
|
||||||
|
date: 'd/M/yyyy',
|
||||||
|
time: 'p',
|
||||||
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
|
longDate: 'd MMMM',
|
||||||
|
longDateTime: "d MMMM 'о' p",
|
||||||
|
fullDate: 'd MMMM y',
|
||||||
|
fullDateTime: "d MMMM y 'о' p",
|
||||||
|
},
|
||||||
|
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
aboutPlanka: 'Про Planka',
|
||||||
|
account: 'Обліковий запис',
|
||||||
|
actions: 'Дії',
|
||||||
|
addAttachment_title: 'Додати Вкладення',
|
||||||
|
addComment: 'Додати коментар',
|
||||||
|
addManager_title: 'Додати Менеджера',
|
||||||
|
addMember_title: 'Додати Учасника',
|
||||||
|
addUser_title: 'Додати Користувача',
|
||||||
|
administrator: 'Адміністратор',
|
||||||
|
all: 'Все',
|
||||||
|
allChangesWillBeAutomaticallySavedAfterConnectionRestored:
|
||||||
|
'Всі зміни будуть автоматично збережені<br />після відновлення підключення.',
|
||||||
|
areYouSureYouWantToDeleteThisAttachment: 'Ви впевнені, що хочете видалити це вкладення?',
|
||||||
|
areYouSureYouWantToDeleteThisBoard: 'Ви впевнені, що хочете видалити цю дошку?',
|
||||||
|
areYouSureYouWantToDeleteThisCard: 'Ви впевнені, що хочете видалити цю картку?',
|
||||||
|
areYouSureYouWantToDeleteThisComment: 'Ви впевнені, що хочете видалити цей коментар?',
|
||||||
|
areYouSureYouWantToDeleteThisLabel: 'Ви впевнені, що хочете видалити цю мітку?',
|
||||||
|
areYouSureYouWantToDeleteThisList: 'Ви впевнені, що хочете видалити цей список?',
|
||||||
|
areYouSureYouWantToDeleteThisProject: 'Ви впевнені, що хочете видалити цей проект?',
|
||||||
|
areYouSureYouWantToDeleteThisTask: 'Ви впевнені, що хочете видалити це завдання?',
|
||||||
|
areYouSureYouWantToDeleteThisUser: 'Ви впевнені, що хочете видалити цього користувача?',
|
||||||
|
areYouSureYouWantToLeaveBoard: 'Ви впевнені, що хочете залишити дошку?',
|
||||||
|
areYouSureYouWantToLeaveProject: 'Ви впевнені, що хочете залишити проект?',
|
||||||
|
areYouSureYouWantToRemoveThisManagerFromProject:
|
||||||
|
'Ви впевнені, що хочете видалити цього менеджера з проекту?',
|
||||||
|
areYouSureYouWantToRemoveThisMemberFromBoard:
|
||||||
|
'Ви впевнені, що хочете видалити цього учасника з дошки?',
|
||||||
|
attachment: 'Вкладення',
|
||||||
|
attachments: 'Вкладення',
|
||||||
|
authentication: 'Аутентифікація',
|
||||||
|
background: 'Фон',
|
||||||
|
board: 'Дошка',
|
||||||
|
boardNotFound_title: 'Дошку не знайдено',
|
||||||
|
canComment: 'Може коментувати',
|
||||||
|
canEditContentOfBoard: 'Має право редагувати вміст дошки.',
|
||||||
|
canOnlyViewBoard: 'Може лише переглядати дошку.',
|
||||||
|
cardActions_title: 'Дії з карткою',
|
||||||
|
cardNotFound_title: 'Картку не знайдено',
|
||||||
|
cardOrActionAreDeleted: 'Картка чи дія видалена.',
|
||||||
|
color: 'Колір',
|
||||||
|
createBoard_title: 'Створити Дошку',
|
||||||
|
createLabel_title: 'Створити Мітку',
|
||||||
|
createNewOneOrSelectExistingOne: 'Створіть нову або виберіть<br />існуючу.',
|
||||||
|
createProject_title: 'Створити Проект',
|
||||||
|
createTextFile_title: 'Створити Текстовий Файл',
|
||||||
|
currentPassword: 'Поточний пароль',
|
||||||
|
dangerZone_title: 'Небезпечна Зона',
|
||||||
|
date: 'Дата',
|
||||||
|
dueDate_title: 'Крайній Термін',
|
||||||
|
deleteAttachment_title: 'Видалити Вкладення',
|
||||||
|
deleteBoard_title: 'Видалити Дошку',
|
||||||
|
deleteCard_title: 'Видалити Картку',
|
||||||
|
deleteComment_title: 'Видалити Коментар',
|
||||||
|
deleteLabel_title: 'Видалити Мітку',
|
||||||
|
deleteList_title: 'Видалити Список',
|
||||||
|
deleteProject_title: 'Видалити Проект',
|
||||||
|
deleteTask_title: 'Видалити Завдання',
|
||||||
|
deleteUser_title: 'Видалити Користувача',
|
||||||
|
description: 'Опис',
|
||||||
|
detectAutomatically: 'Визначити автоматично',
|
||||||
|
dropFileToUpload: 'Перетягніть файл для завантаження',
|
||||||
|
editor: 'Редактор',
|
||||||
|
editAttachment_title: 'Редагувати Вкладення',
|
||||||
|
editAvatar_title: 'Редагувати Аватар',
|
||||||
|
editBoard_title: 'Редагувати Дошку',
|
||||||
|
editDueDate_title: 'Редагувати Крайній Термін',
|
||||||
|
editEmail_title: 'Редагувати Електронну пошту',
|
||||||
|
editInformation_title: 'Редагувати Інформацію',
|
||||||
|
editLabel_title: 'Редагувати Мітку',
|
||||||
|
editPassword_title: 'Редагувати Пароль',
|
||||||
|
editPermissions_title: 'Редагувати Дозволи',
|
||||||
|
editStopwatch_title: 'Редагувати Секундомір',
|
||||||
|
editUsername_title: "Редагувати Ім'я користувача",
|
||||||
|
email: 'Електронна пошта',
|
||||||
|
emailAlreadyInUse: 'Електронна пошта вже використовується',
|
||||||
|
enterCardTitle: 'Введіть назву картки... [Ctrl+Enter] для автоматичного відкриття.',
|
||||||
|
enterDescription: 'Введіть опис...',
|
||||||
|
enterFilename: "Введіть ім'я файлу",
|
||||||
|
enterListTitle: 'Введіть назву списку...',
|
||||||
|
enterProjectTitle: 'Введіть назву проекту',
|
||||||
|
enterTaskDescription: 'Введіть опис завдання...',
|
||||||
|
filterByLabels_title: 'Фільтрувати за Мітками',
|
||||||
|
filterByMembers_title: 'Фільтрувати за Учасниками',
|
||||||
|
fromComputer_title: "З комп'ютера",
|
||||||
|
fromTrello: 'З Trello',
|
||||||
|
general: 'Загальне',
|
||||||
|
hours: 'Години',
|
||||||
|
importBoard_title: 'Імпортувати Дошку',
|
||||||
|
invalidCurrentPassword: 'Невірний поточний пароль',
|
||||||
|
labels: 'Мітки',
|
||||||
|
language: 'Мова',
|
||||||
|
leaveBoard_title: 'Покинути Дошку',
|
||||||
|
leaveProject_title: 'Покинути Проект',
|
||||||
|
list: 'Список',
|
||||||
|
listActions_title: 'Дії зі Списком',
|
||||||
|
managers: 'Менеджери',
|
||||||
|
members: 'Учасники',
|
||||||
|
minutes: 'Хвилини',
|
||||||
|
moveCard_title: 'Перемістити Картку',
|
||||||
|
name: 'Назва',
|
||||||
|
newEmail: 'Нова електронна пошта',
|
||||||
|
newPassword: 'Новий пароль',
|
||||||
|
newUsername: "Нове ім'я користувача",
|
||||||
|
noConnectionToServer: 'Відсутнє підключення до сервера',
|
||||||
|
noBoards: 'Немає дошок',
|
||||||
|
noLists: 'Немає списків',
|
||||||
|
noProjects: 'Немає проектів',
|
||||||
|
notifications: 'Сповіщення',
|
||||||
|
noUnreadNotifications: 'Немає непрочитаних сповіщень.',
|
||||||
|
openBoard_title: 'Відкрити Дошку',
|
||||||
|
optional_inline: 'опціонально',
|
||||||
|
organization: 'Організація',
|
||||||
|
phone: 'Телефон',
|
||||||
|
preferences: 'Уподобання',
|
||||||
|
pressPasteShortcutToAddAttachmentFromClipboard:
|
||||||
|
'Порада: натисніть Ctrl-V (⌘V на Mac), щоб додати вкладення з буфера обміну.',
|
||||||
|
project: 'Проект',
|
||||||
|
projectNotFound_title: 'Проект не знайдено',
|
||||||
|
removeManager_title: 'Видалити Менеджера',
|
||||||
|
removeMember_title: 'Видалити Учасника',
|
||||||
|
searchLabels: 'Пошук міток...',
|
||||||
|
searchMembers: 'Пошук учасників...',
|
||||||
|
searchUsers: 'Пошук користувачів...',
|
||||||
|
seconds: 'Секунди',
|
||||||
|
selectBoard: 'Вибрати дошку',
|
||||||
|
selectList: 'Вибрати список',
|
||||||
|
selectPermissions_title: 'Вибрати Дозволи',
|
||||||
|
selectProject: 'Вибрати проект',
|
||||||
|
settings: 'Налаштування',
|
||||||
|
stopwatch: 'Секундомір',
|
||||||
|
subscribeToMyOwnCardsByDefault: 'Підписатися на свої картки за замовчуванням',
|
||||||
|
taskActions_title: 'Дії з завданням',
|
||||||
|
tasks: 'Завдання',
|
||||||
|
thereIsNoPreviewAvailableForThisAttachment: 'Для цього вкладення немає доступного перегляду.',
|
||||||
|
time: 'Час',
|
||||||
|
title: 'Назва',
|
||||||
|
userActions_title: 'Дії користувача',
|
||||||
|
userAddedThisCardToList: '<0>{{user}}</0><1> додав(ла) цю картку до {{list}}</1>',
|
||||||
|
userLeftNewCommentToCard:
|
||||||
|
'{{user}} залишив(ла) новий коментар «{{comment}}» до <2>{{card}}</2>',
|
||||||
|
userMovedCardFromListToList:
|
||||||
|
'{{user}} перемістив(ла) <2>{{card}}</2> з {{fromList}} в {{toList}}',
|
||||||
|
userMovedThisCardFromListToList:
|
||||||
|
'<0>{{user}}</0><1> перемістив(ла) цю картку з {{fromList}} в {{toList}}</1>',
|
||||||
|
username: "Ім'я користувача",
|
||||||
|
usernameAlreadyInUse: "Ім'я користувача вже використовується",
|
||||||
|
users: 'Користувачі',
|
||||||
|
version: 'Версія',
|
||||||
|
viewer: 'Переглядач',
|
||||||
|
writeComment: 'Написати коментар...',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
addAnotherCard: 'Додати іншу картку',
|
||||||
|
addAnotherList: 'Додати інший список',
|
||||||
|
addAnotherTask: 'Додати інше завдання',
|
||||||
|
addCard: 'Додати картку',
|
||||||
|
addCard_title: 'Додати Картку',
|
||||||
|
addComment: 'Додати коментар',
|
||||||
|
addList: 'Додати список',
|
||||||
|
addMember: 'Додати учасника',
|
||||||
|
addMoreDetailedDescription: 'Додати більш детальний опис',
|
||||||
|
addTask: 'Додати завдання',
|
||||||
|
addToCard: 'Додати до картки',
|
||||||
|
addUser: 'Додати користувача',
|
||||||
|
createBoard: 'Створити дошку',
|
||||||
|
createFile: 'Створити файл',
|
||||||
|
createLabel: 'Створити мітку',
|
||||||
|
createNewLabel: 'Створити нову мітку',
|
||||||
|
createProject: 'Створити проект',
|
||||||
|
delete: 'Видалити',
|
||||||
|
deleteAttachment: 'Видалити вкладення',
|
||||||
|
deleteAvatar: 'Видалити аватар',
|
||||||
|
deleteBoard: 'Видалити дошку',
|
||||||
|
deleteCard: 'Видалити картку',
|
||||||
|
deleteCard_title: 'Видалити Картку',
|
||||||
|
deleteComment: 'Видалити коментар',
|
||||||
|
deleteImage: 'Видалити зображення',
|
||||||
|
deleteLabel: 'Видалити мітку',
|
||||||
|
deleteList: 'Видалити список',
|
||||||
|
deleteList_title: 'Видалити Список',
|
||||||
|
deleteProject: 'Видалити проект',
|
||||||
|
deleteProject_title: 'Видалити Проект',
|
||||||
|
deleteTask: 'Видалити завдання',
|
||||||
|
deleteTask_title: 'Видалити Завдання',
|
||||||
|
deleteUser: 'Видалити користувача',
|
||||||
|
edit: 'Редагувати',
|
||||||
|
editDueDate_title: 'Редагувати термін виконання',
|
||||||
|
editDescription_title: 'Редагувати опис',
|
||||||
|
editEmail_title: 'Редагувати E-mail',
|
||||||
|
editInformation_title: 'Редагувати інформацію',
|
||||||
|
editPassword_title: 'Редагувати пароль',
|
||||||
|
editPermissions: 'Редагувати дозволи',
|
||||||
|
editStopwatch_title: 'Редагувати секундомір',
|
||||||
|
editTitle_title: 'Редагувати Заголовок',
|
||||||
|
editUsername_title: "Редагувати Ім'я користувача",
|
||||||
|
hideDetails: 'Сховати деталі',
|
||||||
|
import: 'Імпортувати',
|
||||||
|
leaveBoard: 'Залишити дошку',
|
||||||
|
leaveProject: 'Залишити проект',
|
||||||
|
logOut_title: 'Вийти',
|
||||||
|
makeCover_title: 'Встановити обкладинку',
|
||||||
|
move: 'Перемістити',
|
||||||
|
moveCard_title: 'Перемістити Картку',
|
||||||
|
remove: 'Видалити',
|
||||||
|
removeBackground: 'Видалити фон',
|
||||||
|
removeCover_title: 'Видалити обкладинку',
|
||||||
|
removeFromBoard: 'Вилучити з дошки',
|
||||||
|
removeFromProject: 'Вилучити з проекту',
|
||||||
|
removeManager: 'Вилучити керівника',
|
||||||
|
removeMember: 'Вилучити учасника',
|
||||||
|
save: 'Зберегти',
|
||||||
|
showAllAttachments: 'Показати всі вкладення ({{hidden}} приховані)',
|
||||||
|
showDetails: 'Показати деталі',
|
||||||
|
showFewerAttachments: 'Показати менше вкладень',
|
||||||
|
start: 'Почати',
|
||||||
|
stop: 'Зупинити',
|
||||||
|
subscribe: 'Підписатися',
|
||||||
|
unsubscribe: 'Відписатися',
|
||||||
|
uploadNewAvatar: 'Завантажити новий аватар',
|
||||||
|
uploadNewImage: 'Завантажити нове зображення',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import login from './login';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
language: 'ua',
|
||||||
|
country: 'ua',
|
||||||
|
name: 'Українська',
|
||||||
|
embeddedLocale: login,
|
||||||
|
};
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
export default {
|
||||||
|
translation: {
|
||||||
|
common: {
|
||||||
|
emailOrUsername: "Електронна пошта або ім'я користувача",
|
||||||
|
invalidEmailOrUsername: "Неправильна електронна пошта або ім'я користувача",
|
||||||
|
invalidPassword: 'Неправильний пароль',
|
||||||
|
logInToPlanka: 'Увійти в Planka',
|
||||||
|
noInternetConnection: 'Відсутнє підключення до Інтернету',
|
||||||
|
pageNotFound_title: 'Сторінку не знайдено',
|
||||||
|
password: 'Пароль',
|
||||||
|
projectManagement: 'Управління проектами',
|
||||||
|
serverConnectionFailed: 'Не вдалося підключитися до сервера',
|
||||||
|
unknownError: 'Невідома помилка, спробуйте ще раз пізніше',
|
||||||
|
useSingleSignOn: 'Використовувати одночасний вхід',
|
||||||
|
},
|
||||||
|
|
||||||
|
action: {
|
||||||
|
logIn: 'Увійти',
|
||||||
|
logInWithSSO: 'Увійти за допомогою SSO',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -5,6 +5,8 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "MMMM d 'at' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'at' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
|
|||||||
@@ -5,10 +5,13 @@ export default {
|
|||||||
dateTime: '$t(format:date) $t(format:time)',
|
dateTime: '$t(format:date) $t(format:time)',
|
||||||
longDate: 'MMM d',
|
longDate: 'MMM d',
|
||||||
longDateTime: "MMMM d 'at' p",
|
longDateTime: "MMMM d 'at' p",
|
||||||
|
fullDate: 'MMM d, y',
|
||||||
|
fullDateTime: "MMMM d, y 'at' p",
|
||||||
},
|
},
|
||||||
|
|
||||||
translation: {
|
translation: {
|
||||||
common: {
|
common: {
|
||||||
|
aboutPlanka: '关于 Planka',
|
||||||
account: '账号',
|
account: '账号',
|
||||||
actions: '操作',
|
actions: '操作',
|
||||||
addAttachment_title: '添加附件',
|
addAttachment_title: '添加附件',
|
||||||
@@ -38,6 +41,9 @@ export default {
|
|||||||
background: '背景',
|
background: '背景',
|
||||||
board: '面板',
|
board: '面板',
|
||||||
boardNotFound_title: '面板不存在',
|
boardNotFound_title: '面板不存在',
|
||||||
|
canComment: '可以评论',
|
||||||
|
canEditContentOfBoard: '可以编辑面板内容',
|
||||||
|
canOnlyViewBoard: '仅可查看面板',
|
||||||
cardActions_title: '卡片操作',
|
cardActions_title: '卡片操作',
|
||||||
cardNotFound_title: '卡片不存在',
|
cardNotFound_title: '卡片不存在',
|
||||||
cardOrActionAreDeleted: '卡片或操作已经被删除',
|
cardOrActionAreDeleted: '卡片或操作已经被删除',
|
||||||
@@ -61,14 +67,18 @@ export default {
|
|||||||
deleteTask_title: '删除任务',
|
deleteTask_title: '删除任务',
|
||||||
deleteUser_title: '删除用户',
|
deleteUser_title: '删除用户',
|
||||||
description: '描述',
|
description: '描述',
|
||||||
|
detectAutomatically: '自动检测',
|
||||||
dropFileToUpload: '拖放文件以上传',
|
dropFileToUpload: '拖放文件以上传',
|
||||||
|
editor: '编辑器',
|
||||||
editAttachment_title: '编辑附件',
|
editAttachment_title: '编辑附件',
|
||||||
editAvatar_title: '编辑头像',
|
editAvatar_title: '编辑头像',
|
||||||
editBoard_title: '编辑面板',
|
editBoard_title: '编辑面板',
|
||||||
editDueDate_title: '编辑截止时间',
|
editDueDate_title: '编辑截止时间',
|
||||||
editEmail_title: '编辑邮箱',
|
editEmail_title: '编辑邮箱',
|
||||||
|
editInformation_title: '编辑信息',
|
||||||
editLabel_title: '编辑标签',
|
editLabel_title: '编辑标签',
|
||||||
editPassword_title: '修改密码',
|
editPassword_title: '修改密码',
|
||||||
|
editPermissions_title: '修改权限',
|
||||||
editStopwatch_title: '修改时间',
|
editStopwatch_title: '修改时间',
|
||||||
editUsername_title: '修改用户名',
|
editUsername_title: '修改用户名',
|
||||||
email: '邮箱',
|
email: '邮箱',
|
||||||
@@ -81,11 +91,14 @@ export default {
|
|||||||
enterTaskDescription: '输入任务描述...',
|
enterTaskDescription: '输入任务描述...',
|
||||||
filterByLabels_title: '通过标签筛选',
|
filterByLabels_title: '通过标签筛选',
|
||||||
filterByMembers_title: '通过成员筛选',
|
filterByMembers_title: '通过成员筛选',
|
||||||
fromComputer_title: '从本机',
|
fromComputer_title: '来自计算机',
|
||||||
|
fromTrello: '来自 Trello',
|
||||||
general: '全体',
|
general: '全体',
|
||||||
hours: '小时',
|
hours: '小时',
|
||||||
|
importBoard_title: '导入面板',
|
||||||
invalidCurrentPassword: '当前密码错误',
|
invalidCurrentPassword: '当前密码错误',
|
||||||
labels: '标签',
|
labels: '标签',
|
||||||
|
language: '语言',
|
||||||
leaveBoard_title: '离开面板',
|
leaveBoard_title: '离开面板',
|
||||||
leaveProject_title: '离开项目',
|
leaveProject_title: '离开项目',
|
||||||
list: '列表',
|
list: '列表',
|
||||||
@@ -115,15 +128,20 @@ export default {
|
|||||||
projectNotFound_title: '项目未找到',
|
projectNotFound_title: '项目未找到',
|
||||||
removeManager_title: '删除管理员',
|
removeManager_title: '删除管理员',
|
||||||
removeMember_title: '删除成员',
|
removeMember_title: '删除成员',
|
||||||
|
searchLabels: '搜索标签...',
|
||||||
|
searchMembers: '搜索成员...',
|
||||||
|
searchUsers: '搜索用户...',
|
||||||
seconds: '秒',
|
seconds: '秒',
|
||||||
selectBoard: '选择面板',
|
selectBoard: '选择面板',
|
||||||
selectList: '选择列表',
|
selectList: '选择列表',
|
||||||
|
selectPermissions_title: '选择权限',
|
||||||
selectProject: '选择项目',
|
selectProject: '选择项目',
|
||||||
settings: '设置',
|
settings: '设置',
|
||||||
stopwatch: '计时器',
|
stopwatch: '计时器',
|
||||||
subscribeToMyOwnCardsByDefault: '默认关注自己创建的卡片',
|
subscribeToMyOwnCardsByDefault: '默认关注自己创建的卡片',
|
||||||
taskActions_title: '任务操作',
|
taskActions_title: '任务操作',
|
||||||
tasks: '任务',
|
tasks: '任务',
|
||||||
|
thereIsNoPreviewAvailableForThisAttachment: '此附件无法预览',
|
||||||
time: '时间',
|
time: '时间',
|
||||||
title: '标题',
|
title: '标题',
|
||||||
userActions_title: '用户操作',
|
userActions_title: '用户操作',
|
||||||
@@ -136,6 +154,8 @@ export default {
|
|||||||
username: '用户名',
|
username: '用户名',
|
||||||
usernameAlreadyInUse: '用户名已被占用',
|
usernameAlreadyInUse: '用户名已被占用',
|
||||||
users: '用户',
|
users: '用户',
|
||||||
|
version: '版本',
|
||||||
|
viewer: '视图',
|
||||||
writeComment: '编写评论...',
|
writeComment: '编写评论...',
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -147,6 +167,7 @@ export default {
|
|||||||
addCard_title: '添加卡片',
|
addCard_title: '添加卡片',
|
||||||
addComment: '添加评论',
|
addComment: '添加评论',
|
||||||
addList: '添加列表',
|
addList: '添加列表',
|
||||||
|
addMember: 'Add member',
|
||||||
addMoreDetailedDescription: '添加更多详细描述',
|
addMoreDetailedDescription: '添加更多详细描述',
|
||||||
addTask: '添加任务',
|
addTask: '添加任务',
|
||||||
addToCard: '添加到卡片',
|
addToCard: '添加到卡片',
|
||||||
@@ -176,10 +197,14 @@ export default {
|
|||||||
editDueDate_title: '编辑到期时间',
|
editDueDate_title: '编辑到期时间',
|
||||||
editDescription_title: '编辑描述',
|
editDescription_title: '编辑描述',
|
||||||
editEmail_title: '编辑邮箱',
|
editEmail_title: '编辑邮箱',
|
||||||
|
editInformation_title: '编辑信息',
|
||||||
editPassword_title: '编辑密码',
|
editPassword_title: '编辑密码',
|
||||||
|
editPermissions: '编辑权限',
|
||||||
editStopwatch_title: '编辑时间',
|
editStopwatch_title: '编辑时间',
|
||||||
editTitle_title: '编辑标题',
|
editTitle_title: '编辑标题',
|
||||||
editUsername_title: '编辑用户名',
|
editUsername_title: '编辑用户名',
|
||||||
|
hideDetails: '隐藏详情',
|
||||||
|
import: '导入',
|
||||||
leaveBoard: '离开面板',
|
leaveBoard: '离开面板',
|
||||||
leaveProject: '离开项目',
|
leaveProject: '离开项目',
|
||||||
logOut_title: '退出',
|
logOut_title: '退出',
|
||||||
@@ -195,6 +220,7 @@ export default {
|
|||||||
removeMember: '删除成员',
|
removeMember: '删除成员',
|
||||||
save: '保存',
|
save: '保存',
|
||||||
showAllAttachments: '显示所有的附件 ({{hidden}} 隐藏)',
|
showAllAttachments: '显示所有的附件 ({{hidden}} 隐藏)',
|
||||||
|
showDetails: '显示详情',
|
||||||
showFewerAttachments: '显示较少的附件',
|
showFewerAttachments: '显示较少的附件',
|
||||||
start: '开始',
|
start: '开始',
|
||||||
stop: '结束',
|
stop: '结束',
|
||||||
|
|||||||
@@ -2,19 +2,21 @@ export default {
|
|||||||
translation: {
|
translation: {
|
||||||
common: {
|
common: {
|
||||||
emailOrUsername: '邮箱或用户名',
|
emailOrUsername: '邮箱或用户名',
|
||||||
invalidEmailOrUsername: '错误的邮箱或用户名',
|
invalidEmailOrUsername: '无效的邮箱或用户名',
|
||||||
invalidPassword: '密码错误',
|
invalidPassword: '密码错误',
|
||||||
logInToPlanka: '登录至 Planka',
|
logInToPlanka: '登录至 Planka',
|
||||||
noInternetConnection: '没有网络连接',
|
noInternetConnection: '没有网络连接',
|
||||||
pageNotFound_title: '页面找不到',
|
pageNotFound_title: '找不到页面',
|
||||||
password: '密码',
|
password: '密码',
|
||||||
projectManagement: '项目管理',
|
projectManagement: '项目管理',
|
||||||
serverConnectionFailed: '服务连接失败',
|
serverConnectionFailed: '服务器连接失败',
|
||||||
unknownError: '未知错误,请稍后重试',
|
unknownError: '未知错误,请稍后重试',
|
||||||
|
useSingleSignOn: '使用单点登录',
|
||||||
},
|
},
|
||||||
|
|
||||||
action: {
|
action: {
|
||||||
logIn: '登录',
|
logIn: '登录',
|
||||||
|
logInWithSSO: '使用SSO登录',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import pick from 'lodash/pick';
|
||||||
import { attr, fk, many, oneToOne } from 'redux-orm';
|
import { attr, fk, many, oneToOne } from 'redux-orm';
|
||||||
|
|
||||||
import BaseModel from './BaseModel';
|
import BaseModel from './BaseModel';
|
||||||
@@ -165,7 +166,6 @@ export default class extends BaseModel {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case ActionTypes.CARD_CREATE:
|
case ActionTypes.CARD_CREATE:
|
||||||
case ActionTypes.CARD_CREATE_HANDLE:
|
|
||||||
case ActionTypes.CARD_UPDATE__SUCCESS:
|
case ActionTypes.CARD_UPDATE__SUCCESS:
|
||||||
case ActionTypes.CARD_UPDATE_HANDLE:
|
case ActionTypes.CARD_UPDATE_HANDLE:
|
||||||
Card.upsert(payload.card);
|
Card.upsert(payload.card);
|
||||||
@@ -176,10 +176,63 @@ export default class extends BaseModel {
|
|||||||
Card.upsert(payload.card);
|
Card.upsert(payload.card);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case ActionTypes.CARD_CREATE_HANDLE: {
|
||||||
|
const cardModel = Card.upsert(payload.card);
|
||||||
|
|
||||||
|
payload.cardMemberships.forEach(({ userId }) => {
|
||||||
|
cardModel.users.add(userId);
|
||||||
|
});
|
||||||
|
|
||||||
|
payload.cardLabels.forEach(({ labelId }) => {
|
||||||
|
cardModel.labels.add(labelId);
|
||||||
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
case ActionTypes.CARD_UPDATE:
|
case ActionTypes.CARD_UPDATE:
|
||||||
Card.withId(payload.id).update(payload.data);
|
Card.withId(payload.id).update(payload.data);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
case ActionTypes.CARD_DUPLICATE: {
|
||||||
|
const cardModel = Card.withId(payload.id);
|
||||||
|
|
||||||
|
const nextCardModel = Card.upsert({
|
||||||
|
...pick(cardModel.ref, [
|
||||||
|
'boardId',
|
||||||
|
'listId',
|
||||||
|
'position',
|
||||||
|
'name',
|
||||||
|
'description',
|
||||||
|
'dueDate',
|
||||||
|
'stopwatch',
|
||||||
|
]),
|
||||||
|
...payload.card,
|
||||||
|
});
|
||||||
|
|
||||||
|
cardModel.users.toRefArray().forEach(({ id }) => {
|
||||||
|
nextCardModel.users.add(id);
|
||||||
|
});
|
||||||
|
|
||||||
|
cardModel.labels.toRefArray().forEach(({ id }) => {
|
||||||
|
nextCardModel.labels.add(id);
|
||||||
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case ActionTypes.CARD_DUPLICATE__SUCCESS: {
|
||||||
|
Card.withId(payload.localId).deleteWithRelated();
|
||||||
|
const cardModel = Card.upsert(payload.card);
|
||||||
|
|
||||||
|
payload.cardMemberships.forEach(({ userId }) => {
|
||||||
|
cardModel.users.add(userId);
|
||||||
|
});
|
||||||
|
|
||||||
|
payload.cardLabels.forEach(({ labelId }) => {
|
||||||
|
cardModel.labels.add(labelId);
|
||||||
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
case ActionTypes.CARD_DELETE:
|
case ActionTypes.CARD_DELETE:
|
||||||
Card.withId(payload.id).deleteWithRelated();
|
Card.withId(payload.id).deleteWithRelated();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { attr, fk } from 'redux-orm';
|
import { attr, fk } from 'redux-orm';
|
||||||
|
|
||||||
|
import { createLocalId } from '../utils/local-id';
|
||||||
import BaseModel from './BaseModel';
|
import BaseModel from './BaseModel';
|
||||||
import ActionTypes from '../constants/ActionTypes';
|
import ActionTypes from '../constants/ActionTypes';
|
||||||
|
|
||||||
@@ -44,10 +45,24 @@ export default class extends BaseModel {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case ActionTypes.BOARD_FETCH__SUCCESS:
|
case ActionTypes.BOARD_FETCH__SUCCESS:
|
||||||
|
case ActionTypes.CARD_CREATE_HANDLE:
|
||||||
|
case ActionTypes.CARD_DUPLICATE__SUCCESS:
|
||||||
payload.tasks.forEach((task) => {
|
payload.tasks.forEach((task) => {
|
||||||
Task.upsert(task);
|
Task.upsert(task);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
case ActionTypes.CARD_DUPLICATE:
|
||||||
|
payload.taskIds.forEach((taskId, index) => {
|
||||||
|
const taskModel = Task.withId(taskId);
|
||||||
|
|
||||||
|
Task.upsert({
|
||||||
|
...taskModel.ref,
|
||||||
|
id: `${createLocalId()}-${index}`, // TODO: hack?
|
||||||
|
cardId: payload.card.id,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case ActionTypes.TASK_CREATE:
|
case ActionTypes.TASK_CREATE:
|
||||||
case ActionTypes.TASK_CREATE_HANDLE:
|
case ActionTypes.TASK_CREATE_HANDLE:
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export default class extends BaseModel {
|
|||||||
isAdmin: attr(),
|
isAdmin: attr(),
|
||||||
isLocked: attr(),
|
isLocked: attr(),
|
||||||
isRoleLocked: attr(),
|
isRoleLocked: attr(),
|
||||||
|
isUsernameLocked: attr(),
|
||||||
isDeletionLocked: attr(),
|
isDeletionLocked: attr(),
|
||||||
deletedAt: attr(),
|
deletedAt: attr(),
|
||||||
createdAt: attr({
|
createdAt: attr({
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { call, fork, join, put, select, take } from 'redux-saga/effects';
|
import { call, fork, join, put, select, take } from 'redux-saga/effects';
|
||||||
|
|
||||||
import selectors from '../../selectors';
|
import selectors from '../../selectors';
|
||||||
import actions from '../../actions';
|
import entryActions from '../../entry-actions';
|
||||||
import { removeAccessToken } from '../../utils/access-token-storage';
|
|
||||||
import ErrorCodes from '../../constants/ErrorCodes';
|
import ErrorCodes from '../../constants/ErrorCodes';
|
||||||
|
|
||||||
let lastRequestTask;
|
let lastRequestTask;
|
||||||
@@ -22,8 +21,7 @@ function* queueRequest(method, ...args) {
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.code === ErrorCodes.UNAUTHORIZED) {
|
if (error.code === ErrorCodes.UNAUTHORIZED) {
|
||||||
yield call(removeAccessToken);
|
yield put(entryActions.logout(false));
|
||||||
yield put(actions.logout()); // TODO: next url
|
|
||||||
yield take();
|
yield take();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import request from '../request';
|
|||||||
import selectors from '../../../selectors';
|
import selectors from '../../../selectors';
|
||||||
import actions from '../../../actions';
|
import actions from '../../../actions';
|
||||||
import api from '../../../api';
|
import api from '../../../api';
|
||||||
|
import i18n from '../../../i18n';
|
||||||
import { createLocalId } from '../../../utils/local-id';
|
import { createLocalId } from '../../../utils/local-id';
|
||||||
|
|
||||||
export function* createCard(listId, data, autoOpen) {
|
export function* createCard(listId, data, autoOpen) {
|
||||||
@@ -41,8 +42,23 @@ export function* createCard(listId, data, autoOpen) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function* handleCardCreate(card) {
|
export function* handleCardCreate({ id }) {
|
||||||
yield put(actions.handleCardCreate(card));
|
let card;
|
||||||
|
let cardMemberships;
|
||||||
|
let cardLabels;
|
||||||
|
let tasks;
|
||||||
|
let attachments;
|
||||||
|
|
||||||
|
try {
|
||||||
|
({
|
||||||
|
item: card,
|
||||||
|
included: { cardMemberships, cardLabels, tasks, attachments },
|
||||||
|
} = yield call(request, api.getCard, id));
|
||||||
|
} catch (error) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
yield put(actions.handleCardCreate(card, cardMemberships, cardLabels, tasks, attachments));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function* updateCard(id, data) {
|
export function* updateCard(id, data) {
|
||||||
@@ -70,7 +86,7 @@ export function* handleCardUpdate(card) {
|
|||||||
yield put(actions.handleCardUpdate(card));
|
yield put(actions.handleCardUpdate(card));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function* moveCard(id, listId, index) {
|
export function* moveCard(id, listId, index = 0) {
|
||||||
const position = yield select(selectors.selectNextCardPosition, listId, index, id);
|
const position = yield select(selectors.selectNextCardPosition, listId, index, id);
|
||||||
|
|
||||||
yield call(updateCard, id, {
|
yield call(updateCard, id, {
|
||||||
@@ -85,7 +101,7 @@ export function* moveCurrentCard(listId, index) {
|
|||||||
yield call(moveCard, cardId, listId, index);
|
yield call(moveCard, cardId, listId, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function* transferCard(id, boardId, listId, index) {
|
export function* transferCard(id, boardId, listId, index = 0) {
|
||||||
const { cardId: currentCardId, boardId: currentBoardId } = yield select(selectors.selectPath);
|
const { cardId: currentCardId, boardId: currentBoardId } = yield select(selectors.selectPath);
|
||||||
const position = yield select(selectors.selectNextCardPosition, listId, index, id);
|
const position = yield select(selectors.selectNextCardPosition, listId, index, id);
|
||||||
|
|
||||||
@@ -106,6 +122,55 @@ export function* transferCurrentCard(boardId, listId, index) {
|
|||||||
yield call(transferCard, cardId, boardId, listId, index);
|
yield call(transferCard, cardId, boardId, listId, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function* duplicateCard(id) {
|
||||||
|
const { listId, name } = yield select(selectors.selectCardById, id);
|
||||||
|
const index = yield select(selectors.selectCardIndexById, id);
|
||||||
|
|
||||||
|
const nextData = {
|
||||||
|
position: yield select(selectors.selectNextCardPosition, listId, index + 1),
|
||||||
|
name: `${name} (${i18n.t('common.copy', {
|
||||||
|
context: 'inline',
|
||||||
|
})})`,
|
||||||
|
};
|
||||||
|
|
||||||
|
const localId = yield call(createLocalId);
|
||||||
|
const taskIds = yield select(selectors.selectTaskIdsByCardId, id);
|
||||||
|
|
||||||
|
yield put(
|
||||||
|
actions.duplicateCard(
|
||||||
|
id,
|
||||||
|
{
|
||||||
|
...nextData,
|
||||||
|
id: localId,
|
||||||
|
},
|
||||||
|
taskIds,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
let card;
|
||||||
|
let cardMemberships;
|
||||||
|
let cardLabels;
|
||||||
|
let tasks;
|
||||||
|
|
||||||
|
try {
|
||||||
|
({
|
||||||
|
item: card,
|
||||||
|
included: { cardMemberships, cardLabels, tasks },
|
||||||
|
} = yield call(request, api.duplicateCard, id, nextData));
|
||||||
|
} catch (error) {
|
||||||
|
yield put(actions.duplicateCard.failure(localId, error));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
yield put(actions.duplicateCard.success(localId, card, cardMemberships, cardLabels, tasks));
|
||||||
|
}
|
||||||
|
|
||||||
|
export function* duplicateCurrentCard() {
|
||||||
|
const { cardId } = yield select(selectors.selectPath);
|
||||||
|
|
||||||
|
yield call(duplicateCard, cardId);
|
||||||
|
}
|
||||||
|
|
||||||
export function* deleteCard(id) {
|
export function* deleteCard(id) {
|
||||||
const { cardId, boardId } = yield select(selectors.selectPath);
|
const { cardId, boardId } = yield select(selectors.selectPath);
|
||||||
|
|
||||||
@@ -147,11 +212,13 @@ export default {
|
|||||||
handleCardCreate,
|
handleCardCreate,
|
||||||
updateCard,
|
updateCard,
|
||||||
updateCurrentCard,
|
updateCurrentCard,
|
||||||
|
handleCardUpdate,
|
||||||
moveCard,
|
moveCard,
|
||||||
moveCurrentCard,
|
moveCurrentCard,
|
||||||
transferCard,
|
transferCard,
|
||||||
transferCurrentCard,
|
transferCurrentCard,
|
||||||
handleCardUpdate,
|
duplicateCard,
|
||||||
|
duplicateCurrentCard,
|
||||||
deleteCard,
|
deleteCard,
|
||||||
deleteCurrentCard,
|
deleteCurrentCard,
|
||||||
handleCardDelete,
|
handleCardDelete,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { call, put, select, take } from 'redux-saga/effects';
|
import { call, put, select } from 'redux-saga/effects';
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
import requests from '../requests';
|
import requests from '../requests';
|
||||||
@@ -84,8 +84,7 @@ export function* logout(invalidateAccessToken = true) {
|
|||||||
} catch (error) {} // eslint-disable-line no-empty
|
} catch (error) {} // eslint-disable-line no-empty
|
||||||
}
|
}
|
||||||
|
|
||||||
yield put(actions.logout());
|
yield put(actions.logout()); // TODO: next url
|
||||||
yield take();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import { call, put, select, take } from 'redux-saga/effects';
|
import { call, put, select, take } from 'redux-saga/effects';
|
||||||
import { push } from '../../../lib/redux-router';
|
import { push } from '../../../lib/redux-router';
|
||||||
|
|
||||||
|
import { logout } from './core';
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
import selectors from '../../../selectors';
|
import selectors from '../../../selectors';
|
||||||
import actions from '../../../actions';
|
import actions from '../../../actions';
|
||||||
import api from '../../../api';
|
import api from '../../../api';
|
||||||
|
import { getAccessToken } from '../../../utils/access-token-storage';
|
||||||
import ActionTypes from '../../../constants/ActionTypes';
|
import ActionTypes from '../../../constants/ActionTypes';
|
||||||
import Paths from '../../../constants/Paths';
|
import Paths from '../../../constants/Paths';
|
||||||
|
|
||||||
@@ -25,6 +27,13 @@ export function* goToCard(cardId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function* handleLocationChange() {
|
export function* handleLocationChange() {
|
||||||
|
const accessToken = yield call(getAccessToken);
|
||||||
|
|
||||||
|
if (!accessToken) {
|
||||||
|
yield call(logout, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const pathsMatch = yield select(selectors.selectPathsMatch);
|
const pathsMatch = yield select(selectors.selectPathsMatch);
|
||||||
|
|
||||||
if (!pathsMatch) {
|
if (!pathsMatch) {
|
||||||
|
|||||||
@@ -218,6 +218,7 @@ export function* handleUserDelete(user) {
|
|||||||
|
|
||||||
if (user.id === currentUserId) {
|
if (user.id === currentUserId) {
|
||||||
yield call(logout, false);
|
yield call(logout, false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
yield put(actions.handleUserDelete(user));
|
yield put(actions.handleUserDelete(user));
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ export default function* cardsWatchers() {
|
|||||||
takeEvery(EntryActionTypes.CURRENT_CARD_TRANSFER, ({ payload: { boardId, listId, index } }) =>
|
takeEvery(EntryActionTypes.CURRENT_CARD_TRANSFER, ({ payload: { boardId, listId, index } }) =>
|
||||||
services.transferCurrentCard(boardId, listId, index),
|
services.transferCurrentCard(boardId, listId, index),
|
||||||
),
|
),
|
||||||
|
takeEvery(EntryActionTypes.CARD_DUPLICATE, ({ payload: { id } }) => services.duplicateCard(id)),
|
||||||
|
takeEvery(EntryActionTypes.CURRENT_CARD_DUPLICATE, () => services.duplicateCurrentCard()),
|
||||||
takeEvery(EntryActionTypes.CARD_DELETE, ({ payload: { id } }) => services.deleteCard(id)),
|
takeEvery(EntryActionTypes.CARD_DELETE, ({ payload: { id } }) => services.deleteCard(id)),
|
||||||
takeEvery(EntryActionTypes.CURRENT_CARD_DELETE, () => services.deleteCurrentCard()),
|
takeEvery(EntryActionTypes.CURRENT_CARD_DELETE, () => services.deleteCurrentCard()),
|
||||||
takeEvery(EntryActionTypes.CARD_DELETE_HANDLE, ({ payload: { card } }) =>
|
takeEvery(EntryActionTypes.CARD_DELETE_HANDLE, ({ payload: { card } }) =>
|
||||||
|
|||||||
@@ -4,5 +4,9 @@ import services from '../services';
|
|||||||
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
import EntryActionTypes from '../../../constants/EntryActionTypes';
|
||||||
|
|
||||||
export default function* coreWatchers() {
|
export default function* coreWatchers() {
|
||||||
yield all([takeEvery(EntryActionTypes.LOGOUT, () => services.logout())]);
|
yield all([
|
||||||
|
takeEvery(EntryActionTypes.LOGOUT, ({ payload: { invalidateAccessToken } }) =>
|
||||||
|
services.logout(invalidateAccessToken),
|
||||||
|
),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ const createSocketEventsChannel = () =>
|
|||||||
emit(entryActions.handleSocketReconnect());
|
emit(entryActions.handleSocketReconnect());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleLogout = () => {
|
||||||
|
emit(entryActions.logout(false));
|
||||||
|
};
|
||||||
|
|
||||||
const handleUserCreate = api.makeHandleUserCreate(({ item }) => {
|
const handleUserCreate = api.makeHandleUserCreate(({ item }) => {
|
||||||
emit(entryActions.handleUserCreate(item));
|
emit(entryActions.handleUserCreate(item));
|
||||||
});
|
});
|
||||||
@@ -171,6 +175,8 @@ const createSocketEventsChannel = () =>
|
|||||||
socket.on('disconnect', handleDisconnect);
|
socket.on('disconnect', handleDisconnect);
|
||||||
socket.on('reconnect', handleReconnect);
|
socket.on('reconnect', handleReconnect);
|
||||||
|
|
||||||
|
socket.on('logout', handleLogout);
|
||||||
|
|
||||||
socket.on('userCreate', handleUserCreate);
|
socket.on('userCreate', handleUserCreate);
|
||||||
socket.on('userUpdate', handleUserUpdate);
|
socket.on('userUpdate', handleUserUpdate);
|
||||||
socket.on('userDelete', handleUserDelete);
|
socket.on('userDelete', handleUserDelete);
|
||||||
@@ -227,6 +233,8 @@ const createSocketEventsChannel = () =>
|
|||||||
socket.off('disconnect', handleDisconnect);
|
socket.off('disconnect', handleDisconnect);
|
||||||
socket.off('reconnect', handleReconnect);
|
socket.off('reconnect', handleReconnect);
|
||||||
|
|
||||||
|
socket.off('logout', handleLogout);
|
||||||
|
|
||||||
socket.off('userCreate', handleUserCreate);
|
socket.off('userCreate', handleUserCreate);
|
||||||
socket.off('userUpdate', handleUserUpdate);
|
socket.off('userUpdate', handleUserUpdate);
|
||||||
socket.off('userDelete', handleUserDelete);
|
socket.off('userDelete', handleUserDelete);
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ export function* authenticateUsingOidc() {
|
|||||||
const oidcConfig = yield select(selectors.selectOidcConfig);
|
const oidcConfig = yield select(selectors.selectOidcConfig);
|
||||||
|
|
||||||
const state = nanoid();
|
const state = nanoid();
|
||||||
window.sessionStorage.setItem('oidc-state', state);
|
window.localStorage.setItem('oidc-state', state);
|
||||||
|
|
||||||
const nonce = nanoid();
|
const nonce = nanoid();
|
||||||
window.sessionStorage.setItem('oidc-nonce', nonce);
|
window.localStorage.setItem('oidc-nonce', nonce);
|
||||||
|
|
||||||
let redirectUrl = `${oidcConfig.authorizationUrl}`;
|
let redirectUrl = `${oidcConfig.authorizationUrl}`;
|
||||||
redirectUrl += `&state=${encodeURIComponent(state)}`;
|
redirectUrl += `&state=${encodeURIComponent(state)}`;
|
||||||
@@ -49,11 +49,11 @@ export function* authenticateUsingOidcCallback() {
|
|||||||
// https://github.com/plankanban/planka/issues/511#issuecomment-1771385639
|
// https://github.com/plankanban/planka/issues/511#issuecomment-1771385639
|
||||||
const params = new URLSearchParams(window.location.hash.substring(1) || window.location.search);
|
const params = new URLSearchParams(window.location.hash.substring(1) || window.location.search);
|
||||||
|
|
||||||
const state = window.sessionStorage.getItem('oidc-state');
|
const state = window.localStorage.getItem('oidc-state');
|
||||||
window.sessionStorage.removeItem('oidc-state');
|
window.localStorage.removeItem('oidc-state');
|
||||||
|
|
||||||
const nonce = window.sessionStorage.getItem('oidc-nonce');
|
const nonce = window.localStorage.getItem('oidc-nonce');
|
||||||
window.sessionStorage.removeItem('oidc-nonce');
|
window.localStorage.removeItem('oidc-nonce');
|
||||||
|
|
||||||
yield put(replace(Paths.LOGIN));
|
yield put(replace(Paths.LOGIN));
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,24 @@ export const makeSelectCardById = () =>
|
|||||||
|
|
||||||
export const selectCardById = makeSelectCardById();
|
export const selectCardById = makeSelectCardById();
|
||||||
|
|
||||||
|
export const makeSelectCardIndexById = () =>
|
||||||
|
createSelector(
|
||||||
|
orm,
|
||||||
|
(_, id) => id,
|
||||||
|
({ Card }, id) => {
|
||||||
|
const cardModel = Card.withId(id);
|
||||||
|
|
||||||
|
if (!cardModel) {
|
||||||
|
return cardModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
const cardModels = cardModel.list.getFilteredOrderedCardsModelArray();
|
||||||
|
return cardModels.findIndex((cardModelItem) => cardModelItem.id === cardModel.id);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
export const selectCardIndexById = makeSelectCardIndexById();
|
||||||
|
|
||||||
export const makeSelectUsersByCardId = () =>
|
export const makeSelectUsersByCardId = () =>
|
||||||
createSelector(
|
createSelector(
|
||||||
orm,
|
orm,
|
||||||
@@ -60,6 +78,26 @@ export const makeSelectLabelsByCardId = () =>
|
|||||||
|
|
||||||
export const selectLabelsByCardId = makeSelectLabelsByCardId();
|
export const selectLabelsByCardId = makeSelectLabelsByCardId();
|
||||||
|
|
||||||
|
export const makeSelectTaskIdsByCardId = () =>
|
||||||
|
createSelector(
|
||||||
|
orm,
|
||||||
|
(_, id) => id,
|
||||||
|
({ Card }, id) => {
|
||||||
|
const cardModel = Card.withId(id);
|
||||||
|
|
||||||
|
if (!cardModel) {
|
||||||
|
return cardModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
return cardModel
|
||||||
|
.getOrderedTasksQuerySet()
|
||||||
|
.toRefArray()
|
||||||
|
.map((task) => task.id);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
export const selectTaskIdsByCardId = makeSelectTaskIdsByCardId();
|
||||||
|
|
||||||
export const makeSelectTasksByCardId = () =>
|
export const makeSelectTasksByCardId = () =>
|
||||||
createSelector(
|
createSelector(
|
||||||
orm,
|
orm,
|
||||||
@@ -286,10 +324,14 @@ export const selectNotificationIdsForCurrentCard = createSelector(
|
|||||||
export default {
|
export default {
|
||||||
makeSelectCardById,
|
makeSelectCardById,
|
||||||
selectCardById,
|
selectCardById,
|
||||||
|
makeSelectCardIndexById,
|
||||||
|
selectCardIndexById,
|
||||||
makeSelectUsersByCardId,
|
makeSelectUsersByCardId,
|
||||||
selectUsersByCardId,
|
selectUsersByCardId,
|
||||||
makeSelectLabelsByCardId,
|
makeSelectLabelsByCardId,
|
||||||
selectLabelsByCardId,
|
selectLabelsByCardId,
|
||||||
|
makeSelectTaskIdsByCardId,
|
||||||
|
selectTaskIdsByCardId,
|
||||||
makeSelectTasksByCardId,
|
makeSelectTasksByCardId,
|
||||||
selectTasksByCardId,
|
selectTasksByCardId,
|
||||||
makeSelectLastActivityIdByCardId,
|
makeSelectLastActivityIdByCardId,
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export default (value, longDateFormat = 'longDateTime', fullDateFormat = 'fullDateTime') => {
|
||||||
|
const year = value.getFullYear();
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
||||||
|
return year === currentYear ? longDateFormat : fullDateFormat;
|
||||||
|
};
|
||||||
+23
-12
@@ -2,16 +2,8 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
planka:
|
planka:
|
||||||
image: ghcr.io/plankanban/planka:dev
|
image: ghcr.io/plankanban/planka:master
|
||||||
command: >
|
restart: on-failure
|
||||||
bash -c
|
|
||||||
"for i in `seq 1 30`; do
|
|
||||||
./start.sh &&
|
|
||||||
s=$$? && break || s=$$?;
|
|
||||||
echo \"Tried $$i times. Waiting 5 seconds...\";
|
|
||||||
sleep 5;
|
|
||||||
done; (exit $$s)"
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- user-avatars:/app/public/user-avatars
|
- user-avatars:/app/public/user-avatars
|
||||||
- project-background-images:/app/public/project-background-images
|
- project-background-images:/app/public/project-background-images
|
||||||
@@ -39,24 +31,43 @@ services:
|
|||||||
# - DEFAULT_ADMIN_NAME=Demo Demo
|
# - DEFAULT_ADMIN_NAME=Demo Demo
|
||||||
# - DEFAULT_ADMIN_USERNAME=demo
|
# - DEFAULT_ADMIN_USERNAME=demo
|
||||||
|
|
||||||
|
# Email Notifications (https://nodemailer.com/smtp/)
|
||||||
|
# - SMTP_HOST=
|
||||||
|
# - SMTP_PORT=587
|
||||||
|
# - SMTP_SECURE=true
|
||||||
|
# - SMTP_USER=
|
||||||
|
# - SMTP_PASSWORD=
|
||||||
|
# - SMTP_FROM="Demo Demo" <demo@demo.demo>
|
||||||
|
|
||||||
# - OIDC_ISSUER=
|
# - OIDC_ISSUER=
|
||||||
# - OIDC_CLIENT_ID=
|
# - OIDC_CLIENT_ID=
|
||||||
# - OIDC_CLIENT_SECRET=
|
# - OIDC_CLIENT_SECRET=
|
||||||
# - OIDC_SCOPES=openid email profile
|
# - OIDC_SCOPES=openid email profile
|
||||||
# - OIDC_ADMIN_ROLES=admin
|
# - OIDC_ADMIN_ROLES=admin
|
||||||
|
# - OIDC_EMAIL_ATTRIBUTE=email
|
||||||
|
# - OIDC_NAME_ATTRIBUTE=name
|
||||||
|
# - OIDC_USERNAME_ATTRIBUTE=preferred_username
|
||||||
# - OIDC_ROLES_ATTRIBUTE=groups
|
# - OIDC_ROLES_ATTRIBUTE=groups
|
||||||
|
# - OIDC_IGNORE_USERNAME=true
|
||||||
# - OIDC_IGNORE_ROLES=true
|
# - OIDC_IGNORE_ROLES=true
|
||||||
|
# - OIDC_ENFORCED=true
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
restart: unless-stopped
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=planka
|
- POSTGRES_DB=planka
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
user-avatars:
|
user-avatars:
|
||||||
|
|||||||
+25
-11
@@ -3,15 +3,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
planka:
|
planka:
|
||||||
image: ghcr.io/plankanban/planka:latest
|
image: ghcr.io/plankanban/planka:latest
|
||||||
command: >
|
restart: on-failure
|
||||||
bash -c
|
|
||||||
"for i in `seq 1 30`; do
|
|
||||||
./start.sh &&
|
|
||||||
s=$$? && break || s=$$?;
|
|
||||||
echo \"Tried $$i times. Waiting 5 seconds...\";
|
|
||||||
sleep 5;
|
|
||||||
done; (exit $$s)"
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- user-avatars:/app/public/user-avatars
|
- user-avatars:/app/public/user-avatars
|
||||||
- project-background-images:/app/public/project-background-images
|
- project-background-images:/app/public/project-background-images
|
||||||
@@ -44,19 +36,41 @@ services:
|
|||||||
# - OIDC_CLIENT_SECRET=
|
# - OIDC_CLIENT_SECRET=
|
||||||
# - OIDC_SCOPES=openid email profile
|
# - OIDC_SCOPES=openid email profile
|
||||||
# - OIDC_ADMIN_ROLES=admin
|
# - OIDC_ADMIN_ROLES=admin
|
||||||
|
# - OIDC_EMAIL_ATTRIBUTE=email
|
||||||
|
# - OIDC_NAME_ATTRIBUTE=name
|
||||||
|
# - OIDC_USERNAME_ATTRIBUTE=preferred_username
|
||||||
# - OIDC_ROLES_ATTRIBUTE=groups
|
# - OIDC_ROLES_ATTRIBUTE=groups
|
||||||
|
# - OIDC_IGNORE_USERNAME=true
|
||||||
# - OIDC_IGNORE_ROLES=true
|
# - OIDC_IGNORE_ROLES=true
|
||||||
|
# - OIDC_ENFORCED=true
|
||||||
|
|
||||||
|
# Email Notifications (https://nodemailer.com/smtp/)
|
||||||
|
# - SMTP_HOST=
|
||||||
|
# - SMTP_PORT=587
|
||||||
|
# - SMTP_SECURE=true
|
||||||
|
# - SMTP_USER=
|
||||||
|
# - SMTP_PASSWORD=
|
||||||
|
# - SMTP_FROM="Demo Demo" <demo@demo.demo>
|
||||||
|
|
||||||
|
# - SLACK_BOT_TOKEN=
|
||||||
|
# - SLACK_CHANNEL_ID=
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
restart: unless-stopped
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=planka
|
- POSTGRES_DB=planka
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
user-avatars:
|
user-avatars:
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
const http = require('http');
|
||||||
|
const options = {
|
||||||
|
host: 'localhost',
|
||||||
|
port: 1337,
|
||||||
|
timeout: 2000
|
||||||
|
};
|
||||||
|
|
||||||
|
const healthCheck = http.request(options, (res) => {
|
||||||
|
console.log(`HEALTHCHECK STATUS: ${res.statusCode}`);
|
||||||
|
if (res.statusCode == 200) {
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
healthCheck.on('error', function (err) {
|
||||||
|
console.error('ERROR');
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
healthCheck.end();
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "planka",
|
"name": "planka",
|
||||||
"version": "1.15.2",
|
"version": "1.16.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "planka",
|
"name": "planka",
|
||||||
"version": "1.15.2",
|
"version": "1.16.3",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "planka",
|
"name": "planka",
|
||||||
"version": "1.15.2",
|
"version": "1.16.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://plankanban.github.io/planka",
|
"homepage": "https://plankanban.github.io/planka",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -27,8 +27,24 @@ SECRET_KEY=notsecretkey
|
|||||||
# OIDC_CLIENT_SECRET=
|
# OIDC_CLIENT_SECRET=
|
||||||
# OIDC_SCOPES=openid email profile
|
# OIDC_SCOPES=openid email profile
|
||||||
# OIDC_ADMIN_ROLES=admin
|
# OIDC_ADMIN_ROLES=admin
|
||||||
|
# OIDC_EMAIL_ATTRIBUTE=email
|
||||||
|
# OIDC_NAME_ATTRIBUTE=name
|
||||||
|
# OIDC_USERNAME_ATTRIBUTE=preferred_username
|
||||||
# OIDC_ROLES_ATTRIBUTE=groups
|
# OIDC_ROLES_ATTRIBUTE=groups
|
||||||
|
# OIDC_IGNORE_USERNAME=true
|
||||||
# OIDC_IGNORE_ROLES=true
|
# OIDC_IGNORE_ROLES=true
|
||||||
|
# OIDC_ENFORCED=true
|
||||||
|
|
||||||
|
# Email Notifications (https://nodemailer.com/smtp/)
|
||||||
|
# SMTP_HOST=
|
||||||
|
# SMTP_PORT=587
|
||||||
|
# SMTP_SECURE=true
|
||||||
|
# SMTP_USER=
|
||||||
|
# SMTP_PASSWORD=
|
||||||
|
# SMTP_FROM="Demo Demo" <demo@demo.demo>
|
||||||
|
|
||||||
|
# SLACK_BOT_TOKEN=
|
||||||
|
# SLACK_CHANNEL_ID=
|
||||||
|
|
||||||
## Do not edit this
|
## Do not edit this
|
||||||
|
|
||||||
|
|||||||
@@ -46,8 +46,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async fn(inputs) {
|
async fn(inputs) {
|
||||||
const remoteAddress = getRemoteAddress(this.req);
|
if (sails.config.custom.oidcEnforced) {
|
||||||
|
throw Errors.USE_SINGLE_SIGN_ON;
|
||||||
|
}
|
||||||
|
|
||||||
|
const remoteAddress = getRemoteAddress(this.req);
|
||||||
const user = await sails.helpers.users.getOneByEmailOrUsername(inputs.emailOrUsername);
|
const user = await sails.helpers.users.getOneByEmailOrUsername(inputs.emailOrUsername);
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ module.exports = {
|
|||||||
deletedAt: new Date().toISOString(),
|
deletedAt: new Date().toISOString(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (this.req.isSocket) {
|
||||||
|
sails.sockets.leaveAll(`@accessToken:${accessToken}`);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
item: accessToken,
|
item: accessToken,
|
||||||
};
|
};
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user