An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
v1.0.12 - Sveltekit migration (#44)
Andras Bacsai23a4ebb74a91
diff --git a/.dockerignore b/.dockerignoreindex 907d0f818a..3fd3b242aa 100644--- a/.dockerignore+++ b/.dockerignore@@ -1,4 +1,7 @@+.DS_Storenode_modules-dist-.routify-.pnpm-store\ No newline at end of file+/.svelte+/build+/functions+.pnpm-store+.pnpm-debug.logdiff --git a/.eslintrc.cjs b/.eslintrc.cjsnew file mode 100644index 0000000000..fba3861946--- /dev/null+++ b/.eslintrc.cjs@@ -0,0 +1,20 @@+module.exports = {+ root: true,+ parser: '@typescript-eslint/parser',+ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],+ plugins: ['svelte3', '@typescript-eslint'],+ ignorePatterns: ['*.cjs'],+ overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],+ settings: {+ 'svelte3/typescript': () => require('typescript')+ },+ parserOptions: {+ sourceType: 'module',+ ecmaVersion: 2019+ },+ env: {+ browser: true,+ es2017: true,+ node: true+ }+};diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlindex e2dbc19ba5..5c54556a7e 100644--- a/.github/FUNDING.yml+++ b/.github/FUNDING.yml@@ -1 +1 @@-ko_fi: andrasbacsai\ No newline at end of file+ko_fi: andrasbacsaidiff --git a/.gitignore b/.gitignoreindex 90e0552cc4..82beb85048 100644--- a/.gitignore+++ b/.gitignore@@ -1,11 +1,9 @@-.vscode-.idea-node_modules-dist-dist-ssr-.routify+/node_modules+/.svelte+/.svelte-kit+/.pnpm-store+/build+/functions.env-yarn-error.log-api/development/console.log-.pnpm-debug.log-.pnpm-store\ No newline at end of file+.DS_Store+.pnpm-debug.log\ No newline at end of filediff --git a/.npmrc b/.npmrcnew file mode 100644index 0000000000..b6f27f1359--- /dev/null+++ b/.npmrc@@ -0,0 +1 @@+engine-strict=truediff --git a/.prettierignore b/.prettierignorenew file mode 100644index 0000000000..82a5e3e129--- /dev/null+++ b/.prettierignore@@ -0,0 +1,5 @@+.svelte/**+static/**+build/**+node_modules/**+.svelte-kit/**\ No newline at end of filediff --git a/.prettierrc b/.prettierrcindex da65a6c28f..ff2677efde 100644--- a/.prettierrc+++ b/.prettierrc@@ -1,14 +1,6 @@{- "arrowParens": "avoid",- "bracketSpacing": true,- "printWidth": 80,- "semi": true,- "singleQuote": false,- "tabWidth": 2,- "trailingComma": "all",- "svelteSortOrder" : "styles-scripts-markup",- "svelteStrictMode": true,- "svelteBracketNewLine": true,- "svelteAllowShorthand": true,- "plugins": ["prettier-plugin-svelte"]- }+ "useTabs": true,+ "singleQuote": true,+ "trailingComma": "none",+ "printWidth": 100+}diff --git a/api/app.js b/api/app.jsdeleted file mode 100644index f1fe5aed5e..0000000000--- a/api/app.js+++ /dev/null@@ -1,30 +0,0 @@-module.exports = async function (fastify, opts) {- // Private routes- fastify.register(async function (server) {- server.register(require('./plugins/authentication'))- server.register(require('./routes/v1/upgrade'), { prefix: '/upgrade' })- server.register(require('./routes/v1/settings'), { prefix: '/settings' })- server.register(require('./routes/v1/dashboard'), { prefix: '/dashboard' })- server.register(require('./routes/v1/config'), { prefix: '/config' })- server.register(require('./routes/v1/application/remove'), { prefix: '/application/remove' })- server.register(require('./routes/v1/application/logs'), { prefix: '/application/logs' })- server.register(require('./routes/v1/application/check'), { prefix: '/application/check' })- server.register(require('./routes/v1/application/deploy'), { prefix: '/application/deploy' })- server.register(require('./routes/v1/application/deploy/logs'), { prefix: '/application/deploy/logs' })- server.register(require('./routes/v1/databases'), { prefix: '/databases' })- server.register(require('./routes/v1/services'), { prefix: '/services' })- server.register(require('./routes/v1/services/deploy'), { prefix: '/services/deploy' })- server.register(require('./routes/v1/server'), { prefix: '/server' })- })- // Public routes- fastify.register(require('./routes/v1/verify'), { prefix: '/verify' })- fastify.register(require('./routes/v1/login/github'), {- prefix: '/login/github'- })- fastify.register(require('./routes/v1/webhooks/deploy'), {- prefix: '/webhooks/deploy'- })- fastify.register(require('./routes/v1/undead'), {- prefix: '/undead'- })-}diff --git a/api/buildPacks/docker/index.js b/api/buildPacks/docker/index.jsdeleted file mode 100644index e572b9f7be..0000000000--- a/api/buildPacks/docker/index.js+++ /dev/null@@ -1,15 +0,0 @@-const fs = require('fs').promises-const { streamEvents, docker } = require('../../libs/docker')--module.exports = async function (configuration) {- const path = `${configuration.general.workdir}/${configuration.build.directory ? configuration.build.directory : ''}`- if (fs.stat(`${path}/Dockerfile`)) {- const stream = await docker.engine.buildImage(- { src: ['.'], context: path },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)- } else {- throw new Error('No custom dockerfile found.')- }-}diff --git a/api/buildPacks/gatsby/index.js b/api/buildPacks/gatsby/index.jsdeleted file mode 100644index 46f1b26a70..0000000000--- a/api/buildPacks/gatsby/index.js+++ /dev/null@@ -1,25 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')--// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishStaticDocker = (configuration) => {- return [- 'FROM nginx:stable-alpine',- 'COPY nginx.conf /etc/nginx/nginx.conf',- 'WORKDIR /usr/share/nginx/html',- `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,- 'EXPOSE 80',- 'CMD ["nginx", "-g", "daemon off;"]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration, true)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishStaticDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/helpers.js b/api/buildPacks/helpers.jsdeleted file mode 100644index d6acfc61b6..0000000000--- a/api/buildPacks/helpers.js+++ /dev/null@@ -1,24 +0,0 @@-const fs = require('fs').promises-const { streamEvents, docker } = require('../libs/docker')-const buildImageNodeDocker = (configuration) => {- return [- 'FROM node:lts',- 'WORKDIR /usr/src/app',- `COPY ${configuration.build.directory}/package*.json ./`,- configuration.build.command.installation && `RUN ${configuration.build.command.installation}`,- `COPY ./${configuration.build.directory} ./`,- `RUN ${configuration.build.command.build}`- ].join('\n')-}-async function buildImage (configuration, cacheBuild) {- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, buildImageNodeDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${cacheBuild ? `${configuration.build.container.tag}-cache` : configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}--module.exports = {- buildImage-}diff --git a/api/buildPacks/index.js b/api/buildPacks/index.jsdeleted file mode 100644index 9ca02a9a5b..0000000000--- a/api/buildPacks/index.js+++ /dev/null@@ -1,13 +0,0 @@-const Static = require('./static')-const react = require('./react')-const nextjs = require('./nextjs')-const nuxtjs = require('./nuxtjs')-const gatsby = require('./gatsby')-const vuejs = require('./vuejs')-const svelte = require('./svelte')-const nodejs = require('./nodejs')-const php = require('./php')-const docker = require('./docker')-const rust = require('./rust')--module.exports = { static: Static, nodejs, php, docker, rust, react, vuejs, nextjs, nuxtjs, svelte, gatsby }diff --git a/api/buildPacks/nextjs/index.js b/api/buildPacks/nextjs/index.jsdeleted file mode 100644index 2449875d7c..0000000000--- a/api/buildPacks/nextjs/index.js+++ /dev/null@@ -1,28 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')-// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,-const publishNodejsDocker = (configuration) => {- return [- 'FROM node:lts',- 'WORKDIR /usr/src/app',- configuration.build.command.build- ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`- : `- COPY ${configuration.build.directory}/package*.json ./- RUN ${configuration.build.command.installation}- COPY ./${configuration.build.directory} ./`,- `EXPOSE ${configuration.publish.port}`,- 'CMD [ "yarn", "start" ]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishNodejsDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/nodejs/index.js b/api/buildPacks/nodejs/index.jsdeleted file mode 100644index 0a8e41eb58..0000000000--- a/api/buildPacks/nodejs/index.js+++ /dev/null@@ -1,28 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')-// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,-const publishNodejsDocker = (configuration) => {- return [- 'FROM node:lts',- 'WORKDIR /usr/src/app',- configuration.build.command.build- ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`- : `- COPY ${configuration.build.directory}/package*.json ./- RUN ${configuration.build.command.installation}- COPY ./${configuration.build.directory} ./`,- `EXPOSE ${configuration.publish.port}`,- 'CMD [ "yarn", "start" ]'- ].join('\n')-}--module.exports = async function (configuration) {- if (configuration.build.command.build) await buildImage(configuration)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishNodejsDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/nuxtjs/index.js b/api/buildPacks/nuxtjs/index.jsdeleted file mode 100644index 2449875d7c..0000000000--- a/api/buildPacks/nuxtjs/index.js+++ /dev/null@@ -1,28 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')-// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,-const publishNodejsDocker = (configuration) => {- return [- 'FROM node:lts',- 'WORKDIR /usr/src/app',- configuration.build.command.build- ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`- : `- COPY ${configuration.build.directory}/package*.json ./- RUN ${configuration.build.command.installation}- COPY ./${configuration.build.directory} ./`,- `EXPOSE ${configuration.publish.port}`,- 'CMD [ "yarn", "start" ]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishNodejsDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/php/index.js b/api/buildPacks/php/index.jsdeleted file mode 100644index e22791d095..0000000000--- a/api/buildPacks/php/index.js+++ /dev/null@@ -1,22 +0,0 @@-const fs = require('fs').promises-const { streamEvents, docker } = require('../../libs/docker')-// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishPHPDocker = (configuration) => {- return [- 'FROM php:apache',- 'RUN a2enmod rewrite',- 'WORKDIR /usr/src/app',- `COPY ./${configuration.build.directory} /var/www/html`,- 'EXPOSE 80',- ' CMD ["apache2-foreground"]'- ].join('\n')-}--module.exports = async function (configuration) {- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishPHPDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/react/index.js b/api/buildPacks/react/index.jsdeleted file mode 100644index 46f1b26a70..0000000000--- a/api/buildPacks/react/index.js+++ /dev/null@@ -1,25 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')--// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishStaticDocker = (configuration) => {- return [- 'FROM nginx:stable-alpine',- 'COPY nginx.conf /etc/nginx/nginx.conf',- 'WORKDIR /usr/share/nginx/html',- `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,- 'EXPOSE 80',- 'CMD ["nginx", "-g", "daemon off;"]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration, true)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishStaticDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/rust/index.js b/api/buildPacks/rust/index.jsdeleted file mode 100644index e4b076810c..0000000000--- a/api/buildPacks/rust/index.js+++ /dev/null@@ -1,60 +0,0 @@-const fs = require('fs').promises-const { streamEvents, docker } = require('../../libs/docker')-const { execShellAsync } = require('../../libs/common')-const TOML = require('@iarna/toml')--const publishRustDocker = (configuration, custom) => {- return [- 'FROM rust:latest',- 'WORKDIR /app',- `COPY --from=${configuration.build.container.name}:cache /app/target target`,- `COPY --from=${configuration.build.container.name}:cache /usr/local/cargo /usr/local/cargo`,- 'COPY . .',- `RUN cargo build --release --bin ${custom.name}`,- 'FROM debian:buster-slim',- 'WORKDIR /app',- 'RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libcurl4 ca-certificates && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*',- 'RUN update-ca-certificates',- `COPY --from=${configuration.build.container.name}:cache /app/target/release/${custom.name} ${custom.name}`,- `EXPOSE ${configuration.publish.port}`,- `CMD ["/app/${custom.name}"]`- ].join('\n')-}--const cacheRustDocker = (configuration, custom) => {- return [- `FROM rust:latest AS planner-${configuration.build.container.name}`,- 'WORKDIR /app',- 'RUN cargo install cargo-chef',- 'COPY . .',- 'RUN cargo chef prepare --recipe-path recipe.json',- 'FROM rust:latest',- 'WORKDIR /app',- 'RUN cargo install cargo-chef',- `COPY --from=planner-${configuration.build.container.name} /app/recipe.json recipe.json`,- 'RUN cargo chef cook --release --recipe-path recipe.json'- ].join('\n')-}--module.exports = async function (configuration) {- const cargoToml = await execShellAsync(`cat ${configuration.general.workdir}/Cargo.toml`)- const parsedToml = TOML.parse(cargoToml)- const custom = {- name: parsedToml.package.name- }- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, cacheRustDocker(configuration, custom))-- let stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:cache` }- )- await streamEvents(stream, configuration)-- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishRustDocker(configuration, custom))-- stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/static/index.js b/api/buildPacks/static/index.jsdeleted file mode 100644index 65a382d798..0000000000--- a/api/buildPacks/static/index.js+++ /dev/null@@ -1,27 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')--// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishStaticDocker = (configuration) => {- return [- 'FROM nginx:stable-alpine',- 'COPY nginx.conf /etc/nginx/nginx.conf',- 'WORKDIR /usr/share/nginx/html',- configuration.build.command.build- ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`- : `COPY ./${configuration.build.directory} ./`,- 'EXPOSE 80',- 'CMD ["nginx", "-g", "daemon off;"]'- ].join('\n')-}--module.exports = async function (configuration) {- if (configuration.build.command.build) await buildImage(configuration, true)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishStaticDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/svelte/index.js b/api/buildPacks/svelte/index.jsdeleted file mode 100644index 46f1b26a70..0000000000--- a/api/buildPacks/svelte/index.js+++ /dev/null@@ -1,25 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')--// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishStaticDocker = (configuration) => {- return [- 'FROM nginx:stable-alpine',- 'COPY nginx.conf /etc/nginx/nginx.conf',- 'WORKDIR /usr/share/nginx/html',- `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,- 'EXPOSE 80',- 'CMD ["nginx", "-g", "daemon off;"]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration, true)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishStaticDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/buildPacks/vuejs/index.js b/api/buildPacks/vuejs/index.jsdeleted file mode 100644index 46f1b26a70..0000000000--- a/api/buildPacks/vuejs/index.js+++ /dev/null@@ -1,25 +0,0 @@-const fs = require('fs').promises-const { buildImage } = require('../helpers')-const { streamEvents, docker } = require('../../libs/docker')--// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',-const publishStaticDocker = (configuration) => {- return [- 'FROM nginx:stable-alpine',- 'COPY nginx.conf /etc/nginx/nginx.conf',- 'WORKDIR /usr/share/nginx/html',- `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,- 'EXPOSE 80',- 'CMD ["nginx", "-g", "daemon off;"]'- ].join('\n')-}--module.exports = async function (configuration) {- await buildImage(configuration, true)- await fs.writeFile(`${configuration.general.workdir}/Dockerfile`, publishStaticDocker(configuration))- const stream = await docker.engine.buildImage(- { src: ['.'], context: configuration.general.workdir },- { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }- )- await streamEvents(stream, configuration)-}diff --git a/api/development/mongodb.js b/api/development/mongodb.jsdeleted file mode 100644index 9441e48fc4..0000000000--- a/api/development/mongodb.js+++ /dev/null@@ -1,36 +0,0 @@-const mongoose = require('mongoose')-const { MongoMemoryServer } = require('mongodb-memory-server-core')--const mongoServer = new MongoMemoryServer({- instance: {- port: 27017,- dbName: 'coolify',- storageEngine: 'wiredTiger'- },- binary: {- version: '4.4.3'-- }-})--mongoose.Promise = Promise-mongoServer.getUri().then((mongoUri) => {- const mongooseOpts = {- useNewUrlParser: true,- useUnifiedTopology: true- }-- mongoose.connect(mongoUri, mongooseOpts)-- mongoose.connection.on('error', (e) => {- if (e.message.code === 'ETIMEDOUT') {- console.log(e)- mongoose.connect(mongoUri, mongooseOpts)- }- console.log(e)- })-- mongoose.connection.once('open', () => {- console.log(`Started in-memory mongodb ${mongoUri}`)- })-})diff --git a/api/libs/applications/build/container.js b/api/libs/applications/build/container.jsdeleted file mode 100644index e22a47e337..0000000000--- a/api/libs/applications/build/container.js+++ /dev/null@@ -1,28 +0,0 @@-const packs = require('../../../buildPacks')-const { saveAppLog } = require('../../logging')-const Deployment = require('../../../models/Deployment')--module.exports = async function (configuration) {- const { id, organization, name, branch } = configuration.repository- const { domain } = configuration.publish- const deployId = configuration.general.deployId-- const execute = packs[configuration.build.pack]- if (execute) {- await Deployment.findOneAndUpdate(- { repoId: id, branch, deployId, organization, name, domain },- { repoId: id, branch, deployId, organization, name, domain, progress: 'inprogress' })- await saveAppLog('### Building application.', configuration)- await execute(configuration)- await saveAppLog('### Building done.', configuration)- } else {- try {- await Deployment.findOneAndUpdate(- { repoId: id, branch, deployId, organization, name, domain },- { repoId: id, branch, deployId, organization, name, domain, progress: 'failed' })- } catch (error) {- // Hmm.- }- throw new Error('No buildpack found.')- }-}diff --git a/api/libs/applications/cleanup/index.js b/api/libs/applications/cleanup/index.jsdeleted file mode 100644index 71b5fca470..0000000000--- a/api/libs/applications/cleanup/index.js+++ /dev/null@@ -1,35 +0,0 @@-const { docker } = require('../../docker')-const { execShellAsync } = require('../../common')-const Deployment = require('../../../models/Deployment')--async function purgeImagesContainers (configuration, deleteAll = false) {- const { name, tag } = configuration.build.container- await execShellAsync('docker container prune -f')- if (deleteAll) {- const IDsToDelete = (await execShellAsync(`docker images ls --filter=reference='${name}' --format '{{json .ID }}'`)).trim().replace(/"/g, '').split('\n')- if (IDsToDelete.length > 0) await execShellAsync(`docker rmi -f ${IDsToDelete.toString().replace(',', ' ')}`)- } else {- const IDsToDelete = (await execShellAsync(`docker images ls --filter=reference='${name}' --filter=before='${name}:${tag}' --format '{{json .ID }}'`)).trim().replace(/"/g, '').split('\n')- if (IDsToDelete.length > 1) await execShellAsync(`docker rmi -f ${IDsToDelete.toString().replace(',', ' ')}`)- }- await execShellAsync('docker image prune -f')-}--async function cleanupStuckedDeploymentsInDB () {- // Cleanup stucked deployments.- await Deployment.updateMany(- { progress: { $in: ['queued', 'inprogress'] } },- { progress: 'failed' }- )-}--async function deleteSameDeployments (configuration) {- await (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application').map(async s => {- const running = JSON.parse(s.Spec.Labels.configuration)- if (running.repository.id === configuration.repository.id && running.repository.branch === configuration.repository.branch) {- await execShellAsync(`docker stack rm ${s.Spec.Labels['com.docker.stack.namespace']}`)- }- })-}--module.exports = { cleanupStuckedDeploymentsInDB, deleteSameDeployments, purgeImagesContainers }diff --git a/api/libs/applications/configuration.js b/api/libs/applications/configuration.jsdeleted file mode 100644index 74024d8477..0000000000--- a/api/libs/applications/configuration.js+++ /dev/null@@ -1,113 +0,0 @@-const { uniqueNamesGenerator, adjectives, colors, animals } = require('unique-names-generator')-const cuid = require('cuid')-const crypto = require('crypto')-const { docker } = require('../docker')-const { execShellAsync, baseServiceConfiguration } = require('../common')--function getUniq () {- return uniqueNamesGenerator({ dictionaries: [adjectives, animals, colors], length: 2 })-}--function setDefaultConfiguration (configuration) {- const nickname = getUniq()- const deployId = cuid()-- const shaBase = JSON.stringify({ repository: configuration.repository })- const sha256 = crypto.createHash('sha256').update(shaBase).digest('hex')-- configuration.build.container.name = sha256.slice(0, 15)-- configuration.general.nickname = nickname- configuration.general.deployId = deployId- configuration.general.workdir = `/tmp/${deployId}`-- if (!configuration.publish.path) configuration.publish.path = '/'- if (!configuration.publish.port) {- if (configuration.build.pack === 'nodejs' && configuration.build.pack === 'vuejs' && configuration.build.pack === 'nuxtjs' && configuration.build.pack === 'rust' && configuration.build.pack === 'nextjs') {- configuration.publish.port = 3000- } else {- configuration.publish.port = 80- }- }-- if (!configuration.build.directory) configuration.build.directory = ''- if (configuration.build.directory.startsWith('/')) configuration.build.directory = configuration.build.directory.replace('/', '')-- if (!configuration.publish.directory) configuration.publish.directory = ''- if (configuration.publish.directory.startsWith('/')) configuration.publish.directory = configuration.publish.directory.replace('/', '')-- if (configuration.build.pack === 'static' || configuration.build.pack === 'nodejs') {- if (!configuration.build.command.installation) configuration.build.command.installation = 'yarn install'- }-- configuration.build.container.baseSHA = crypto.createHash('sha256').update(JSON.stringify(baseServiceConfiguration)).digest('hex')- configuration.baseServiceConfiguration = baseServiceConfiguration-- return configuration-}--async function updateServiceLabels (configuration) {- // In case of any failure during deployment, still update the current configuration.- const services = (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')- const found = services.find(s => {- const config = JSON.parse(s.Spec.Labels.configuration)- if (config.repository.id === configuration.repository.id && config.repository.branch === configuration.repository.branch) {- return config- }- return null- })- if (found) {- const { ID } = found- const Labels = { ...JSON.parse(found.Spec.Labels.configuration), ...configuration }- await execShellAsync(`docker service update --label-add configuration='${JSON.stringify(Labels)}' --label-add com.docker.stack.image='${configuration.build.container.name}:${configuration.build.container.tag}' ${ID}`)- }-}--async function precheckDeployment ({ services, configuration }) {- let foundService = false- let configChanged = false- let imageChanged = false-- let forceUpdate = false-- for (const service of services) {- const running = JSON.parse(service.Spec.Labels.configuration)- if (running) {- if (running.repository.id === configuration.repository.id && running.repository.branch === configuration.repository.branch) {- // Base service configuration changed- if (!running.build.container.baseSHA || running.build.container.baseSHA !== configuration.build.container.baseSHA) {- forceUpdate = true- }- // If the deployment is in error state, forceUpdate- const state = await execShellAsync(`docker stack ps ${running.build.container.name} --format '{{ json . }}'`)- const isError = state.split('\n').filter(n => n).map(s => JSON.parse(s)).filter(n => n.DesiredState !== 'Running' && n.Image.split(':')[1] === running.build.container.tag)- if (isError.length > 0) forceUpdate = true- foundService = true-- const runningWithoutContainer = JSON.parse(JSON.stringify(running))- delete runningWithoutContainer.build.container-- const configurationWithoutContainer = JSON.parse(JSON.stringify(configuration))- delete configurationWithoutContainer.build.container-- // If only the configuration changed- if (JSON.stringify(runningWithoutContainer.build) !== JSON.stringify(configurationWithoutContainer.build) || JSON.stringify(runningWithoutContainer.publish) !== JSON.stringify(configurationWithoutContainer.publish)) configChanged = true- // If only the image changed- if (running.build.container.tag !== configuration.build.container.tag) imageChanged = true- // If build pack changed, forceUpdate the service- if (running.build.pack !== configuration.build.pack) forceUpdate = true- }- }- }- if (forceUpdate) {- imageChanged = false- configChanged = false- }- return {- foundService,- imageChanged,- configChanged,- forceUpdate- }-}-module.exports = { setDefaultConfiguration, updateServiceLabels, precheckDeployment, baseServiceConfiguration }diff --git a/api/libs/applications/deploy/copyFiles.js b/api/libs/applications/deploy/copyFiles.jsdeleted file mode 100644index 41cec0e5d3..0000000000--- a/api/libs/applications/deploy/copyFiles.js+++ /dev/null@@ -1,65 +0,0 @@-const fs = require('fs').promises-module.exports = async function (configuration) {- const staticDeployments = ['react', 'vuejs', 'static', 'svelte', 'gatsby']- try {- // TODO: Write full .dockerignore for all deployments!!- if (configuration.build.pack === 'php') {- await fs.writeFile(`${configuration.general.workdir}/.htaccess`, `- RewriteEngine On- RewriteBase /- RewriteCond %{REQUEST_FILENAME} !-d- RewriteCond %{REQUEST_FILENAME} !-f- RewriteRule ^(.+)$ index.php [QSA,L]- `)- }- // await fs.writeFile(`${configuration.general.workdir}/.dockerignore`, 'node_modules')- if (staticDeployments.includes(configuration.build.pack)) {- await fs.writeFile(- `${configuration.general.workdir}/nginx.conf`,- `user nginx;- worker_processes auto;-- error_log /var/log/nginx/error.log warn;- pid /var/run/nginx.pid;-- events {- worker_connections 1024;- }-- http {- include /etc/nginx/mime.types;-- access_log off;- sendfile on;- #tcp_nopush on;- keepalive_timeout 65;-- server {- listen 80;- server_name localhost;-- location / {- root /usr/share/nginx/html;- index index.html;- try_files $uri $uri/index.html $uri/ /index.html =404;- }-- error_page 404 /50x.html;-- # redirect server error pages to the static page /50x.html- #- error_page 500 502 503 504 /50x.html;- location = /50x.html {- root /usr/share/nginx/html;- }-- }-- }- `- )- }- } catch (error) {- throw new Error(error)- }-}diff --git a/api/libs/applications/deploy/deploy.js b/api/libs/applications/deploy/deploy.jsdeleted file mode 100644index 5094709a08..0000000000--- a/api/libs/applications/deploy/deploy.js+++ /dev/null@@ -1,76 +0,0 @@-const yaml = require('js-yaml')-const fs = require('fs').promises-const { execShellAsync } = require('../../common')-const { docker } = require('../../docker')-const { saveAppLog } = require('../../logging')-const { deleteSameDeployments } = require('../cleanup')--module.exports = async function (configuration, imageChanged) {- const generateEnvs = {}- for (const secret of configuration.publish.secrets) {- generateEnvs[secret.name] = secret.value- }- const containerName = configuration.build.container.name-- // Only save SHA256 of it in the configuration label- const baseServiceConfiguration = configuration.baseServiceConfiguration- delete configuration.baseServiceConfiguration-- const stack = {- version: '3.8',- services: {- [containerName]: {- image: `${configuration.build.container.name}:${configuration.build.container.tag}`,- networks: [`${docker.network}`],- environment: generateEnvs,- deploy: {- ...baseServiceConfiguration,- labels: [- 'managedBy=coolify',- 'type=application',- 'configuration=' + JSON.stringify(configuration),- 'traefik.enable=true',- 'traefik.http.services.' +- configuration.build.container.name +- `.loadbalancer.server.port=${configuration.publish.port}`,- 'traefik.http.routers.' +- configuration.build.container.name +- '.entrypoints=websecure',- 'traefik.http.routers.' +- configuration.build.container.name +- '.rule=Host(`' +- configuration.publish.domain +- '`) && PathPrefix(`' +- configuration.publish.path +- '`)',- 'traefik.http.routers.' +- configuration.build.container.name +- '.tls.certresolver=letsencrypt',- 'traefik.http.routers.' +- configuration.build.container.name +- '.middlewares=global-compress'- ]- }- }- },- networks: {- [`${docker.network}`]: {- external: true- }- }- }- await saveAppLog('### Publishing.', configuration)- await fs.writeFile(`${configuration.general.workdir}/stack.yml`, yaml.dump(stack))- if (imageChanged) {- // console.log('image changed')- await execShellAsync(`docker service update --image ${configuration.build.container.name}:${configuration.build.container.tag} ${configuration.build.container.name}_${configuration.build.container.name}`)- } else {- // console.log('new deployment or force deployment or config changed')- await deleteSameDeployments(configuration)- await execShellAsync(- `cat ${configuration.general.workdir}/stack.yml | docker stack deploy --prune -c - ${containerName}`- )- }-- await saveAppLog('### Published done!', configuration)-}diff --git a/api/libs/applications/github/cloneRepository.js b/api/libs/applications/github/cloneRepository.jsdeleted file mode 100644index bf0448c52e..0000000000--- a/api/libs/applications/github/cloneRepository.js+++ /dev/null@@ -1,44 +0,0 @@-const jwt = require('jsonwebtoken')-const axios = require('axios')-const { execShellAsync } = require('../../common')--module.exports = async function (configuration) {- try {- const { workdir } = configuration.general- const { organization, name, branch } = configuration.repository- const github = configuration.github- if (!github.installation.id || !github.app.id) {- throw new Error('Github installation ID is invalid.')- }- const githubPrivateKey = process.env.GITHUB_APP_PRIVATE_KEY.replace(/\\n/g, '\n').replace(/"/g, '')-- const payload = {- iat: Math.round(new Date().getTime() / 1000),- exp: Math.round(new Date().getTime() / 1000 + 60),- iss: parseInt(github.app.id)- }-- const jwtToken = jwt.sign(payload, githubPrivateKey, {- algorithm: 'RS256'- })- const accessToken = await axios({- method: 'POST',- url: `https://api.github.com/app/installations/${github.installation.id}/access_tokens`,- data: {},- headers: {- Authorization: 'Bearer ' + jwtToken,- Accept: 'application/vnd.github.machine-man-preview+json'- }- })- await execShellAsync(- `mkdir -p ${workdir} && git clone -q -b ${branch} https://x-access-token:${accessToken.data.token}@github.com/${organization}/${name}.git ${workdir}/`- )- configuration.build.container.tag = (- await execShellAsync(`cd ${configuration.general.workdir}/ && git rev-parse HEAD`)- )- .replace('\n', '')- .slice(0, 7)- } catch (error) {- throw new Error(error)- }-}diff --git a/api/libs/applications/index.js b/api/libs/applications/index.jsdeleted file mode 100644index f28341d563..0000000000--- a/api/libs/applications/index.js+++ /dev/null@@ -1,27 +0,0 @@-const dayjs = require('dayjs')--const { saveAppLog } = require('../logging')-const copyFiles = require('./deploy/copyFiles')-const buildContainer = require('./build/container')-const deploy = require('./deploy/deploy')-const Deployment = require('../../models/Deployment')-const { updateServiceLabels } = require('./configuration')--async function queueAndBuild (configuration, imageChanged) {- const { id, organization, name, branch } = configuration.repository- const { domain } = configuration.publish- const { deployId, nickname } = configuration.general- await new Deployment({- repoId: id, branch, deployId, domain, organization, name, nickname- }).save()- await saveAppLog(`${dayjs().format('YYYY-MM-DD HH:mm:ss.SSS')} Queued.`, configuration)- await copyFiles(configuration)- await buildContainer(configuration)- await deploy(configuration, imageChanged)- await Deployment.findOneAndUpdate(- { repoId: id, branch, deployId, organization, name, domain },- { repoId: id, branch, deployId, organization, name, domain, progress: 'done' })- await updateServiceLabels(configuration)-}--module.exports = { queueAndBuild }diff --git a/api/libs/common.js b/api/libs/common.jsdeleted file mode 100644index 8a9c09bff6..0000000000--- a/api/libs/common.js+++ /dev/null@@ -1,117 +0,0 @@-const crypto = require('crypto')-const shell = require('shelljs')-const jsonwebtoken = require('jsonwebtoken')-const { docker } = require('./docker')-const User = require('../models/User')-const algorithm = 'aes-256-cbc'-const key = process.env.SECRETS_ENCRYPTION_KEY--const baseServiceConfiguration = {- replicas: 1,- restart_policy: {- condition: 'any',- max_attempts: 6- },- update_config: {- parallelism: 1,- delay: '10s',- order: 'start-first'- },- rollback_config: {- parallelism: 1,- delay: '10s',- order: 'start-first',- failure_action: 'rollback'- }-}-function delay (t) {- return new Promise(function (resolve) {- setTimeout(function () {- resolve('OK')- }, t)- })-}--async function verifyUserId (authorization) {- try {- const token = authorization.split(' ')[1]- const verify = jsonwebtoken.verify(token, process.env.JWT_SIGN_KEY)- const found = await User.findOne({ uid: verify.jti })- if (found) {- return true- } else {- return false- }- } catch (error) {- return false- }-}-function execShellAsync (cmd, opts = {}) {- try {- return new Promise(function (resolve, reject) {- shell.config.silent = true- shell.exec(cmd, opts, function (code, stdout, stderr) {- if (code !== 0) return reject(new Error(stderr))- return resolve(stdout)- })- })- } catch (error) {- return new Error('Oops')- }-}-function cleanupTmp (dir) {- if (dir !== '/') shell.rm('-fr', dir)-}--async function checkImageAvailable (name) {- let cacheAvailable = false- try {- await docker.engine.getImage(name).get()- cacheAvailable = true- } catch (e) {- // Cache image not found- }- return cacheAvailable-}--function encryptData (text) {- const iv = crypto.randomBytes(16)- const cipher = crypto.createCipheriv(algorithm, Buffer.from(key), iv)- let encrypted = cipher.update(text)- encrypted = Buffer.concat([encrypted, cipher.final()])- return { iv: iv.toString('hex'), encryptedData: encrypted.toString('hex') }-}--function decryptData (text) {- const iv = Buffer.from(text.iv, 'hex')- const encryptedText = Buffer.from(text.encryptedData, 'hex')- const decipher = crypto.createDecipheriv(algorithm, Buffer.from(key), iv)- let decrypted = decipher.update(encryptedText)- decrypted = Buffer.concat([decrypted, decipher.final()])- return decrypted.toString()-}--function createToken (payload) {- const { uuid } = payload- return jsonwebtoken.sign({}, process.env.JWT_SIGN_KEY, {- expiresIn: 15778800,- algorithm: 'HS256',- audience: 'coolify',- issuer: 'coolify',- jwtid: uuid,- subject: `User:${uuid}`,- notBefore: -1000- })-}--module.exports = {- delay,- createToken,- execShellAsync,- cleanupTmp,- checkImageAvailable,- encryptData,- decryptData,- verifyUserId,- baseServiceConfiguration-}diff --git a/api/libs/docker.js b/api/libs/docker.jsdeleted file mode 100644index 1ef28ca5c4..0000000000--- a/api/libs/docker.js+++ /dev/null@@ -1,28 +0,0 @@-const Dockerode = require('dockerode')-const { saveAppLog } = require('./logging')--const docker = {- engine: new Dockerode({- socketPath: process.env.DOCKER_ENGINE- }),- network: process.env.DOCKER_NETWORK-}-async function streamEvents (stream, configuration) {- await new Promise((resolve, reject) => {- docker.engine.modem.followProgress(stream, onFinished, onProgress)- function onFinished (err, res) {- if (err) reject(err)- resolve(res)- }- function onProgress (event) {- if (event.error) {- saveAppLog(event.error, configuration, true)- reject(event.error)- } else if (event.stream) {- saveAppLog(event.stream, configuration)- }- }- })-}--module.exports = { streamEvents, docker }diff --git a/api/libs/http-error/handlers.js b/api/libs/http-error/handlers.jsdeleted file mode 100644index 013d6c783c..0000000000--- a/api/libs/http-error/handlers.js+++ /dev/null@@ -1,75 +0,0 @@-/* eslint-disable */-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.handleErrors = exports.handleValidationError = exports.handleNotFoundError = void 0;-const http_errors_enhanced_1 = require("http-errors-enhanced");-const interfaces_1 = require("./interfaces");-const utils_1 = require("./utils");-const validation_1 = require("./validation");-function handleNotFoundError(request, reply) {- handleErrors(new http_errors_enhanced_1.NotFoundError('Not found.'), request, reply);-}-exports.handleNotFoundError = handleNotFoundError;-function handleValidationError(error, request) {- /*- As seen in https://github.com/fastify/fastify/blob/master/lib/validation.js- the error.message will always start with the relative section (params, querystring, headers, body)- and fastify throws on first failing section.- */- const section = error.message.match(/^\w+/)[0];- return new http_errors_enhanced_1.BadRequestError('One or more validations failed trying to process your request.', {- failedValidations: validation_1.convertValidationErrors(section, Reflect.get(request, section), error.validation)- });-}-exports.handleValidationError = handleValidationError;-function handleErrors(error, request, reply) {- var _a, _b;- // It is a generic error, handle it- const code = error.code;- if (!('statusCode' in error)) {- if ('validation' in error && ((_a = request[interfaces_1.kHttpErrorsEnhancedConfiguration]) === null || _a === void 0 ? void 0 : _a.convertValidationErrors)) {- // If it is a validation error, convert errors to human friendly format- error = handleValidationError(error, request);- }- else if ((_b = request[interfaces_1.kHttpErrorsEnhancedConfiguration]) === null || _b === void 0 ? void 0 : _b.hideUnhandledErrors) {- // It is requested to hide the error, just log it and then create a generic one- request.log.error({ error: http_errors_enhanced_1.serializeError(error) });- error = new http_errors_enhanced_1.InternalServerError('An error occurred trying to process your request.');- }- else {- // Wrap in a HttpError, making the stack explicitily available- error = new http_errors_enhanced_1.InternalServerError(http_errors_enhanced_1.serializeError(error));- Object.defineProperty(error, 'stack', { enumerable: true });- }- }- else if (code === 'INVALID_CONTENT_TYPE' || code === 'FST_ERR_CTP_INVALID_MEDIA_TYPE') {- error = new http_errors_enhanced_1.UnsupportedMediaTypeError(utils_1.upperFirst(validation_1.validationMessagesFormatters.contentType()));- }- else if (code === 'FST_ERR_CTP_EMPTY_JSON_BODY') {- error = new http_errors_enhanced_1.BadRequestError(utils_1.upperFirst(validation_1.validationMessagesFormatters.jsonEmpty()));- }- else if (code === 'MALFORMED_JSON' || error.message === 'Invalid JSON' || error.stack.includes('at JSON.parse')) {- error = new http_errors_enhanced_1.BadRequestError(utils_1.upperFirst(validation_1.validationMessagesFormatters.json()));- }- // Get the status code- let { statusCode, headers } = error;- // Code outside HTTP range- if (statusCode < 100 || statusCode > 599) {- statusCode = http_errors_enhanced_1.INTERNAL_SERVER_ERROR;- }- // Create the body- const body = {- statusCode,- error: http_errors_enhanced_1.messagesByCodes[statusCode],- message: error.message- };- http_errors_enhanced_1.addAdditionalProperties(body, error);- // Send the error back- // eslint-disable-next-line @typescript-eslint/no-floating-promises- reply- .code(statusCode)- .headers(headers !== null && headers !== void 0 ? headers : {})- .type('application/json')- .send(body);-}-exports.handleErrors = handleErrors;diff --git a/api/libs/http-error/index.js b/api/libs/http-error/index.jsdeleted file mode 100644index 4cffd23625..0000000000--- a/api/libs/http-error/index.js+++ /dev/null@@ -1,58 +0,0 @@-/* eslint-disable */-"use strict";-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });-}) : (function(o, m, k, k2) {- if (k2 === undefined) k2 = k;- o[k2] = m[k];-}));-var __exportStar = (this && this.__exportStar) || function(m, exports) {- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);-};-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.plugin = exports.validationMessagesFormatters = exports.niceJoin = exports.convertValidationErrors = void 0;-const fastify_plugin_1 = __importDefault(require("fastify-plugin"));-const handlers_1 = require("./handlers");-const interfaces_1 = require("./interfaces");-const validation_1 = require("./validation");-__exportStar(require("./handlers"), exports);-__exportStar(require("./interfaces"), exports);-var validation_2 = require("./validation");-Object.defineProperty(exports, "convertValidationErrors", { enumerable: true, get: function () { return validation_2.convertValidationErrors; } });-Object.defineProperty(exports, "niceJoin", { enumerable: true, get: function () { return validation_2.niceJoin; } });-Object.defineProperty(exports, "validationMessagesFormatters", { enumerable: true, get: function () { return validation_2.validationMessagesFormatters; } });-exports.plugin = fastify_plugin_1.default(function (instance, options, done) {- var _a, _b, _c, _d;- const isProduction = process.env.NODE_ENV === 'production';- const convertResponsesValidationErrors = (_a = options.convertResponsesValidationErrors) !== null && _a !== void 0 ? _a : !isProduction;- const configuration = {- hideUnhandledErrors: (_b = options.hideUnhandledErrors) !== null && _b !== void 0 ? _b : isProduction,- convertValidationErrors: (_c = options.convertValidationErrors) !== null && _c !== void 0 ? _c : true,- responseValidatorCustomizer: options.responseValidatorCustomizer,- allowUndeclaredResponses: (_d = options.allowUndeclaredResponses) !== null && _d !== void 0 ? _d : false- };- instance.decorate(interfaces_1.kHttpErrorsEnhancedConfiguration, null);- instance.decorateRequest(interfaces_1.kHttpErrorsEnhancedConfiguration, null);- instance.addHook('onRequest', async (request) => {- request[interfaces_1.kHttpErrorsEnhancedConfiguration] = configuration;- });- instance.setErrorHandler(handlers_1.handleErrors);- // instance.setNotFoundHandler(handlers_1.handleNotFoundError);- if (convertResponsesValidationErrors) {- instance.decorate(interfaces_1.kHttpErrorsEnhancedResponseValidations, []);- instance.addHook('onRoute', validation_1.addResponseValidation);- instance.addHook('onReady', validation_1.compileResponseValidationSchema.bind(instance, configuration));- }- done();-}, { name: 'fastify-http-errors-enhanced' });-exports.default = exports.plugin;-// Fix CommonJS exporting-/* istanbul ignore else */-if (typeof module !== 'undefined') {- module.exports = exports.plugin;- Object.assign(module.exports, exports);-}diff --git a/api/libs/http-error/interfaces.js b/api/libs/http-error/interfaces.jsdeleted file mode 100644index 794d587c46..0000000000--- a/api/libs/http-error/interfaces.js+++ /dev/null@@ -1,6 +0,0 @@-/* eslint-disable */-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.kHttpErrorsEnhancedResponseValidations = exports.kHttpErrorsEnhancedConfiguration = void 0;-exports.kHttpErrorsEnhancedConfiguration = Symbol('fastify-http-errors-enhanced-configuration');-exports.kHttpErrorsEnhancedResponseValidations = Symbol('fastify-http-errors-enhanced-response-validation');diff --git a/api/libs/http-error/utils.js b/api/libs/http-error/utils.jsdeleted file mode 100644index caf07313ac..0000000000--- a/api/libs/http-error/utils.js+++ /dev/null@@ -1,31 +0,0 @@-/* eslint-disable */-"use strict";-Object.defineProperty(exports, "__esModule", { value: true });-exports.get = exports.upperFirst = void 0;-function upperFirst(source) {- if (typeof source !== 'string' || !source.length) {- return source;- }- return source[0].toUpperCase() + source.substring(1);-}-exports.upperFirst = upperFirst;-function get(target, path) {- var _a;- const tokens = path.split('.').map((t) => t.trim());- for (const token of tokens) {- if (typeof target === 'undefined' || target === null) {- // We're supposed to be still iterating, but the chain is over - Return undefined- target = undefined;- break;- }- const index = token.match(/^(\d+)|(?:\[(\d+)\])$/);- if (index) {- target = target[parseInt((_a = index[1]) !== null && _a !== void 0 ? _a : index[2], 10)];- }- else {- target = target[token];- }- }- return target;-}-exports.get = get;diff --git a/api/libs/http-error/validation.js b/api/libs/http-error/validation.jsdeleted file mode 100644index f417be2b00..0000000000--- a/api/libs/http-error/validation.js+++ /dev/null@@ -1,239 +0,0 @@-/* eslint-disable */-"use strict";-var __importDefault = (this && this.__importDefault) || function (mod) {- return (mod && mod.__esModule) ? mod : { "default": mod };-};-Object.defineProperty(exports, "__esModule", { value: true });-exports.compileResponseValidationSchema = exports.addResponseValidation = exports.convertValidationErrors = exports.validationMessagesFormatters = exports.niceJoin = void 0;-const ajv_1 = __importDefault(require("ajv"));-const http_errors_enhanced_1 = require("http-errors-enhanced");-const interfaces_1 = require("./interfaces");-const utils_1 = require("./utils");-function niceJoin(array, lastSeparator = ' and ', separator = ', ') {- switch (array.length) {- case 0:- return '';- case 1:- return array[0];- case 2:- return array.join(lastSeparator);- default:- return array.slice(0, array.length - 1).join(separator) + lastSeparator + array[array.length - 1];- }-}-exports.niceJoin = niceJoin;-exports.validationMessagesFormatters = {- contentType: () => 'only JSON payloads are accepted. Please set the "Content-Type" header to start with "application/json"',- json: () => 'the body payload is not a valid JSON',- jsonEmpty: () => 'the JSON body payload cannot be empty if the "Content-Type" header is set',- missing: () => 'must be present',- unknown: () => 'is not a valid property',- uuid: () => 'must be a valid GUID (UUID v4)',- timestamp: () => 'must be a valid ISO 8601 / RFC 3339 timestamp (example: 2018-07-06T12:34:56Z)',- date: () => 'must be a valid ISO 8601 / RFC 3339 date (example: 2018-07-06)',- time: () => 'must be a valid ISO 8601 / RFC 3339 time (example: 12:34:56)',- uri: () => 'must be a valid URI',- hostname: () => 'must be a valid hostname',- ipv4: () => 'must be a valid IPv4',- ipv6: () => 'must be a valid IPv6',- paramType: (type) => {- switch (type) {- case 'integer':- return 'must be a valid integer number';- case 'number':- return 'must be a valid number';- case 'boolean':- return 'must be a valid boolean (true or false)';- case 'object':- return 'must be a object';- case 'array':- return 'must be an array';- default:- return 'must be a string';- }- },- presentString: () => 'must be a non empty string',- minimum: (min) => `must be a number greater than or equal to ${min}`,- maximum: (max) => `must be a number less than or equal to ${max}`,- minimumProperties(min) {- return min === 1 ? 'cannot be a empty object' : `must be a object with at least ${min} properties`;- },- maximumProperties(max) {- return max === 0 ? 'must be a empty object' : `must be a object with at most ${max} properties`;- },- minimumItems(min) {- return min === 1 ? 'cannot be a empty array' : `must be an array with at least ${min} items`;- },- maximumItems(max) {- return max === 0 ? 'must be a empty array' : `must be an array with at most ${max} items`;- },- enum: (values) => `must be one of the following values: ${niceJoin(values.map((f) => `"${f}"`), ' or ')}`,- pattern: (pattern) => `must match pattern "${pattern.replace(/\(\?:/g, '(')}"`,- invalidResponseCode: (code) => `This endpoint cannot respond with HTTP status ${code}.`,- invalidResponse: (code) => `The response returned from the endpoint violates its specification for the HTTP status ${code}.`,- invalidFormat: (format) => `must match format "${format}" (format)`-};-function convertValidationErrors(section, data, validationErrors) {- const errors = {};- if (section === 'querystring') {- section = 'query';- }- // For each error- for (const e of validationErrors) {- let message = '';- let pattern;- let value;- let reason;- // Normalize the key- let key = e.dataPath;- if (key.startsWith('.')) {- key = key.substring(1);- }- // Remove useless quotes- /* istanbul ignore next */- if (key.startsWith('[') && key.endsWith(']')) {- key = key.substring(1, key.length - 1);- }- // Depending on the type- switch (e.keyword) {- case 'required':- case 'dependencies':- key = e.params.missingProperty;- message = exports.validationMessagesFormatters.missing();- break;- case 'additionalProperties':- key = e.params.additionalProperty;- message = exports.validationMessagesFormatters.unknown();- break;- case 'type':- message = exports.validationMessagesFormatters.paramType(e.params.type);- break;- case 'minProperties':- message = exports.validationMessagesFormatters.minimumProperties(e.params.limit);- break;- case 'maxProperties':- message = exports.validationMessagesFormatters.maximumProperties(e.params.limit);- break;- case 'minItems':- message = exports.validationMessagesFormatters.minimumItems(e.params.limit);- break;- case 'maxItems':- message = exports.validationMessagesFormatters.maximumItems(e.params.limit);- break;- case 'minimum':- message = exports.validationMessagesFormatters.minimum(e.params.limit);- break;- case 'maximum':- message = exports.validationMessagesFormatters.maximum(e.params.limit);- break;- case 'enum':- message = exports.validationMessagesFormatters.enum(e.params.allowedValues);- break;- case 'pattern':- pattern = e.params.pattern;- value = utils_1.get(data, key);- if (pattern === '.+' && !value) {- message = exports.validationMessagesFormatters.presentString();- }- else {- message = exports.validationMessagesFormatters.pattern(e.params.pattern);- }- break;- case 'format':- reason = e.params.format;- // Normalize the key- if (reason === 'date-time') {- reason = 'timestamp';- }- message = (exports.validationMessagesFormatters[reason] || exports.validationMessagesFormatters.invalidFormat)(reason);- break;- }- // No custom message was found, default to input one replacing the starting verb and adding some path info- if (!message.length) {- message = `${e.message.replace(/^should/, 'must')} (${e.keyword})`;- }- // Remove useless quotes- /* istanbul ignore next */- if (key.match(/(?:^['"])(?:[^.]+)(?:['"]$)/)) {- key = key.substring(1, key.length - 1);- }- // Fix empty properties- if (!key) {- key = '$root';- }- key = key.replace(/^\//, '');- errors[key] = message;- }- return { [section]: errors };-}-exports.convertValidationErrors = convertValidationErrors;-function addResponseValidation(route) {- var _a;- if (!((_a = route.schema) === null || _a === void 0 ? void 0 : _a.response)) {- return;- }- const validators = {};- /*- Add these validators to the list of the one to compile once the server is started.- This makes possible to handle shared schemas.- */- this[interfaces_1.kHttpErrorsEnhancedResponseValidations].push([- this,- validators,- Object.entries(route.schema.response)- ]);- // Note that this hook is not called for non JSON payloads therefore validation is not possible in such cases- route.preSerialization = async function (request, reply, payload) {- const statusCode = reply.raw.statusCode;- // Never validate error 500- if (statusCode === http_errors_enhanced_1.INTERNAL_SERVER_ERROR) {- return payload;- }- // No validator, it means the HTTP status is not allowed- const validator = validators[statusCode];- if (!validator) {- if (request[interfaces_1.kHttpErrorsEnhancedConfiguration].allowUndeclaredResponses) {- return payload;- }- throw new http_errors_enhanced_1.InternalServerError(exports.validationMessagesFormatters.invalidResponseCode(statusCode));- }- // Now validate the payload- const valid = validator(payload);- if (!valid) {- throw new http_errors_enhanced_1.InternalServerError(exports.validationMessagesFormatters.invalidResponse(statusCode), {- failedValidations: convertValidationErrors('response', payload, validator.errors)- });- }- return payload;- };-}-exports.addResponseValidation = addResponseValidation;-function compileResponseValidationSchema(configuration) {- // Fix CJS/ESM interoperability- // @ts-expect-error- let AjvConstructor = ajv_1.default;- /* istanbul ignore next */- if (AjvConstructor.default) {- AjvConstructor = AjvConstructor.default;- }- const hasCustomizer = typeof configuration.responseValidatorCustomizer === 'function';- for (const [instance, validators, schemas] of this[interfaces_1.kHttpErrorsEnhancedResponseValidations]) {- // @ts-expect-error- const compiler = new AjvConstructor({- // The fastify defaults, with the exception of removeAdditional and coerceTypes, which have been reversed- removeAdditional: false,- useDefaults: true,- coerceTypes: false,- allErrors: true- });- compiler.addSchema(Object.values(instance.getSchemas()));- compiler.addKeyword('example');- if (hasCustomizer) {- configuration.responseValidatorCustomizer(compiler);- }- for (const [code, schema] of schemas) {- validators[code] = compiler.compile(schema);- }- }-}-exports.compileResponseValidationSchema = compileResponseValidationSchema;diff --git a/api/libs/logging.js b/api/libs/logging.jsdeleted file mode 100644index f4e08e3954..0000000000--- a/api/libs/logging.js+++ /dev/null@@ -1,48 +0,0 @@-const dayjs = require('dayjs')-const axios = require('axios')--const ApplicationLog = require('../models/Logs/Application')-const ServerLog = require('../models/Logs/Server')-const Settings = require('../models/Settings')-const { version } = require('../../package.json')--function generateTimestamp () {- return `${dayjs().format('YYYY-MM-DD HH:mm:ss.SSS')} `-}-const patterns = [- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'-].join('|')--async function saveAppLog (event, configuration, isError) {- try {- const deployId = configuration.general.deployId- const repoId = configuration.repository.id- const branch = configuration.repository.branch- if (isError) {- const clearedEvent = '[ERROR 😱] ' + generateTimestamp() + event.replace(new RegExp(patterns, 'g'), '').replace(/(\r\n|\n|\r)/gm, '')- await new ApplicationLog({ repoId, branch, deployId, event: clearedEvent }).save()- } else {- if (event && event !== '\n') {- const clearedEvent = '[INFO] ' + generateTimestamp() + event.replace(new RegExp(patterns, 'g'), '').replace(/(\r\n|\n|\r)/gm, '')- await new ApplicationLog({ repoId, branch, deployId, event: clearedEvent }).save()- }- }- } catch (error) {- console.log(error)- return error- }-}--async function saveServerLog (error) {- const settings = await Settings.findOne({ applicationName: 'coolify' })- const payload = { message: error.message, stack: error.stack, type: error.type || 'spaghetticode', version }-- const found = await ServerLog.find(payload)- if (found.length === 0 && error.message) await new ServerLog(payload).save()- if (settings && settings.sendErrors && process.env.NODE_ENV === 'production') await axios.post('https://errors.coollabs.io/api/error', payload)-}-module.exports = {- saveAppLog,- saveServerLog-}diff --git a/api/libs/services/plausible/index.js b/api/libs/services/plausible/index.jsdeleted file mode 100644index 7e8c61fccf..0000000000--- a/api/libs/services/plausible/index.js+++ /dev/null@@ -1,185 +0,0 @@-const { execShellAsync, cleanupTmp, baseServiceConfiguration } = require('../../common')-const yaml = require('js-yaml')-const fs = require('fs').promises-const generator = require('generate-password')-const { docker } = require('../../docker')--async function plausible ({ email, userName, userPassword, baseURL, traefikURL }) {- const deployId = 'plausible'- const workdir = '/tmp/plausible'- const secretKey = generator.generate({ length: 64, numbers: true, strict: true })- const generateEnvsPostgres = {- POSTGRESQL_PASSWORD: generator.generate({ length: 24, numbers: true, strict: true }),- POSTGRESQL_USERNAME: generator.generate({ length: 10, numbers: true, strict: true }),- POSTGRESQL_DATABASE: 'plausible'- }-- const secrets = [- { name: 'ADMIN_USER_EMAIL', value: email },- { name: 'ADMIN_USER_NAME', value: userName },- { name: 'ADMIN_USER_PWD', value: userPassword },- { name: 'BASE_URL', value: baseURL },- { name: 'SECRET_KEY_BASE', value: secretKey },- { name: 'DISABLE_AUTH', value: 'false' },- { name: 'DISABLE_REGISTRATION', value: 'true' },- { name: 'DATABASE_URL', value: `postgresql://${generateEnvsPostgres.POSTGRESQL_USERNAME}:${generateEnvsPostgres.POSTGRESQL_PASSWORD}@plausible_db:5432/${generateEnvsPostgres.POSTGRESQL_DATABASE}` },- { name: 'CLICKHOUSE_DATABASE_URL', value: 'http://plausible_events_db:8123/plausible' }- ]-- const generateEnvsClickhouse = {}- for (const secret of secrets) generateEnvsClickhouse[secret.name] = secret.value-- const clickhouseConfigXml = `- <yandex>- <logger>- <level>warning</level>- <console>true</console>- </logger>-- <!-- Stop all the unnecessary logging -->- <query_thread_log remove="remove"/>- <query_log remove="remove"/>- <text_log remove="remove"/>- <trace_log remove="remove"/>- <metric_log remove="remove"/>- <asynchronous_metric_log remove="remove"/>- </yandex>`- const clickhouseUserConfigXml = `- <yandex>- <profiles>- <default>- <log_queries>0</log_queries>- <log_query_threads>0</log_query_threads>- </default>- </profiles>- </yandex>`-- const clickhouseConfigs = [- { source: 'plausible-clickhouse-user-config.xml', target: '/etc/clickhouse-server/users.d/logging.xml' },- { source: 'plausible-clickhouse-config.xml', target: '/etc/clickhouse-server/config.d/logging.xml' },- { source: 'plausible-init.query', target: '/docker-entrypoint-initdb.d/init.query' },- { source: 'plausible-init-db.sh', target: '/docker-entrypoint-initdb.d/init-db.sh' }- ]-- const initQuery = 'CREATE DATABASE IF NOT EXISTS plausible;'- const initScript = 'clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query'- await execShellAsync(`mkdir -p ${workdir}`)- await fs.writeFile(`${workdir}/clickhouse-config.xml`, clickhouseConfigXml)- await fs.writeFile(`${workdir}/clickhouse-user-config.xml`, clickhouseUserConfigXml)- await fs.writeFile(`${workdir}/init.query`, initQuery)- await fs.writeFile(`${workdir}/init-db.sh`, initScript)- const stack = {- version: '3.8',- services: {- [deployId]: {- image: 'plausible/analytics:latest',- command: 'sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"',- networks: [`${docker.network}`],- volumes: [`${deployId}-postgres-data:/var/lib/postgresql/data`],- environment: generateEnvsClickhouse,- deploy: {- ...baseServiceConfiguration,- labels: [- 'managedBy=coolify',- 'type=service',- 'serviceName=plausible',- 'configuration=' + JSON.stringify({ email, userName, userPassword, baseURL, secretKey, generateEnvsPostgres, generateEnvsClickhouse }),- 'traefik.enable=true',- 'traefik.http.services.' +- deployId +- '.loadbalancer.server.port=8000',- 'traefik.http.routers.' +- deployId +- '.entrypoints=websecure',- 'traefik.http.routers.' +- deployId +- '.rule=Host(`' +- traefikURL +- '`) && PathPrefix(`/`)',- 'traefik.http.routers.' +- deployId +- '.tls.certresolver=letsencrypt',- 'traefik.http.routers.' +- deployId +- '.middlewares=global-compress'- ]- }- },- plausible_db: {- image: 'bitnami/postgresql:13.2.0',- networks: [`${docker.network}`],- environment: generateEnvsPostgres,- deploy: {- ...baseServiceConfiguration,- labels: [- 'managedBy=coolify',- 'type=service',- 'serviceName=plausible'- ]- }- },- plausible_events_db: {- image: 'yandex/clickhouse-server:21.3.2.5',- networks: [`${docker.network}`],- volumes: [`${deployId}-clickhouse-data:/var/lib/clickhouse`],- ulimits: {- nofile: {- soft: 262144,- hard: 262144- }- },- configs: [...clickhouseConfigs],- deploy: {- ...baseServiceConfiguration,- labels: [- 'managedBy=coolify',- 'type=service',- 'serviceName=plausible'- ]- }- }- },- networks: {- [`${docker.network}`]: {- external: true- }- },- volumes: {- [`${deployId}-clickhouse-data`]: {- external: true- },- [`${deployId}-postgres-data`]: {- external: true- }- },- configs: {- 'plausible-clickhouse-user-config.xml': {- file: `${workdir}/clickhouse-user-config.xml`- },- 'plausible-clickhouse-config.xml': {- file: `${workdir}/clickhouse-config.xml`- },- 'plausible-init.query': {- file: `${workdir}/init.query`- },- 'plausible-init-db.sh': {- file: `${workdir}/init-db.sh`- }- }- }- await fs.writeFile(`${workdir}/stack.yml`, yaml.dump(stack))- await execShellAsync('docker stack rm plausible')- await execShellAsync(- `cat ${workdir}/stack.yml | docker stack deploy --prune -c - ${deployId}`- )- cleanupTmp(workdir)-}--async function activateAdminUser () {- const { POSTGRESQL_USERNAME, POSTGRESQL_PASSWORD, POSTGRESQL_DATABASE } = JSON.parse(JSON.parse((await execShellAsync('docker service inspect plausible_plausible --format=\'{{json .Spec.Labels.configuration}}\'')))).generateEnvsPostgres- const containers = (await execShellAsync('docker ps -a --format=\'{{json .Names}}\'')).replace(/"/g, '').trim().split('\n')- const postgresDB = containers.find(container => container.startsWith('plausible_plausible_db'))- await execShellAsync(`docker exec ${postgresDB} psql -H postgresql://${POSTGRESQL_USERNAME}:${POSTGRESQL_PASSWORD}@localhost:5432/${POSTGRESQL_DATABASE} -c "UPDATE users SET email_verified = true;"`)-}--module.exports = { plausible, activateAdminUser }diff --git a/api/models/Deployment.js b/api/models/Deployment.jsdeleted file mode 100644index 496b5c020f..0000000000--- a/api/models/Deployment.js+++ /dev/null@@ -1,16 +0,0 @@-const mongoose = require('mongoose')-const deploymentSchema = mongoose.Schema(- {- deployId: { type: String, required: true },- nickname: { type: String, required: true },- repoId: { type: Number, required: true },- organization: { type: String, required: true },- name: { type: String, required: true },- branch: { type: String, required: true },- domain: { type: String, required: true },- progress: { type: String, require: true, default: 'queued' }- },- { timestamps: true }-)--module.exports = mongoose.model('deployment', deploymentSchema)diff --git a/api/models/Logs/Application.js b/api/models/Logs/Application.jsdeleted file mode 100644index eb797ca367..0000000000--- a/api/models/Logs/Application.js+++ /dev/null@@ -1,10 +0,0 @@-const mongoose = require('mongoose')-const logSchema = mongoose.Schema(- {- deployId: { type: String, required: true },- event: { type: String, required: true }- },- { timestamps: { createdAt: 'createdAt', updatedAt: false } }-)--module.exports = mongoose.model('logs-application', logSchema)diff --git a/api/models/Logs/Server.js b/api/models/Logs/Server.jsdeleted file mode 100644index a5abc460e3..0000000000--- a/api/models/Logs/Server.js+++ /dev/null@@ -1,14 +0,0 @@-const mongoose = require('mongoose')-const { version } = require('../../../package.json')-const logSchema = mongoose.Schema(- {- version: { type: String, default: version },- type: { type: String, required: true },- message: { type: String, required: true },- stack: { type: String },- seen: { type: Boolean, default: false }- },- { timestamps: { createdAt: 'createdAt', updatedAt: false } }-)--module.exports = mongoose.model('logs-server', logSchema)diff --git a/api/models/Settings.js b/api/models/Settings.jsdeleted file mode 100644index c6d424364e..0000000000--- a/api/models/Settings.js+++ /dev/null@@ -1,12 +0,0 @@-const mongoose = require('mongoose')--const settingsSchema = mongoose.Schema(- {- applicationName: { type: String, required: true, default: 'coolify' },- allowRegistration: { type: Boolean, required: true, default: false },- sendErrors: { type: Boolean, required: true, default: true }- },- { timestamps: true }-)--module.exports = mongoose.model('settings', settingsSchema)diff --git a/api/models/User.js b/api/models/User.jsdeleted file mode 100644index 84fbf8b00e..0000000000--- a/api/models/User.js+++ /dev/null@@ -1,12 +0,0 @@-const mongoose = require('mongoose')--const userSchema = mongoose.Schema(- {- email: { type: String, required: true },- avatar: { type: String },- uid: { type: String, required: true }- },- { timestamps: true }-)--module.exports = mongoose.model('user', userSchema)diff --git a/api/plugins/authentication.js b/api/plugins/authentication.jsdeleted file mode 100644index 4cbde66854..0000000000--- a/api/plugins/authentication.js+++ /dev/null@@ -1,21 +0,0 @@-const fp = require('fastify-plugin')-const User = require('../models/User')-module.exports = fp(async function (fastify, options, next) {- fastify.register(require('fastify-jwt'), {- secret: fastify.config.JWT_SIGN_KEY- })- fastify.addHook('onRequest', async (request, reply) => {- try {- const { jti } = await request.jwtVerify()- const found = await User.findOne({ uid: jti })- if (found) {- return true- } else {- reply.code(401).send('Unauthorized')- }- } catch (err) {- reply.code(401).send('Unauthorized')- }- })- next()-})diff --git a/api/routes/v1/application/check.js b/api/routes/v1/application/check.jsdeleted file mode 100644index 0ea8eb853c..0000000000--- a/api/routes/v1/application/check.js+++ /dev/null@@ -1,37 +0,0 @@--const { setDefaultConfiguration } = require('../../../libs/applications/configuration')-const { docker } = require('../../../libs/docker')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- fastify.post('/', async (request, reply) => {- try {- const configuration = setDefaultConfiguration(request.body)-- const services = (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')- let foundDomain = false-- for (const service of services) {- const running = JSON.parse(service.Spec.Labels.configuration)- if (running) {- if (- running.publish.domain === configuration.publish.domain &&- running.repository.id !== configuration.repository.id &&- running.publish.path === configuration.publish.path- ) {- foundDomain = true- }- }- }- if (fastify.config.DOMAIN === configuration.publish.domain) foundDomain = true- if (foundDomain) {- reply.code(500).send({ message: 'Domain already in use.' })- return- }- return { message: 'OK' }- } catch (error) {- await saveServerLog(error)- throw new Error(error)- }- })-}diff --git a/api/routes/v1/application/deploy/index.js b/api/routes/v1/application/deploy/index.jsdeleted file mode 100644index 9b2751afd3..0000000000--- a/api/routes/v1/application/deploy/index.js+++ /dev/null@@ -1,69 +0,0 @@--const Deployment = require('../../../../models/Deployment')-const ApplicationLog = require('../../../../models/Logs/Application')-const { verifyUserId, cleanupTmp } = require('../../../../libs/common')-const { purgeImagesContainers } = require('../../../../libs/applications/cleanup')-const { queueAndBuild } = require('../../../../libs/applications')-const { setDefaultConfiguration, precheckDeployment } = require('../../../../libs/applications/configuration')-const { docker } = require('../../../../libs/docker')-const { saveServerLog } = require('../../../../libs/logging')-const cloneRepository = require('../../../../libs/applications/github/cloneRepository')--module.exports = async function (fastify) {- fastify.post('/', async (request, reply) => {- let configuration- try {- await verifyUserId(request.headers.authorization)- } catch (error) {- reply.code(500).send({ error: 'Invalid request' })- return- }- try {- const services = (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')- configuration = setDefaultConfiguration(request.body)- if (!configuration) {- throw new Error('Whaat?')- }- await cloneRepository(configuration)- const { foundService, imageChanged, configChanged, forceUpdate } = await precheckDeployment({ services, configuration })-- if (foundService && !forceUpdate && !imageChanged && !configChanged) {- cleanupTmp(configuration.general.workdir)- reply.code(500).send({ message: 'Nothing changed, no need to redeploy.' })- return- }-- const alreadyQueued = await Deployment.find({- repoId: configuration.repository.id,- branch: configuration.repository.branch,- organization: configuration.repository.organization,- name: configuration.repository.name,- domain: configuration.publish.domain,- progress: { $in: ['queued', 'inprogress'] }- })-- if (alreadyQueued.length > 0) {- reply.code(200).send({ message: 'Already in the queue.' })- return- }-- reply.code(201).send({ message: 'Deployment queued.', nickname: configuration.general.nickname, name: configuration.build.container.name, deployId: configuration.general.deployId })- await queueAndBuild(configuration, imageChanged)- } catch (error) {- const { id, organization, name, branch } = configuration.repository- const { domain } = configuration.publish- const { deployId } = configuration.general- await Deployment.findOneAndUpdate(- { repoId: id, branch, deployId, organization, name, domain },- { repoId: id, branch, deployId, organization, name, domain, progress: 'failed' })- if (error.name) {- if (error.message && error.stack) await saveServerLog(error)- if (reply.sent) await new ApplicationLog({ repoId: id, branch, deployId, event: `[ERROR 😖]: ${error.stack}` }).save()- }- throw new Error(error)- } finally {- cleanupTmp(configuration.general.workdir)- await purgeImagesContainers(configuration)- }- })-}diff --git a/api/routes/v1/application/deploy/logs.js b/api/routes/v1/application/deploy/logs.jsdeleted file mode 100644index da4e4b38b3..0000000000--- a/api/routes/v1/application/deploy/logs.js+++ /dev/null@@ -1,66 +0,0 @@-const ApplicationLog = require('../../../../models/Logs/Application')-const Deployment = require('../../../../models/Deployment')-const dayjs = require('dayjs')-const utc = require('dayjs/plugin/utc')-const relativeTime = require('dayjs/plugin/relativeTime')-dayjs.extend(utc)-dayjs.extend(relativeTime)--module.exports = async function (fastify) {- const getLogSchema = {- querystring: {- type: 'object',- properties: {- repoId: { type: 'string' },- branch: { type: 'string' }- },- required: ['repoId', 'branch']- }- }- fastify.get('/', { schema: getLogSchema }, async (request, reply) => {- try {- const { repoId, branch, page } = request.query- const onePage = 5- const show = Number(page) * onePage || 5- const deploy = await Deployment.find({ repoId, branch })- .select('-_id -__v -repoId')- .sort({ createdAt: 'desc' })- .limit(show)-- const finalLogs = deploy.map(d => {- const finalLogs = { ...d._doc }-- const updatedAt = dayjs(d.updatedAt).utc()-- finalLogs.took = updatedAt.diff(dayjs(d.createdAt)) / 1000- finalLogs.since = updatedAt.fromNow()-- return finalLogs- })- return finalLogs- } catch (error) {- throw new Error(error)- }- })-- fastify.get('/:deployId', async (request, reply) => {- const { deployId } = request.params- try {- const logs = await ApplicationLog.find({ deployId })- .select('-_id -__v')- .sort({ createdAt: 'asc' })-- const deploy = await Deployment.findOne({ deployId })- .select('-_id -__v')- .sort({ createdAt: 'desc' })-- const finalLogs = {}- finalLogs.progress = deploy.progress- finalLogs.events = logs.map(log => log.event)- finalLogs.human = dayjs(deploy.updatedAt).from(dayjs(deploy.updatedAt))- return finalLogs- } catch (e) {- throw new Error('No logs found')- }- })-}diff --git a/api/routes/v1/application/logs.js b/api/routes/v1/application/logs.jsdeleted file mode 100644index 155f888414..0000000000--- a/api/routes/v1/application/logs.js+++ /dev/null@@ -1,16 +0,0 @@-const { docker } = require('../../../libs/docker')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- try {- const { name } = request.query- const service = await docker.engine.getService(`${name}_${name}`)- const logs = (await service.logs({ stdout: true, stderr: true, timestamps: true })).toString().split('\n').map(l => l.slice(8)).filter((a) => a)- return { logs }- } catch (error) {- await saveServerLog(error)- throw new Error(error)- }- })-}diff --git a/api/routes/v1/application/remove.js b/api/routes/v1/application/remove.jsdeleted file mode 100644index 90d7d21224..0000000000--- a/api/routes/v1/application/remove.js+++ /dev/null@@ -1,38 +0,0 @@-const { docker } = require('../../../libs/docker')-const { execShellAsync, delay } = require('../../../libs/common')-const ApplicationLog = require('../../../models/Logs/Application')-const Deployment = require('../../../models/Deployment')-const { purgeImagesContainers } = require('../../../libs/applications/cleanup')--module.exports = async function (fastify) {- fastify.post('/', async (request, reply) => {- const { organization, name, branch } = request.body- let found = false- try {- (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application').map(s => {- const running = JSON.parse(s.Spec.Labels.configuration)- if (running.repository.organization === organization &&- running.repository.name === name &&- running.repository.branch === branch) {- found = running- }- return null- })- if (found) {- const deploys = await Deployment.find({ organization, branch, name })- for (const deploy of deploys) {- await ApplicationLog.deleteMany({ deployId: deploy.deployId })- await Deployment.deleteMany({ deployId: deploy.deployId })- }- await execShellAsync(`docker stack rm ${found.build.container.name}`)- reply.code(200).send({ organization, name, branch })- await delay(10000)- await purgeImagesContainers(found, true)- } else {- reply.code(500).send({ message: 'Nothing to do.' })- }- } catch (error) {- reply.code(500).send({ message: 'Nothing to do.' })- }- })-}diff --git a/api/routes/v1/config.js b/api/routes/v1/config.jsdeleted file mode 100644index 8a9543c062..0000000000--- a/api/routes/v1/config.js+++ /dev/null@@ -1,28 +0,0 @@-const { docker } = require('../../libs/docker')--module.exports = async function (fastify) {- fastify.post('/', async (request, reply) => {- const { name, organization, branch } = request.body- const services = await docker.engine.listServices()- const applications = services.filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')-- const found = applications.find(r => {- const configuration = r.Spec.Labels.configuration ? JSON.parse(r.Spec.Labels.configuration) : null- if (branch) {- if (configuration.repository.name === name && configuration.repository.organization === organization && configuration.repository.branch === branch) {- return r- }- } else {- if (configuration.repository.name === name && configuration.repository.organization === organization) {- return r- }- }- return null- })- if (found) {- return JSON.parse(found.Spec.Labels.configuration)- } else {- reply.code(500).send({ message: 'No configuration found.' })- }- })-}diff --git a/api/routes/v1/dashboard/index.js b/api/routes/v1/dashboard/index.jsdeleted file mode 100644index 7cb7830310..0000000000--- a/api/routes/v1/dashboard/index.js+++ /dev/null@@ -1,61 +0,0 @@-const { docker } = require('../../../libs/docker')-const ServerLog = require('../../../models/Logs/Server')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- try {- const serverLogs = await ServerLog.find()- const dockerServices = await docker.engine.listServices()- let applications = dockerServices.filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application' && r.Spec.Labels.configuration)- let databases = dockerServices.filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'database' && r.Spec.Labels.configuration)- let services = dockerServices.filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'service' && r.Spec.Labels.configuration)- applications = applications.map(r => {- if (JSON.parse(r.Spec.Labels.configuration)) {- return {- configuration: JSON.parse(r.Spec.Labels.configuration),- UpdatedAt: r.UpdatedAt- }- }- return {}- })- databases = databases.map(r => {- if (JSON.parse(r.Spec.Labels.configuration)) {- return {- configuration: JSON.parse(r.Spec.Labels.configuration)- }- }- return {}- })- services = services.map(r => {- if (JSON.parse(r.Spec.Labels.configuration)) {- return {- serviceName: r.Spec.Labels.serviceName,- configuration: JSON.parse(r.Spec.Labels.configuration)- }- }- return {}- })- applications = [...new Map(applications.map(item => [item.configuration.publish.domain + item.configuration.publish.path, item])).values()]- return {- serverLogs,- applications: {- deployed: applications- },- databases: {- deployed: databases- },- services: {- deployed: services- }- }- } catch (error) {- if (error.code === 'ENOENT' && error.errno === -2) {- throw new Error(`Docker service unavailable at ${error.address}.`)- } else {- await saveServerLog(error)- throw new Error(error)- }- }- })-}diff --git a/api/routes/v1/databases/index.js b/api/routes/v1/databases/index.jsdeleted file mode 100644index 01c0a212c7..0000000000--- a/api/routes/v1/databases/index.js+++ /dev/null@@ -1,192 +0,0 @@-const yaml = require('js-yaml')-const fs = require('fs').promises-const cuid = require('cuid')-const { docker } = require('../../../libs/docker')-const { execShellAsync } = require('../../../libs/common')-const { saveServerLog } = require('../../../libs/logging')--const { uniqueNamesGenerator, adjectives, colors, animals } = require('unique-names-generator')-const generator = require('generate-password')--function getUniq () {- return uniqueNamesGenerator({ dictionaries: [adjectives, animals, colors], length: 2 })-}-module.exports = async function (fastify) {- fastify.get('/:deployId', async (request, reply) => {- const { deployId } = request.params- try {- const database = (await docker.engine.listServices()).find(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'database' && JSON.parse(r.Spec.Labels.configuration).general.deployId === deployId)- if (database) {- const jsonEnvs = {}- if (database.Spec.TaskTemplate.ContainerSpec.Env) {- for (const d of database.Spec.TaskTemplate.ContainerSpec.Env) {- const s = d.split('=')- jsonEnvs[s[0]] = s[1]- }- }- const payload = {- config: JSON.parse(database.Spec.Labels.configuration),- envs: jsonEnvs || null- }- reply.code(200).send(payload)- } else {- throw new Error()- }- } catch (error) {- throw new Error('No database found?')- }- })-- const postSchema = {- body: {- type: 'object',- properties: {- type: { type: 'string', enum: ['mongodb', 'postgresql', 'mysql', 'couchdb', 'clickhouse'] }- },- required: ['type']- }- }-- fastify.post('/deploy', { schema: postSchema }, async (request, reply) => {- try {- let { type, defaultDatabaseName } = request.body- const passwords = generator.generateMultiple(2, {- length: 24,- numbers: true,- strict: true- })- const usernames = generator.generateMultiple(2, {- length: 10,- numbers: true,- strict: true- })- // TODO: Query for existing db with the same name- const nickname = getUniq()-- if (!defaultDatabaseName) defaultDatabaseName = nickname-- reply.code(201).send({ message: 'Deploying.' })- const deployId = cuid()- const configuration = {- general: {- workdir: `/tmp/${deployId}`,- deployId,- nickname,- type- },- database: {- usernames,- passwords,- defaultDatabaseName- },- deploy: {- name: nickname- }- }- await execShellAsync(`mkdir -p ${configuration.general.workdir}`)- let generateEnvs = {}- let image = null- let volume = null- let ulimits = {}- if (type === 'mongodb') {- generateEnvs = {- MONGODB_ROOT_PASSWORD: passwords[0],- MONGODB_USERNAME: usernames[0],- MONGODB_PASSWORD: passwords[1],- MONGODB_DATABASE: defaultDatabaseName- }- image = 'bitnami/mongodb:4.4'- volume = `${configuration.general.deployId}-${type}-data:/bitnami/mongodb`- } else if (type === 'postgresql') {- generateEnvs = {- POSTGRESQL_PASSWORD: passwords[0],- POSTGRESQL_USERNAME: usernames[0],- POSTGRESQL_DATABASE: defaultDatabaseName- }- image = 'bitnami/postgresql:13.2.0'- volume = `${configuration.general.deployId}-${type}-data:/bitnami/postgresql`- } else if (type === 'couchdb') {- generateEnvs = {- COUCHDB_PASSWORD: passwords[0],- COUCHDB_USER: usernames[0]- }- image = 'bitnami/couchdb:3'- volume = `${configuration.general.deployId}-${type}-data:/bitnami/couchdb`- } else if (type === 'mysql') {- generateEnvs = {- MYSQL_ROOT_PASSWORD: passwords[0],- MYSQL_ROOT_USER: usernames[0],- MYSQL_USER: usernames[1],- MYSQL_PASSWORD: passwords[1],- MYSQL_DATABASE: defaultDatabaseName- }- image = 'bitnami/mysql:8.0'- volume = `${configuration.general.deployId}-${type}-data:/bitnami/mysql/data`- } else if (type === 'clickhouse') {- image = 'yandex/clickhouse-server'- volume = `${configuration.general.deployId}-${type}-data:/var/lib/clickhouse`- ulimits = {- nofile: {- soft: 262144,- hard: 262144- }- }- }-- const stack = {- version: '3.8',- services: {- [configuration.general.deployId]: {- image,- networks: [`${docker.network}`],- environment: generateEnvs,- volumes: [volume],- ulimits,- deploy: {- replicas: 1,- update_config: {- parallelism: 0,- delay: '10s',- order: 'start-first'- },- rollback_config: {- parallelism: 0,- delay: '10s',- order: 'start-first'- },- labels: [- 'managedBy=coolify',- 'type=database',- 'configuration=' + JSON.stringify(configuration)- ]- }- }- },- networks: {- [`${docker.network}`]: {- external: true- }- },- volumes: {- [`${configuration.general.deployId}-${type}-data`]: {- external: true- }- }- }- await fs.writeFile(`${configuration.general.workdir}/stack.yml`, yaml.dump(stack))- await execShellAsync(- `cat ${configuration.general.workdir}/stack.yml | docker stack deploy -c - ${configuration.general.deployId}`- )- } catch (error) {- console.log(error)- await saveServerLog(error)- throw new Error(error)- }- })-- fastify.delete('/:dbName', async (request, reply) => {- const { dbName } = request.params- await execShellAsync(`docker stack rm ${dbName}`)- reply.code(200).send({})- })-}diff --git a/api/routes/v1/login/github.js b/api/routes/v1/login/github.jsdeleted file mode 100644index bd621faad7..0000000000--- a/api/routes/v1/login/github.js+++ /dev/null@@ -1,127 +0,0 @@-const axios = require('axios')-const User = require('../../../models/User')-const Settings = require('../../../models/Settings')-const cuid = require('cuid')-const mongoose = require('mongoose')-const jwt = require('jsonwebtoken')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- const githubCodeSchema = {- schema: {- querystring: {- type: 'object',- properties: {- code: { type: 'string' }- },- required: ['code']- }- }- }- fastify.get('/app', { schema: githubCodeSchema }, async (request, reply) => {- const { code } = request.query- try {- const { data } = await axios({- method: 'post',- url: `https://github.com/login/oauth/access_token?client_id=${fastify.config.VITE_GITHUB_APP_CLIENTID}&client_secret=${fastify.config.GITHUB_APP_CLIENT_SECRET}&code=${code}`,- headers: {- accept: 'application/json'- }- })-- const token = data.access_token- const githubAxios = axios.create({- baseURL: 'https://api.github.com'- })-- githubAxios.defaults.headers.common.Accept = 'Application/json'- githubAxios.defaults.headers.common.Authorization = `token ${token}`-- try {- let uid = cuid()- const { avatar_url } = (await githubAxios.get('/user')).data // eslint-disable-line- const email = (await githubAxios.get('/user/emails')).data.filter(- (e) => e.primary- )[0].email- const settings = await Settings.findOne({ applicationName: 'coolify' })- const registeredUsers = await User.find().countDocuments()- const foundUser = await User.findOne({ email })- if (foundUser) {- await User.findOneAndUpdate(- { email },- { avatar: avatar_url },- { upsert: true, new: true }- )- uid = foundUser.uid- } else {- if (registeredUsers === 0) {- const newUser = new User({- _id: new mongoose.Types.ObjectId(),- email,- avatar: avatar_url,- uid- })- const defaultSettings = new Settings({- _id: new mongoose.Types.ObjectId()- })- try {- await newUser.save()- await defaultSettings.save()- } catch (e) {- console.log(e)- reply.code(500).send({ success: false, error: e })- return- }- } else {- if (!settings && registeredUsers > 0) {- reply.code(500).send('Registration disabled, enable it in settings.')- } else {- if (!settings.allowRegistration) {- reply.code(500).send('You are not allowed here!')- } else {- const newUser = new User({- _id: new mongoose.Types.ObjectId(),- email,- avatar: avatar_url,- uid- })- try {- await newUser.save()- } catch (e) {- console.log(e)- reply.code(500).send({ success: false, error: e })- return- }- }- }- }- }- const jwtToken = jwt.sign({}, fastify.config.JWT_SIGN_KEY, {- expiresIn: 15778800,- algorithm: 'HS256',- audience: 'coolLabs',- issuer: 'coolLabs',- jwtid: uid,- subject: `User:${uid}`,- notBefore: -1000- })- reply- .code(200)- .redirect(- 302,- `/api/v1/login/github/success?jwtToken=${jwtToken}&ghToken=${token}`- )- } catch (e) {- console.log(e)- reply.code(500).send({ success: false, error: e })- return- }- } catch (error) {- await saveServerLog(error)- throw new Error(error)- }- })- fastify.get('/success', async (request, reply) => {- return reply.sendFile('bye.html')- })-}diff --git a/api/routes/v1/server/index.js b/api/routes/v1/server/index.jsdeleted file mode 100644index 278b9a3bf1..0000000000--- a/api/routes/v1/server/index.js+++ /dev/null@@ -1,14 +0,0 @@-const Server = require('../../../models/Logs/Server')-module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- try {- const serverLogs = await Server.find().select('-_id -__v')- // TODO: Should do better- return {- serverLogs- }- } catch (error) {- throw new Error(error)- }- })-}diff --git a/api/routes/v1/services/deploy.js b/api/routes/v1/services/deploy.jsdeleted file mode 100644index 481bf8b9b0..0000000000--- a/api/routes/v1/services/deploy.js+++ /dev/null@@ -1,15 +0,0 @@-const { plausible, activateAdminUser } = require('../../../libs/services/plausible')--module.exports = async function (fastify) {- fastify.post('/plausible', async (request, reply) => {- let { email, userName, userPassword, baseURL } = request.body- const traefikURL = baseURL- baseURL = `https://${baseURL}`- await plausible({ email, userName, userPassword, baseURL, traefikURL })- return {}- })- fastify.patch('/plausible/activate', async (request, reply) => {- await activateAdminUser()- return 'OK'- })-}diff --git a/api/routes/v1/services/index.js b/api/routes/v1/services/index.jsdeleted file mode 100644index b9a5501f15..0000000000--- a/api/routes/v1/services/index.js+++ /dev/null@@ -1,27 +0,0 @@-const { execShellAsync } = require('../../../libs/common')-const { docker } = require('../../../libs/docker')--module.exports = async function (fastify) {- fastify.get('/:serviceName', async (request, reply) => {- const { serviceName } = request.params- try {- const service = (await docker.engine.listServices()).find(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'service' && r.Spec.Labels.serviceName === serviceName && r.Spec.Name === `${serviceName}_${serviceName}`)- if (service) {- const payload = {- config: JSON.parse(service.Spec.Labels.configuration)- }- reply.code(200).send(payload)- } else {- throw new Error()- }- } catch (error) {- console.log(error)- throw new Error('No service found?')- }- })- fastify.delete('/:serviceName', async (request, reply) => {- const { serviceName } = request.params- await execShellAsync(`docker stack rm ${serviceName}`)- reply.code(200).send({})- })-}diff --git a/api/routes/v1/settings/index.js b/api/routes/v1/settings/index.jsdeleted file mode 100644index 7a5dbd59d5..0000000000--- a/api/routes/v1/settings/index.js+++ /dev/null@@ -1,49 +0,0 @@-const Settings = require('../../../models/Settings')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- const applicationName = 'coolify'- const postSchema = {- body: {- type: 'object',- properties: {- allowRegistration: { type: 'boolean' },- sendErrors: { type: 'boolean' }- },- required: []- }- }-- fastify.get('/', async (request, reply) => {- try {- let settings = await Settings.findOne({ applicationName }).select('-_id -__v')- // TODO: Should do better- if (!settings) {- settings = {- applicationName,- allowRegistration: false- }- }- return {- settings- }- } catch (error) {- await saveServerLog(error)- throw new Error(error)- }- })-- fastify.post('/', { schema: postSchema }, async (request, reply) => {- try {- const settings = await Settings.findOneAndUpdate(- { applicationName },- { applicationName, ...request.body },- { upsert: true, new: true }- ).select('-_id -__v')- reply.code(201).send({ settings })- } catch (error) {- await saveServerLog(error)- throw new Error(error)- }- })-}diff --git a/api/routes/v1/undead.js b/api/routes/v1/undead.jsdeleted file mode 100644index 61b25391e0..0000000000--- a/api/routes/v1/undead.js+++ /dev/null@@ -1,5 +0,0 @@-module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- reply.code(200).send('NO')- })-}diff --git a/api/routes/v1/upgrade/index.js b/api/routes/v1/upgrade/index.jsdeleted file mode 100644index 49c3c016ee..0000000000--- a/api/routes/v1/upgrade/index.js+++ /dev/null@@ -1,12 +0,0 @@-const { execShellAsync } = require('../../../libs/common')-const { saveServerLog } = require('../../../libs/logging')--module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- const upgradeP1 = await execShellAsync('bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p1.sh)"')- await saveServerLog({ message: upgradeP1, type: 'UPGRADE-P-1' })- reply.code(200).send('I\'m trying, okay?')- const upgradeP2 = await execShellAsync('docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -u root coolify bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p2.sh)"')- await saveServerLog({ message: upgradeP2, type: 'UPGRADE-P-2' })- })-}diff --git a/api/routes/v1/verify.js b/api/routes/v1/verify.jsdeleted file mode 100644index 1122d43ab2..0000000000--- a/api/routes/v1/verify.js+++ /dev/null@@ -1,20 +0,0 @@-const User = require('../../models/User')-const jwt = require('jsonwebtoken')--module.exports = async function (fastify) {- fastify.get('/', async (request, reply) => {- try {- const { authorization } = request.headers- if (!authorization) {- reply.code(401).send({})- return- }- const token = authorization.split(' ')[1]- const verify = jwt.verify(token, fastify.config.JWT_SIGN_KEY)- const found = await User.findOne({ uid: verify.jti })- found ? reply.code(200).send({}) : reply.code(401).send({})- } catch (error) {- reply.code(401).send({})- }- })-}diff --git a/api/routes/v1/webhooks/deploy.js b/api/routes/v1/webhooks/deploy.jsdeleted file mode 100644index d3bcdb9826..0000000000--- a/api/routes/v1/webhooks/deploy.js+++ /dev/null@@ -1,121 +0,0 @@-const crypto = require('crypto')-const { cleanupTmp } = require('../../../libs/common')--const Deployment = require('../../../models/Deployment')-const ApplicationLog = require('../../../models/Logs/Application')-const ServerLog = require('../../../models/Logs/Server')--const { queueAndBuild } = require('../../../libs/applications')-const { setDefaultConfiguration, precheckDeployment } = require('../../../libs/applications/configuration')-const { docker } = require('../../../libs/docker')-const cloneRepository = require('../../../libs/applications/github/cloneRepository')-const { purgeImagesContainers } = require('../../../libs/applications/cleanup')--module.exports = async function (fastify) {- const postSchema = {- body: {- type: 'object',- properties: {- ref: { type: 'string' },- repository: {- type: 'object',- properties: {- id: { type: 'number' },- full_name: { type: 'string' }- },- required: ['id', 'full_name']- },- installation: {- type: 'object',- properties: {- id: { type: 'number' }- },- required: ['id']- }- },- required: ['ref', 'repository', 'installation']- }- }- fastify.post('/', { schema: postSchema }, async (request, reply) => {- let configuration- const hmac = crypto.createHmac('sha256', fastify.config.GITHUP_APP_WEBHOOK_SECRET)- const digest = Buffer.from('sha256=' + hmac.update(JSON.stringify(request.body)).digest('hex'), 'utf8')- const checksum = Buffer.from(request.headers['x-hub-signature-256'], 'utf8')- if (checksum.length !== digest.length || !crypto.timingSafeEqual(digest, checksum)) {- reply.code(500).send({ error: 'Invalid request' })- return- }-- if (request.headers['x-github-event'] !== 'push') {- reply.code(500).send({ error: 'Not a push event.' })- return- }- try {- const services = (await docker.engine.listServices()).filter(r => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')-- configuration = services.find(r => {- if (request.body.ref.startsWith('refs')) {- const branch = request.body.ref.split('/')[2]- if (- JSON.parse(r.Spec.Labels.configuration).repository.id === request.body.repository.id &&- JSON.parse(r.Spec.Labels.configuration).repository.branch === branch- ) {- return r- }- }-- return null- })- if (!configuration) {- reply.code(500).send({ error: 'No configuration found.' })- return- }-- configuration = setDefaultConfiguration(JSON.parse(configuration.Spec.Labels.configuration))- await cloneRepository(configuration)- const { foundService, imageChanged, configChanged, forceUpdate } = await precheckDeployment({ services, configuration })-- if (foundService && !forceUpdate && !imageChanged && !configChanged) {- cleanupTmp(configuration.general.workdir)- reply.code(500).send({ message: 'Nothing changed, no need to redeploy.' })- return- }- const alreadyQueued = await Deployment.find({- repoId: configuration.repository.id,- branch: configuration.repository.branch,- organization: configuration.repository.organization,- name: configuration.repository.name,- domain: configuration.publish.domain,- progress: { $in: ['queued', 'inprogress'] }- })-- if (alreadyQueued.length > 0) {- reply.code(200).send({ message: 'Already in the queue.' })- return- }-- reply.code(201).send({ message: 'Deployment queued.', nickname: configuration.general.nickname, name: configuration.build.container.name })- await queueAndBuild(configuration, imageChanged)- } catch (error) {- const { id, organization, name, branch } = configuration.repository- const { domain } = configuration.publish- const { deployId } = configuration.general- await Deployment.findOneAndUpdate(- { repoId: id, branch, deployId, organization, name, domain },- { repoId: id, branch, deployId, organization, name, domain, progress: 'failed' })- if (error.name === 'Error') {- // Error during runtime- await new ApplicationLog({ repoId: id, branch, deployId, event: `[ERROR 😖]: ${error.stack}` }).save()- } else {- // Error in my code- const payload = { message: error.message, stack: error.stack, type: 'spaghetticode' }- if (error.message && error.stack) await new ServerLog(payload).save()- if (reply.sent) await new ApplicationLog({ repoId: id, branch, deployId, event: `[ERROR 😖]: ${error.stack}` }).save()- }- throw new Error(error)- } finally {- cleanupTmp(configuration.general.workdir)- await purgeImagesContainers(configuration)- }- })-}diff --git a/api/schema.js b/api/schema.jsdeleted file mode 100644index fb672b5603..0000000000--- a/api/schema.js+++ /dev/null@@ -1,49 +0,0 @@-const schema = {- type: 'object',- required: [- 'DOMAIN',- 'EMAIL',- 'VITE_GITHUB_APP_CLIENTID',- 'GITHUB_APP_CLIENT_SECRET',- 'GITHUB_APP_PRIVATE_KEY',- 'GITHUP_APP_WEBHOOK_SECRET',- 'JWT_SIGN_KEY',- 'SECRETS_ENCRYPTION_KEY'- ],- properties: {- DOMAIN: {- type: 'string'- },- EMAIL: {- type: 'string'- },- VITE_GITHUB_APP_CLIENTID: {- type: 'string'- },- GITHUB_APP_CLIENT_SECRET: {- type: 'string'- },- GITHUB_APP_PRIVATE_KEY: {- type: 'string'- },- GITHUP_APP_WEBHOOK_SECRET: {- type: 'string'- },- JWT_SIGN_KEY: {- type: 'string'- },- DOCKER_ENGINE: {- type: 'string',- default: '/var/run/docker.sock'- },- DOCKER_NETWORK: {- type: 'string',- default: 'coollabs'- },- SECRETS_ENCRYPTION_KEY: {- type: 'string'- }- }-}--module.exports = { schema }diff --git a/api/server.js b/api/server.jsdeleted file mode 100644index c1254faef5..0000000000--- a/api/server.js+++ /dev/null@@ -1,109 +0,0 @@-require('dotenv').config()-const fs = require('fs')-const util = require('util')-const mongoose = require('mongoose')-const path = require('path')-const { saveServerLog } = require('./libs/logging')-const { execShellAsync } = require('./libs/common')-const { cleanupStuckedDeploymentsInDB } = require('./libs/applications/cleanup')-const fastify = require('fastify')({- trustProxy: true,- logger: {- level: 'error'- }-})-fastify.register(require('../api/libs/http-error'))--const { schema } = require('./schema')--process.on('unhandledRejection', async (reason, p) => {- await saveServerLog({ message: reason.message, type: 'unhandledRejection' })-})--fastify.register(require('fastify-env'), {- schema,- dotenv: true-})--if (process.env.NODE_ENV === 'production') {- fastify.register(require('fastify-static'), {- root: path.join(__dirname, '../dist/')- })-- fastify.setNotFoundHandler(function (request, reply) {- reply.sendFile('index.html')- })-} else {- fastify.register(require('fastify-static'), {- root: path.join(__dirname, '../public/')- })-}--fastify.register(require('./app'), { prefix: '/api/v1' })--if (process.env.NODE_ENV === 'production') {- mongoose.connect(- `mongodb://${process.env.MONGODB_USER}:${process.env.MONGODB_PASSWORD}@${process.env.MONGODB_HOST}:${process.env.MONGODB_PORT}/${process.env.MONGODB_DB}?authSource=${process.env.MONGODB_DB}&readPreference=primary&ssl=false`,- { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false }- )-} else {- mongoose.connect(- 'mongodb://localhost:27017/coolify?&readPreference=primary&ssl=false',- { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false }- )-}--mongoose.connection.on(- 'error',- console.error.bind(console, 'connection error:')-)-mongoose.connection.once('open', async function () {- if (process.env.NODE_ENV === 'production') {- fastify.listen(3000, '0.0.0.0')- console.log('Coolify API is up and running in production.')- } else {- const logFile = fs.createWriteStream('api/development/console.log', { flags: 'w' })- const logStdout = process.stdout-- console.log = function (d) {- logFile.write(`[INFO]: ${util.format(d)}\n`)- logStdout.write(util.format(d) + '\n')- }-- console.error = function (d) {- logFile.write(`[ERROR]: ${util.format(d)}\n`)- logStdout.write(util.format(d) + '\n')- }-- console.warn = function (d) {- logFile.write(`[WARN]: ${util.format(d)}\n`)- logStdout.write(util.format(d) + '\n')- }-- fastify.listen(3001)- console.log('Coolify API is up and running in development.')- }- try {- // Always cleanup server logs- await mongoose.connection.db.dropCollection('logs-servers')- } catch (error) {- // Could not cleanup logs-servers collection- }- // On start cleanup inprogress/queued deployments.- try {- await cleanupStuckedDeploymentsInDB()- } catch (error) {- // Could not cleanup DB 🤔- }- try {- // Doing because I do not want to prune these images. Prune skips coolify-reserve labeled images.- const basicImages = ['nginx:stable-alpine', 'node:lts', 'ubuntu:20.04', 'php:apache', 'rust:latest']- for (const image of basicImages) {- // await execShellAsync(`echo "FROM ${image}" | docker build --label coolify-reserve=true -t ${image} -`)- await execShellAsync(`docker pull ${image}`)- }- } catch (error) {- console.log('Could not pull some basic images from Docker Hub.')- console.log(error)- }-})diff --git a/docker-compose-dev.yml b/docker-compose-dev.ymlnew file mode 100644index 0000000000..57cc0f1fb9--- /dev/null+++ b/docker-compose-dev.yml@@ -0,0 +1,84 @@+version: '3.8'++services:+ proxy:+ image: traefik:v2.4+ hostname: coollabs-proxy+ ports:+ - target: 80+ published: 80+ protocol: tcp+ mode: host+ - target: 443+ published: 443+ protocol: tcp+ mode: host+ - target: 8080+ published: 8080+ protocol: tcp+ mode: host+ command:+ - --api.insecure=true+ - --api.dashboard=true+ - --api.debug=true+ - --log.level=ERROR+ - --providers.docker=true+ - --providers.docker.swarmMode=true+ - --providers.docker.exposedbydefault=false+ - --providers.docker.network=coollabs+ - --providers.docker.swarmModeRefreshSeconds=1s+ - --entrypoints.web.address=:80+ - --entrypoints.websecure.address=:443+ volumes:+ - /var/run/docker.sock:/var/run/docker.sock+ networks:+ - coollabs+ deploy:+ update_config:+ parallelism: 1+ delay: 10s+ order: start-first+ replicas: 1+ placement:+ constraints:+ - node.role == manager+ labels:+ - 'traefik.enable=true'+ - 'traefik.http.routers.api.entrypoints=websecure'+ - 'traefik.http.routers.api.service=api@internal'+ - 'traefik.http.routers.api.middlewares=auth'+ - 'traefik.http.services.traefik.loadbalancer.server.port=80'++ # Global redirect www to non-www+ - 'traefik.http.routers.www-catchall.rule=hostregexp(`{host:www.(.+)}`)'+ - 'traefik.http.routers.www-catchall.entrypoints=web'+ - 'traefik.http.routers.www-catchall.middlewares=redirect-www-to-nonwww'+ - "traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.regex=^http://(?:www\\.)?(.+)"+ - 'traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.replacement=http://$${1}'+ mongodb:+ image: bitnami/mongodb:4.4+ hostname: coollabs-mongodb+ ports:+ - target: 27017+ published: 27017+ protocol: tcp+ mode: host+ environment:+ - MONGODB_DISABLE_SYSTEM_LOG=true+ - MONGODB_ROOT_PASSWORD=developmentPassword4db+ - MONGODB_USERNAME=supercooldbuser+ - MONGODB_PASSWORD=developmentPassword4db+ - MONGODB_DATABASE=coolify+ volumes:+ - coollabs-mongodb-data:/bitnami/mongodb+ networks:+ - coollabs++volumes:+ coollabs-mongodb-data: {}++networks:+ coollabs:+ driver: overlay+ name: coollabs+ external: truediff --git a/index.html b/index.htmldeleted file mode 100644index a9c71b1436..0000000000--- a/index.html+++ /dev/null@@ -1,20 +0,0 @@-<!DOCTYPE html>-<html lang="en">--<head>- <meta charset="UTF-8" />- <link rel="icon" href="/favicon.png" />- <link rel="preload" as="image" href="/favicon.png">- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>Coolify</title>- <link rel="dns-prefetch" href="https://cdn.coollabs.io/" />- <link rel="preconnect" href="https://cdn.coollabs.io/" crossorigin="" />- <link rel="stylesheet" href="https://cdn.coollabs.io/fonts/montserrat/montserrat.css" />- <link rel="stylesheet" href="https://cdn.coollabs.io/css/microtip-0.2.2.min.css" />-</head>--<body>- <script type="module" src="/src/index.js"></script>-</body>--</html>\ No newline at end of filediff --git a/install/Dockerfile-dev b/install/Dockerfile-devnew file mode 100644index 0000000000..a5a63844ca--- /dev/null+++ b/install/Dockerfile-dev@@ -0,0 +1,10 @@+FROM node:latest+LABEL coolify-preserve=true+WORKDIR /usr/src/app+RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.6.tgz | tar -xzvf - docker/docker -C . --strip-components 1+RUN mv /usr/src/app/docker /usr/bin/docker+RUN curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o /usr/bin/envsubst+RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o /usr/bin/jq+RUN chmod +x /usr/bin/envsubst /usr/bin/jq /usr/bin/docker+ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache+RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm\ No newline at end of filediff --git a/install/README.md b/install/README.mdindex d5f9c46a95..9b9f89f5a8 100644--- a/install/README.md+++ b/install/README.md@@ -1,6 +1,6 @@Some of the files are here for backwards compatibility.-I will do things after 2 months:+I will do things after 2 months:- rm ./install.js and ./update.js- rm ../install.shdiff --git a/install/check.js b/install/check.jsdeleted file mode 100644index d21f8585e1..0000000000--- a/install/check.js+++ /dev/null@@ -1,24 +0,0 @@-require('dotenv').config()-const fastify = require('fastify')()-const { schema } = require('../api/schema')--checkConfig().then(() => {- console.log('Config: OK')-}).catch((err) => {- console.log('Config: NOT OK')- console.error(err)- process.exit(1)-})--function checkConfig () {- return new Promise((resolve, reject) => {- fastify.register(require('fastify-env'), {- schema,- dotenv: true- })- .ready((err) => {- if (err) reject(err)- resolve()- })- })-}diff --git a/install/coolify-template-dev.yml b/install/coolify-template-dev.ymldeleted file mode 100644index 8fa26c0660..0000000000--- a/install/coolify-template-dev.yml+++ /dev/null@@ -1,73 +0,0 @@-version: '3.8'--services:- proxy:- image: traefik:v2.4- hostname: coollabs-proxy- ports:- - target: 80- published: 80- protocol: tcp- mode: host- - target: 443- published: 443- protocol: tcp- mode: host- - target: 8080- published: 8080- protocol: tcp- mode: host- command:- - --api.insecure=true- - --api.dashboard=true- - --api.debug=true- - --log.level=ERROR- - --providers.docker=true- - --providers.docker.swarmMode=true- - --providers.docker.exposedbydefault=false- - --providers.docker.network=${DOCKER_NETWORK}- - --providers.docker.swarmModeRefreshSeconds=1s- - --entrypoints.web.address=:80- - --entrypoints.websecure.address=:443- volumes:- - /var/run/docker.sock:/var/run/docker.sock- networks:- - ${DOCKER_NETWORK}- deploy:- update_config:- parallelism: 1- delay: 10s- order: start-first- replicas: 1- placement:- constraints:- - node.role == manager- labels:- - "traefik.enable=true"- - "traefik.http.routers.api.entrypoints=websecure"- - "traefik.http.routers.api.service=api@internal"- - "traefik.http.routers.api.middlewares=auth"- - "traefik.http.services.traefik.loadbalancer.server.port=80"- - "traefik.http.services.traefik.loadbalancer.server.port=443"-- # Global redirect www to non-www- - "traefik.http.routers.www-catchall.rule=hostregexp(`{host:www.(.+)}`)"- - "traefik.http.routers.www-catchall.entrypoints=web"- - "traefik.http.routers.www-catchall.middlewares=redirect-www-to-nonwww"- - "traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.regex=^http://(?:www\\.)?(.+)"- - "traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.replacement=http://$$$${1}"-- # Global redirect http to https- - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"- - "traefik.http.routers.http-catchall.entrypoints=web"- - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"-- - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"- - "traefik.http.middlewares.global-compress.compress=true"--networks:- ${DOCKER_NETWORK}:- driver: overlay- name: ${DOCKER_NETWORK}- external: true-diff --git a/install/coolify-template.yml b/install/coolify-template.ymlindex 92f4213706..3ced0cadfd 100644--- a/install/coolify-template.yml+++ b/install/coolify-template.yml@@ -44,27 +44,27 @@ services:constraints:- node.role == managerlabels:- - "traefik.enable=true"- - "traefik.http.routers.api.entrypoints=websecure"- - "traefik.http.routers.api.service=api@internal"- - "traefik.http.routers.api.middlewares=auth"- - "traefik.http.services.traefik.loadbalancer.server.port=80"- - "traefik.http.services.traefik.loadbalancer.server.port=443"+ - 'traefik.enable=true'+ - 'traefik.http.routers.api.entrypoints=websecure'+ - 'traefik.http.routers.api.service=api@internal'+ - 'traefik.http.routers.api.middlewares=auth'+ - 'traefik.http.services.traefik.loadbalancer.server.port=80'+ - 'traefik.http.services.traefik.loadbalancer.server.port=443'# Global redirect www to non-www- - "traefik.http.routers.www-catchall.rule=hostregexp(`{host:www.(.+)}`)"- - "traefik.http.routers.www-catchall.entrypoints=web"- - "traefik.http.routers.www-catchall.middlewares=redirect-www-to-nonwww"+ - 'traefik.http.routers.www-catchall.rule=hostregexp(`{host:www.(.+)}`)'+ - 'traefik.http.routers.www-catchall.entrypoints=web'+ - 'traefik.http.routers.www-catchall.middlewares=redirect-www-to-nonwww'- "traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.regex=^http://(?:www\\.)?(.+)"- - "traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.replacement=http://$$$${1}"+ - 'traefik.http.middlewares.redirect-www-to-nonwww.redirectregex.replacement=http://$$$${1}'# Global redirect http to https- - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"- - "traefik.http.routers.http-catchall.entrypoints=web"- - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"+ - 'traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)'+ - 'traefik.http.routers.http-catchall.entrypoints=web'+ - 'traefik.http.routers.http-catchall.middlewares=redirect-to-https'- - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"- - "traefik.http.middlewares.global-compress.compress=true"+ - 'traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https'+ - 'traefik.http.middlewares.global-compress.compress=true'coolify:image: coolify@@ -73,7 +73,7 @@ services:- .envnetworks:- ${DOCKER_NETWORK}- command: "yarn start"+ command: 'yarn start'volumes:- /var/run/docker.sock:/var/run/docker.sock:rodeploy:@@ -83,16 +83,15 @@ services:order: start-firstreplicas: 1labels:- - "traefik.enable=true"- - "traefik.http.routers.coolify.entrypoints=websecure"- - "traefik.http.routers.coolify.tls.certresolver=letsencrypt"- - "traefik.http.routers.coolify.rule=Host(`${DOMAIN}`) && PathPrefix(`/`)"- - "traefik.http.services.coolify.loadbalancer.server.port=3000"- - "traefik.http.routers.coolify.middlewares=global-compress"-+ - 'traefik.enable=true'+ - 'traefik.http.routers.coolify.entrypoints=websecure'+ - 'traefik.http.routers.coolify.tls.certresolver=letsencrypt'+ - 'traefik.http.routers.coolify.rule=Host(`${DOMAIN}`) && PathPrefix(`/`)'+ - 'traefik.http.services.coolify.loadbalancer.server.port=3000'+ - 'traefik.http.routers.coolify.middlewares=global-compress'+networks:${DOCKER_NETWORK}:driver: overlayname: ${DOCKER_NETWORK}external: true-diff --git a/install/install.js b/install/install.jsindex 38a7bf66a7..0366bc3b7b 100644--- a/install/install.js+++ b/install/install.js@@ -1,55 +1,36 @@-require('dotenv').config()-const { program } = require('commander')-const fastify = require('fastify')()-const { schema } = require('../api/schema')-const shell = require('shelljs')-const user = shell.exec('whoami', { silent: true }).stdout.replace('\n', '')+require('dotenv').config();+const { program } = require('commander');+const shell = require('shelljs');+const user = shell.exec('whoami', { silent: true }).stdout.replace('\n', '');-program.version('0.0.1')+program.version('0.0.1');program- .option('-d, --debug', 'Debug outputs.')- .option('-c, --check', 'Only checks configuration.')- .option('-t, --type <type>', 'Deploy type.')+ .option('-d, --debug', 'Debug outputs.')+ .option('-c, --check', 'Only checks configuration.')+ .option('-t, --type <type>', 'Deploy type.');-program.parse(process.argv)+program.parse(process.argv);-const options = program.opts()-if (options.check) {- checkConfig().then(() => {- console.log('Config: OK')- }).catch((err) => {- console.log('Config: NOT OK')- console.error(err)- process.exit(1)- })-} else {- if (user !== 'root') {- console.error(`Please run as root! Current user: ${user}`)- process.exit(1)- }- shell.exec(`docker network create ${process.env.DOCKER_NETWORK} --driver overlay`, { silent: !options.debug })- shell.exec('docker build -t coolify -f install/Dockerfile .')- if (options.type === 'all') {- shell.exec('docker stack rm coollabs-coolify', { silent: !options.debug })- } else if (options.type === 'coolify') {- shell.exec('docker service rm coollabs-coolify_coolify')- } else if (options.type === 'proxy') {- shell.exec('docker service rm coollabs-coolify_proxy')- }- if (options.type !== 'upgrade') {- shell.exec('set -a && source .env && set +a && envsubst < install/coolify-template.yml | docker stack deploy -c - coollabs-coolify', { silent: !options.debug, shell: '/bin/bash' })- }-}+const options = program.opts();-function checkConfig () {- return new Promise((resolve, reject) => {- fastify.register(require('fastify-env'), {- schema,- dotenv: true- })- .ready((err) => {- if (err) reject(err)- resolve()- })- })+if (user !== 'root') {+ console.error(`Please run as root! Current user: ${user}`);+ process.exit(1);+}+shell.exec(`docker network create ${process.env.DOCKER_NETWORK} --driver overlay`, {+ silent: !options.debug+});+shell.exec('docker build -t coolify -f install/Dockerfile .');+if (options.type === 'all') {+ shell.exec('docker stack rm coollabs-coolify', { silent: !options.debug });+} else if (options.type === 'coolify') {+ shell.exec('docker service rm coollabs-coolify_coolify');+} else if (options.type === 'proxy') {+ shell.exec('docker service rm coollabs-coolify_proxy');+}+if (options.type !== 'upgrade') {+ shell.exec(+ 'set -a && source .env && set +a && envsubst < install/coolify-template.yml | docker stack deploy -c - coollabs-coolify',+ { silent: !options.debug, shell: '/bin/bash' }+ );}diff --git a/install/obs/Dockerfile-base-new b/install/obs/Dockerfile-base-newdeleted file mode 100644index 8c1ac91890..0000000000--- a/install/obs/Dockerfile-base-new+++ /dev/null@@ -1,4 +0,0 @@-FROM coolify-base-nodejs-WORKDIR /usr/src/app-COPY . .-RUN pnpm install\ No newline at end of filediff --git a/install/obs/Dockerfile-base-nodejs b/install/obs/Dockerfile-base-nodejsdeleted file mode 100644index f35dbc7aea..0000000000--- a/install/obs/Dockerfile-base-nodejs+++ /dev/null@@ -1,6 +0,0 @@-FROM node:lts-LABEL coolify-preserve=true-COPY --from=coolify-binaries /usr/bin/docker /usr/bin/docker-COPY --from=coolify-binaries /usr/bin/envsubst /usr/bin/envsubst-COPY --from=coolify-binaries /usr/bin/jq /usr/bin/jq-RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm@6\ No newline at end of filediff --git a/install/obs/Dockerfile-binaries b/install/obs/Dockerfile-binariesdeleted file mode 100644index 5dca5c2862..0000000000--- a/install/obs/Dockerfile-binaries+++ /dev/null@@ -1,9 +0,0 @@-FROM ubuntu:20.04-LABEL coolify-preserve=true-RUN apt update && apt install -y curl gnupg2 ca-certificates-RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add --RUN echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable' >> /etc/apt/sources.list-RUN curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o /usr/bin/envsubst-RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o /usr/bin/jq-RUN chmod +x /usr/bin/envsubst /usr/bin/jq-RUN apt update && apt install -y docker-ce-cli && apt clean alldiff --git a/install/update.js b/install/update.jsindex fb36d8a8ea..1137937ba7 100644--- a/install/update.js+++ b/install/update.js@@ -1,21 +1,24 @@-require('dotenv').config()-const { program } = require('commander')-const shell = require('shelljs')-const user = shell.exec('whoami', { silent: true }).stdout.replace('\n', '')-program.version('0.0.1')+require('dotenv').config();+const { program } = require('commander');+const shell = require('shelljs');+const user = shell.exec('whoami', { silent: true }).stdout.replace('\n', '');+program.version('0.0.1');program- .option('-d, --debug', 'Debug outputs.')- .option('-c, --check', 'Only checks configuration.')- .option('-t, --type <type>', 'Deploy type.')+ .option('-d, --debug', 'Debug outputs.')+ .option('-c, --check', 'Only checks configuration.')+ .option('-t, --type <type>', 'Deploy type.');-program.parse(process.argv)-const options = program.opts()+program.parse(process.argv);+const options = program.opts();if (user !== 'root') {- console.error(`Please run as root! Current user: ${user}`)- process.exit(1)+ console.error(`Please run as root! Current user: ${user}`);+ process.exit(1);}if (options.type === 'upgrade') {- shell.exec('docker service rm coollabs-coolify_coolify')- shell.exec('set -a && source .env && set +a && envsubst < install/coolify-template.yml | docker stack deploy -c - coollabs-coolify', { silent: !options.debug, shell: '/bin/bash' })+ shell.exec('docker service rm coollabs-coolify_coolify');+ shell.exec(+ 'set -a && source .env && set +a && envsubst < install/coolify-template.yml | docker stack deploy -c - coollabs-coolify',+ { silent: !options.debug, shell: '/bin/bash' }+ );}diff --git a/package.json b/package.jsonindex 11363802ad..6f1e5d908c 100644--- a/package.json+++ b/package.json@@ -1,68 +1,58 @@{- "name": "coolify",- "description": "An open-source, hassle-free, self-hostable Heroku & Netlify alternative.",- "version": "1.0.11",- "license": "AGPL-3.0",- "scripts": {- "lint": "standard",- "start": "NODE_ENV=production node api/server",- "dev": "run-p dev:db dev:routify dev:svite dev:server",- "dev:db": "NODE_ENV=development node api/development/mongodb.js",- "dev:server": "nodemon -w api api/server",- "dev:routify": "routify run",- "dev:svite": "svite",- "build": "run-s build:routify build:svite",- "build:routify": "routify run -b",- "build:svite": "svite build"- },- "dependencies": {- "@iarna/toml": "^2.2.5",- "@roxi/routify": "^2.15.1",- "@zerodevx/svelte-toast": "^0.2.2",- "ajv": "^8.1.0",- "axios": "^0.21.1",- "commander": "^7.2.0",- "compare-versions": "^3.6.0",- "cuid": "^2.1.8",- "dayjs": "^1.10.4",- "deepmerge": "^4.2.2",- "dockerode": "^3.2.1",- "dotenv": "^8.2.0",- "fastify": "^3.14.2",- "fastify-env": "^2.1.0",- "fastify-jwt": "^2.4.0",- "fastify-plugin": "^3.0.0",- "fastify-static": "^4.0.1",- "generate-password": "^1.6.0",- "http-errors-enhanced": "^0.7.0",- "js-yaml": "^4.0.0",- "jsonwebtoken": "^8.5.1",- "mongoose": "^5.12.3",- "shelljs": "^0.8.4",- "svelte-select": "^3.17.0",- "unique-names-generator": "^4.4.0"- },- "devDependencies": {- "mongodb-memory-server-core": "^6.9.6",- "nodemon": "^2.0.7",- "npm-run-all": "^4.1.5",- "postcss": "^8.2.9",- "postcss-import": "^14.0.1",- "postcss-load-config": "^3.0.1",- "postcss-preset-env": "^6.7.0",- "prettier": "2.2.1",- "prettier-plugin-svelte": "^2.2.0",- "standard": "^16.0.3",- "svelte": "^3.37.0",- "svelte-hmr": "^0.14.0",- "svelte-preprocess": "^4.7.0",- "svite": "0.8.1",- "tailwindcss": "2.1.1"- },- "keywords": [- "svelte",- "routify",- "fastify",- "tailwind"- ]+ "name": "coolify",+ "description": "An open-source, hassle-free, self-hostable Heroku & Netlify alternative.",+ "version": "1.0.12",+ "license": "AGPL-3.0",+ "scripts": {+ "dev:docker:start": "docker-compose -f docker-compose-dev.yml up -d",+ "dev:docker:stop": "docker-compose -f docker-compose-dev.yml down",+ "dev": "NODE_ENV=development svelte-kit dev --host 0.0.0.0",+ "build": "NODE_ENV=production svelte-kit build",+ "preview": "svelte-kit preview",+ "start": "node build",+ "lint": "prettier --check . && eslint --ignore-path .gitignore .",+ "format": "prettier --write ."+ },+ "devDependencies": {+ "@sveltejs/adapter-node": "^1.0.0-next.20",+ "@sveltejs/kit": "1.0.0-next.107",+ "@types/dockerode": "^3.2.3",+ "@typescript-eslint/eslint-plugin": "^4.23.0",+ "@typescript-eslint/parser": "^4.23.0",+ "autoprefixer": "^10.2.5",+ "cssnano": "^5.0.2",+ "dotenv-extended": "^2.9.0",+ "eslint": "^7.26.0",+ "eslint-config-prettier": "^8.3.0",+ "eslint-plugin-svelte3": "^3.2.0",+ "postcss": "^8.2.15",+ "postcss-load-config": "^3.0.1",+ "prettier": "~2.3.0",+ "prettier-plugin-svelte": "^2.3.0",+ "svelte": "^3.38.2",+ "svelte-preprocess": "^4.7.3",+ "tailwindcss": "canary",+ "tslib": "^2.2.0",+ "typescript": "^4.2.4",+ "vite": "^2.3.2"+ },+ "type": "module",+ "dependencies": {+ "@iarna/toml": "^2.2.5",+ "@zerodevx/svelte-toast": "^0.3.0",+ "commander": "^7.2.0",+ "compare-versions": "^3.6.0",+ "cookie": "^0.4.1",+ "cuid": "^2.1.8",+ "dayjs": "^1.10.4",+ "dockerode": "^3.3.0",+ "generate-password": "^1.6.0",+ "js-yaml": "^4.1.0",+ "jsonwebtoken": "^8.5.1",+ "mongoose": "^5.12.9",+ "shelljs": "^0.8.4",+ "svelte-kit-cookie-session": "^0.4.3",+ "svelte-select": "^3.17.0",+ "unique-names-generator": "^4.5.0"+ }}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7f8173149c..2422e03f1b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2,131 +2,106 @@ lockfileVersion: 5.3specifiers:'@iarna/toml': ^2.2.5- '@roxi/routify': ^2.15.1- '@zerodevx/svelte-toast': ^0.2.2- ajv: ^8.1.0- axios: ^0.21.1+ '@sveltejs/adapter-node': ^1.0.0-next.20+ '@sveltejs/kit': 1.0.0-next.107+ '@types/dockerode': ^3.2.3+ '@typescript-eslint/eslint-plugin': ^4.22.1+ '@typescript-eslint/parser': ^4.22.1+ '@zerodevx/svelte-toast': ^0.3.0+ autoprefixer: ^10.2.5commander: ^7.2.0compare-versions: ^3.6.0+ cookie: ^0.4.1+ cssnano: ^5.0.2cuid: ^2.1.8dayjs: ^1.10.4- deepmerge: ^4.2.2- dockerode: ^3.2.1- dotenv: ^8.2.0- fastify: ^3.14.2- fastify-env: ^2.1.0- fastify-jwt: ^2.4.0- fastify-plugin: ^3.0.0- fastify-static: ^4.0.1+ dockerode: ^3.3.0+ dotenv-extended: ^2.9.0+ eslint: ^7.26.0+ eslint-config-prettier: ^8.3.0+ eslint-plugin-svelte3: ^3.2.0generate-password: ^1.6.0- http-errors-enhanced: ^0.7.0- js-yaml: ^4.0.0+ js-yaml: ^4.1.0jsonwebtoken: ^8.5.1- mongodb-memory-server-core: ^6.9.6- mongoose: ^5.12.3- nodemon: ^2.0.7- npm-run-all: ^4.1.5- postcss: ^8.2.9- postcss-import: ^14.0.1+ mongoose: ^5.12.7+ postcss: ^8.2.14postcss-load-config: ^3.0.1- postcss-preset-env: ^6.7.0- prettier: 2.2.1+ prettier: ~2.3.0prettier-plugin-svelte: ^2.2.0shelljs: ^0.8.4- standard: ^16.0.3- svelte: ^3.37.0- svelte-hmr: ^0.14.0- svelte-preprocess: ^4.7.0+ svelte: ^3.38.2+ svelte-kit-cookie-session: ^0.4.3+ svelte-preprocess: ^4.7.3svelte-select: ^3.17.0- svite: 0.8.1- tailwindcss: 2.1.1- unique-names-generator: ^4.4.0+ tailwindcss: canary+ tslib: ^2.2.0+ typescript: ^4.2.4+ unique-names-generator: ^4.5.0+ vite: ^2.2.4dependencies:'@iarna/toml': 2.2.5- '@roxi/routify': 2.15.1- '@zerodevx/svelte-toast': 0.2.2- ajv: 8.1.0- axios: 0.21.1+ '@zerodevx/svelte-toast': 0.3.0commander: 7.2.0compare-versions: 3.6.0+ cookie: 0.4.1cuid: 2.1.8dayjs: 1.10.4- deepmerge: 4.2.2- dockerode: 3.2.1- dotenv: 8.2.0- fastify: 3.14.2- fastify-env: 2.1.0- fastify-jwt: 2.4.0- fastify-plugin: 3.0.0- fastify-static: 4.0.1+ dockerode: 3.3.0generate-password: 1.6.0- http-errors-enhanced: 0.7.0js-yaml: 4.1.0jsonwebtoken: 8.5.1- mongoose: 5.12.4+ mongoose: 5.12.7shelljs: 0.8.4+ svelte-kit-cookie-session: 0.4.3svelte-select: 3.17.0- unique-names-generator: 4.4.0+ unique-names-generator: 4.5.0devDependencies:- mongodb-memory-server-core: 6.9.6- nodemon: 2.0.7- npm-run-all: 4.1.5- postcss: 8.2.10- postcss-import: [email protected]+ '@sveltejs/adapter-node': 1.0.0-next.20+ '@sveltejs/kit': [email protected]+ '@types/dockerode': 3.2.3+ '@typescript-eslint/eslint-plugin': 4.22.1_b96c9280c6ac79e4dfcda76a733858e3+ '@typescript-eslint/parser': [email protected][email protected]+ autoprefixer: [email protected]+ cssnano: [email protected]+ dotenv-extended: 2.9.0+ eslint: 7.26.0+ eslint-config-prettier: [email protected]+ eslint-plugin-svelte3: [email protected][email protected]+ postcss: 8.2.14postcss-load-config: 3.0.1- postcss-preset-env: 6.7.0- prettier: 2.2.1- prettier-plugin-svelte: [email protected][email protected]- standard: 16.0.3- svelte: 3.37.0- svelte-hmr: [email protected]- svelte-preprocess: 4.7.0_4a3768216fad352756a1a13607f73a31- svite: 0.8.1_79b75b88a1dd913f13bddff6afa5f1de- tailwindcss: [email protected]+ prettier: 2.3.0+ prettier-plugin-svelte: [email protected][email protected]+ svelte: 3.38.2+ svelte-preprocess: 4.7.3_bc60392b3f6116f56fa9e4496adda117+ tailwindcss: 2.2.0-canary.6_b46308bb95614802e1b6d1dce4e25ea6+ tslib: 2.2.0+ typescript: 4.2.4+ vite: 2.2.4packages:- /@babel/code-frame/7.12.13:- resolution: {integrity: sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==}+ /@babel/code-frame/7.12.11:+ resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==}dependencies:- '@babel/highlight': 7.13.10+ '@babel/highlight': 7.14.0dev: true- /@babel/helper-validator-identifier/7.12.11:- resolution: {integrity: sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==}+ /@babel/helper-validator-identifier/7.14.0:+ resolution: {integrity: sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==}dev: true- /@babel/highlight/7.13.10:- resolution: {integrity: sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==}+ /@babel/highlight/7.14.0:+ resolution: {integrity: sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==}dependencies:- '@babel/helper-validator-identifier': 7.12.11+ '@babel/helper-validator-identifier': 7.14.0chalk: 2.4.2js-tokens: 4.0.0dev: true- /@babel/parser/7.13.15:- resolution: {integrity: sha512-b9COtcAlVEQljy/9fbcMHpG+UIW9ReF+gpaxDHTlZd0c6/UU9ng8zdySAW9sRTzpvcdCHn6bUcbuYUgGzLAWVQ==}- engines: {node: '>=6.0.0'}- hasBin: true- dev: true-- /@babel/types/7.13.14:- resolution: {integrity: sha512-A2aa3QTkWoyqsZZFl56MLUsfmh7O0gN41IPvXAE/++8ojpbz12SszD7JEGYVdn4f9Kt4amIei07swF1h4AqmmQ==}- dependencies:- '@babel/helper-validator-identifier': 7.12.11- lodash: 4.17.21- to-fast-properties: 2.0.0- dev: true-- /@csstools/convert-colors/1.4.0:- resolution: {integrity: sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==}- engines: {node: '>=4.0.0'}- dev: true-- /@eslint/eslintrc/0.2.2:- resolution: {integrity: sha512-EfB5OHNYp1F4px/LI/FEnGylop7nOqkQ1LRzCM0KccA2U8tvV8w01KBv37LbO7nW4H+YhKyo2LcJhRwjjV17QQ==}+ /@eslint/eslintrc/0.4.1:+ resolution: {integrity: sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==}engines: {node: ^10.12.0 || >=12.0.0}dependencies:ajv: 6.12.6@@ -136,25 +111,12 @@ packages:ignore: 4.0.6import-fresh: 3.3.0js-yaml: 3.14.1- lodash: 4.17.21minimatch: 3.0.4strip-json-comments: 3.1.1transitivePeerDependencies:- supports-colordev: true- /@fastify/forwarded/1.0.0:- resolution: {integrity: sha512-VoO+6WD0aRz8bwgJZ8pkkxjq7o/782cQ1j945HWg0obZMgIadYW3Pew0+an+k1QL7IPZHM3db5WF6OP6x4ymMA==}- engines: {node: '>= 10'}- dev: false-- /@fastify/proxy-addr/3.0.0:- resolution: {integrity: sha512-ty7wnUd/GeSqKTC2Jozsl5xGbnxUnEFC0On2/zPv/8ixywipQmVZwuWvNGnBoitJ2wixwVqofwXNua8j6Y62lQ==}- dependencies:- '@fastify/forwarded': 1.0.0- ipaddr.js: 2.0.0- dev: false-/@fullhuman/postcss-purgecss/3.1.3:resolution: {integrity: sha512-kwOXw8fZ0Lt1QmeOOrd+o4Ibvp4UTEBFQbzvWldjlKv5n+G9sXfIPn1hh63IQIL8K8vbvv1oYMJiIUbuy9bGaA==}dependencies:@@ -165,13 +127,6 @@ packages:resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==}dev: false- /@koa/cors/3.1.0:- resolution: {integrity: sha512-7ulRC1da/rBa6kj6P4g2aJfnET3z8Uf3SWu60cjbtxTA5g8lxRdX/Bd2P92EagGwwAhANeNw8T8if99rJliR6Q==}- engines: {node: '>= 8.0.0'}- dependencies:- vary: 1.1.2- dev: true-/@nodelib/fs.scandir/2.1.4:resolution: {integrity: sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==}engines: {node: '>= 8'}@@ -193,69 +148,6 @@ packages:fastq: 1.11.0dev: true- /@rollup/plugin-commonjs/[email protected]:- resolution: {integrity: sha512-LuNyypCP3msCGVQJ7ki8PqYdpjfEkE/xtFa5DqlF+7IBD0JsfMZ87C58heSwIMint58sAUZbt3ITqOmdQv/dXw==}- engines: {node: '>= 8.0.0'}- peerDependencies:- rollup: ^2.30.0- dependencies:- '@rollup/pluginutils': [email protected]- commondir: 1.0.1- estree-walker: 2.0.2- glob: 7.1.6- is-reference: 1.2.1- magic-string: 0.25.7- resolve: 1.20.0- rollup: 2.45.2- dev: true-- /@rollup/plugin-json/[email protected]:- resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==}- peerDependencies:- rollup: ^1.20.0 || ^2.0.0- dependencies:- '@rollup/pluginutils': [email protected]- rollup: 2.45.2- dev: true-- /@rollup/plugin-node-resolve/[email protected]:- resolution: {integrity: sha512-sNijGta8fqzwA1VwUEtTvWCx2E7qC70NMsDh4ZG13byAXYigBNZMxALhKUSycBks5gupJdq0lFrKumFrRZ8H3A==}- engines: {node: '>= 10.0.0'}- peerDependencies:- rollup: ^1.20.0||^2.0.0- dependencies:- '@rollup/pluginutils': [email protected]- '@types/resolve': 1.17.1- builtin-modules: 3.2.0- deepmerge: 4.2.2- is-module: 1.0.0- resolve: 1.20.0- rollup: 2.45.2- dev: true-- /@rollup/pluginutils/3.1.0:- resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==}- engines: {node: '>= 8.0.0'}- peerDependencies:- rollup: ^1.20.0||^2.0.0- dependencies:- '@types/estree': 0.0.39- estree-walker: 1.0.1- picomatch: 2.2.3- dev: true-- /@rollup/pluginutils/[email protected]:- resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==}- engines: {node: '>= 8.0.0'}- peerDependencies:- rollup: ^1.20.0||^2.0.0- dependencies:- '@types/estree': 0.0.39- estree-walker: 1.0.1- picomatch: 2.2.3- rollup: 2.45.2- dev: true-/@rollup/pluginutils/4.1.0:resolution: {integrity: sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==}engines: {node: '>= 8.0.0'}@@ -266,190 +158,79 @@ packages:picomatch: 2.2.3dev: true- /@rollup/pluginutils/[email protected]:- resolution: {integrity: sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==}- engines: {node: '>= 8.0.0'}- peerDependencies:- rollup: ^1.20.0||^2.0.0- dependencies:- estree-walker: 2.0.2- picomatch: 2.2.3- rollup: 2.45.2+ /@sveltejs/adapter-node/1.0.0-next.20:+ resolution: {integrity: sha512-ornNW289XN4TyY3tRXVGH38FxrqLsw1MHn4oq92T7U6EqnSbw/22waMZnPBQUxcj5GxZsXuuFjeBjn1BWt0x2A==}dev: true- /@roxi/routify/2.15.1:- resolution: {integrity: sha512-IRdoaPSfP09EwWtB+tpbHgH6ejYtowale24rgfpxRQhFNyTUK4jYXclvx3XkUD1NSupSgl1kDAsWSiRSG0WvkQ==}+ /@sveltejs/kit/[email protected]:+ resolution: {integrity: sha512-HxomGMWbuWTU8lahk98hqIL/xjW6HzNTAvTZVMnnmlMHN1N8x7+abkz4Y09Zhu8lZkZpFuqBj2UlsgPW4uJXtw==}+ engines: {node: '>= 12.17.0'}hasBin: true+ peerDependencies:+ svelte: ^3.38.2dependencies:- '@roxi/ssr': 0.2.1- '@types/node': 12.20.10- chalk: 4.1.0+ '@sveltejs/vite-plugin-svelte': [email protected][email protected]cheap-watch: 1.0.3- commander: 7.2.0- configent: 2.2.0- esm: 3.2.25- fs-extra: 9.1.0- log-symbols: 3.0.0- picomatch: 2.2.3- rollup-pluginutils: 2.8.2- transitivePeerDependencies:- - canvas- dev: false-- /@roxi/ssr/0.2.1:- resolution: {integrity: sha512-C86xWJOmtCGZr/U4MURqePM0oDKFkTlLeEyT07R+7jSKvREKZ2manJAeAebYudJLYEGITEPGqObhRan32bUUbg==}- dependencies:- bufferutil: 4.0.3- jsdom: 16.5.3_c70f8fc5586dd378b8c866035dbe710b- node-fetch: 2.6.1- utf-8-validate: 5.0.4+ sade: 1.7.4+ svelte: 3.38.2+ vite: 2.3.2transitivePeerDependencies:- - canvas- dev: false-- /@sindresorhus/is/0.14.0:- resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==}- engines: {node: '>=6'}- dev: true-- /@szmarczak/http-timer/1.1.2:- resolution: {integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==}- engines: {node: '>=6'}- dependencies:- defer-to-connect: 1.1.3+ - rollup+ - supports-colordev: true- /@types/accepts/1.3.5:- resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==}+ /@sveltejs/vite-plugin-svelte/[email protected][email protected]:+ resolution: {integrity: sha512-ImvxbhPePm2hWNTKBSA3LHAYGwiEjHjvvgfPLXm4R87sfZ+BMXql9jBmDpzUC/URBLT4BB3Jxos/i523qkJBHg==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ svelte: ^3.37.0+ vite: ^2.2.3dependencies:- '@types/node': 14.14.41+ '@rollup/pluginutils': 4.1.0+ chalk: 4.1.1+ debug: 4.3.2+ hash-sum: 2.0.0+ require-relative: 0.8.7+ slash: 4.0.0+ source-map: 0.7.3+ svelte: 3.38.2+ svelte-hmr: [email protected]+ vite: 2.3.2+ transitivePeerDependencies:+ - rollup+ - supports-colordev: true- /@types/body-parser/1.19.0:- resolution: {integrity: sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==}- dependencies:- '@types/connect': 3.4.34- '@types/node': 14.14.41+ /@trysound/sax/0.1.1:+ resolution: {integrity: sha512-Z6DoceYb/1xSg5+e+ZlPZ9v0N16ZvZ+wYMraFue4HYrE4ttONKtsvruIRf6t9TBR0YvSOfi1hUU0fJfBLCDYow==}+ engines: {node: '>=10.13.0'}dev: true/@types/bson/4.0.3:resolution: {integrity: sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==}dependencies:- '@types/node': 14.14.41- dev: false-- /@types/connect/3.4.34:- resolution: {integrity: sha512-ePPA/JuI+X0vb+gSWlPKOY0NdNAie/rPUqX2GUPpbZwiKTkSPhjXWuee47E4MtE54QVzGCQMQkAL6JhV2E1+cQ==}- dependencies:- '@types/node': 14.14.41- dev: true-- /@types/content-disposition/0.5.3:- resolution: {integrity: sha512-P1bffQfhD3O4LW0ioENXUhZ9OIa0Zn+P7M+pWgkCKaT53wVLSq0mrKksCID/FGHpFhRSxRGhgrQmfhRuzwtKdg==}- dev: true-- /@types/cookies/0.7.6:- resolution: {integrity: sha512-FK4U5Qyn7/Sc5ih233OuHO0qAkOpEcD/eG6584yEiLKizTFRny86qHLe/rej3HFQrkBuUjF4whFliAdODbVN/w==}- dependencies:- '@types/connect': 3.4.34- '@types/express': 4.17.11- '@types/keygrip': 1.0.2- '@types/node': 14.14.41- dev: true-- /@types/estree/0.0.39:- resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==}- dev: true-- /@types/estree/0.0.47:- resolution: {integrity: sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==}- dev: true-- /@types/express-serve-static-core/4.17.19:- resolution: {integrity: sha512-DJOSHzX7pCiSElWaGR8kCprwibCB/3yW6vcT8VG3P0SJjnv19gnWG/AZMfM60Xj/YJIp/YCaDHyvzsFVeniARA==}- dependencies:- '@types/node': 14.14.41- '@types/qs': 6.9.6- '@types/range-parser': 1.2.3- dev: true-- /@types/express/4.17.11:- resolution: {integrity: sha512-no+R6rW60JEc59977wIxreQVsIEOAYwgCqldrA/vkpCnbD7MqTefO97lmoBe4WE0F156bC4uLSP1XHDOySnChg==}- dependencies:- '@types/body-parser': 1.19.0- '@types/express-serve-static-core': 4.17.19- '@types/qs': 6.9.6- '@types/serve-static': 1.13.9- dev: true-- /@types/http-assert/1.5.1:- resolution: {integrity: sha512-PGAK759pxyfXE78NbKxyfRcWYA/KwW17X290cNev/qAsn9eQIxkH4shoNBafH37wewhDG/0p1cHPbK6+SzZjWQ==}- dev: true-- /@types/http-errors/1.8.0:- resolution: {integrity: sha512-2aoSC4UUbHDj2uCsCxcG/vRMXey/m17bC7UwitVm5hn22nI8O8Y9iDpA76Orc+DWkQ4zZrOKEshCqR/jSuXAHA==}- dev: true-- /@types/http-proxy/1.17.5:- resolution: {integrity: sha512-GNkDE7bTv6Sf8JbV2GksknKOsk7OznNYHSdrtvPJXO0qJ9odZig6IZKUi5RFGi6d1bf6dgIAe4uXi3DBc7069Q==}- dependencies:- '@types/node': 14.14.41- dev: true-- /@types/json5/0.0.29:- resolution: {integrity: sha1-7ihweulOEdK4J7y+UnC86n8+ce4=}- dev: true-- /@types/jsonwebtoken/8.5.1:- resolution: {integrity: sha512-rNAPdomlIUX0i0cg2+I+Q1wOUr531zHBQ+cV/28PJ39bSPKjahatZZ2LMuhiguETkCgLVzfruw/ZvNMNkKoSzw==}- dependencies:- '@types/node': 14.14.41+ '@types/node': 15.0.1dev: false- /@types/keygrip/1.0.2:- resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==}- dev: true-- /@types/koa-compose/3.2.5:- resolution: {integrity: sha512-B8nG/OoE1ORZqCkBVsup/AKcvjdgoHnfi4pZMn5UwAPCbhk/96xyv284eBYW8JlQbQ7zDmnpFr68I/40mFoIBQ==}- dependencies:- '@types/koa': 2.13.1- dev: true-- /@types/koa/2.13.1:- resolution: {integrity: sha512-Qbno7FWom9nNqu0yHZ6A0+RWt4mrYBhw3wpBAQ3+IuzGcLlfeYkzZrnMq5wsxulN2np8M4KKeUpTodsOsSad5Q==}+ /@types/dockerode/3.2.3:+ resolution: {integrity: sha512-nZRhpSxm3PYianRBcRExcHxDvEzYHUPfGCnRL5Fe4/fSEZbtxrRNJ7okzCans3lXxj2t298EynFHGTnTC2f1Iw==}dependencies:- '@types/accepts': 1.3.5- '@types/content-disposition': 0.5.3- '@types/cookies': 0.7.6- '@types/http-assert': 1.5.1- '@types/http-errors': 1.8.0- '@types/keygrip': 1.0.2- '@types/koa-compose': 3.2.5- '@types/node': 14.14.41+ '@types/node': 15.0.1dev: true- /@types/lru-cache/5.1.0:- resolution: {integrity: sha512-RaE0B+14ToE4l6UqdarKPnXwVDuigfFv+5j9Dze/Nqr23yyuqdNvzcZi3xB+3Agvi5R4EOgAksfv3lXX4vBt9w==}- dev: true-- /@types/mime/1.3.2:- resolution: {integrity: sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==}+ /@types/json-schema/7.0.7:+ resolution: {integrity: sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==}dev: true/@types/mongodb/3.6.12:resolution: {integrity: sha512-49aEzQD5VdHPxyd5dRyQdqEveAg9LanwrH8RQipnMuulwzKmODXIZRp0umtxi1eBUfEusRkoy8AVOMr+kVuFog==}dependencies:'@types/bson': 4.0.3- '@types/node': 14.14.41- dev: false-- /@types/node/12.20.10:- resolution: {integrity: sha512-TxCmnSSppKBBOzYzPR2BR25YlX5Oay8z2XGwFBInuA/Co0V9xJhLlW4kjbxKtgeNo3NOMbQP1A5Rc03y+XecPw==}+ '@types/node': 15.0.1dev: false- /@types/node/14.14.41:- resolution: {integrity: sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g==}+ /@types/node/15.0.1:+ resolution: {integrity: sha512-TMkXt0Ck1y0KKsGr9gJtWGjttxlZnnvDtphxUOSd0bfaR6Q1jle+sPvrzNR1urqYTWMinoKvjKfXUGsumaO1PA==}/@types/parse-json/4.0.0:resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==}@@ -459,139 +240,120 @@ packages:resolution: {integrity: sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI=}dev: true- /@types/qs/6.9.6:- resolution: {integrity: sha512-0/HnwIfW4ki2D8L8c9GVcG5I72s9jP5GSLVF0VIXDW00kmIpA6O33G7a8n59Tmh7Nz0WUC3rSb7PTY/sdW2JzA==}- dev: true-- /@types/range-parser/1.2.3:- resolution: {integrity: sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==}- dev: true-- /@types/resolve/1.17.1:- resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==}- dependencies:- '@types/node': 14.14.41- dev: true-/@types/sass/1.16.0:resolution: {integrity: sha512-2XZovu4NwcqmtZtsBR5XYLw18T8cBCnU2USFHTnYLLHz9fkhnoEMoDsqShJIOFsFhn5aJHjweiUUdTrDGujegA==}dependencies:- '@types/node': 14.14.41- dev: true-- /@types/serve-static/1.13.9:- resolution: {integrity: sha512-ZFqF6qa48XsPdjXV5Gsz0Zqmux2PerNd3a/ktL45mHpa19cuMi/cL8tcxdAx497yRh+QtYPuofjT9oWw9P7nkA==}- dependencies:- '@types/mime': 1.3.2- '@types/node': 14.14.41- dev: true-- /@types/tmp/0.2.0:- resolution: {integrity: sha512-flgpHJjntpBAdJD43ShRosQvNC0ME97DCfGvZEDlAThQmnerRXrLbX6YgzRBQCZTthET9eAWFAMaYP0m0Y4HzQ==}+ '@types/node': 15.0.1dev: true- /@vue/compiler-core/3.0.11:- resolution: {integrity: sha512-6sFj6TBac1y2cWCvYCA8YzHJEbsVkX7zdRs/3yK/n1ilvRqcn983XvpBbnN3v4mZ1UiQycTvOiajJmOgN9EVgw==}+ /@typescript-eslint/eslint-plugin/4.22.1_b96c9280c6ac79e4dfcda76a733858e3:+ resolution: {integrity: sha512-kVTAghWDDhsvQ602tHBc6WmQkdaYbkcTwZu+7l24jtJiYvm9l+/y/b2BZANEezxPDiX5MK2ZecE+9BFi/YJryw==}+ engines: {node: ^10.12.0 || >=12.0.0}+ peerDependencies:+ '@typescript-eslint/parser': ^4.0.0+ eslint: ^5.0.0 || ^6.0.0 || ^7.0.0+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: truedependencies:- '@babel/parser': 7.13.15- '@babel/types': 7.13.14- '@vue/shared': 3.0.11- estree-walker: 2.0.2- source-map: 0.6.1+ '@typescript-eslint/experimental-utils': [email protected][email protected]+ '@typescript-eslint/parser': [email protected][email protected]+ '@typescript-eslint/scope-manager': 4.22.1+ debug: 4.3.1+ eslint: 7.26.0+ functional-red-black-tree: 1.0.1+ lodash: 4.17.21+ regexpp: 3.1.0+ semver: 7.3.5+ tsutils: [email protected]+ typescript: 4.2.4+ transitivePeerDependencies:+ - supports-colordev: true- /@vue/compiler-dom/3.0.11:- resolution: {integrity: sha512-+3xB50uGeY5Fv9eMKVJs2WSRULfgwaTJsy23OIltKgMrynnIj8hTYY2UL97HCoz78aDw1VDXdrBQ4qepWjnQcw==}+ /@typescript-eslint/experimental-utils/[email protected][email protected]:+ resolution: {integrity: sha512-svYlHecSMCQGDO2qN1v477ax/IDQwWhc7PRBiwAdAMJE7GXk5stF4Z9R/8wbRkuX/5e9dHqbIWxjeOjckK3wLQ==}+ engines: {node: ^10.12.0 || >=12.0.0}+ peerDependencies:+ eslint: '*'dependencies:- '@vue/compiler-core': 3.0.11- '@vue/shared': 3.0.11+ '@types/json-schema': 7.0.7+ '@typescript-eslint/scope-manager': 4.22.1+ '@typescript-eslint/types': 4.22.1+ '@typescript-eslint/typescript-estree': [email protected]+ eslint: 7.26.0+ eslint-scope: 5.1.1+ eslint-utils: 2.1.0+ transitivePeerDependencies:+ - supports-color+ - typescriptdev: true- /@vue/compiler-sfc/[email protected]:- resolution: {integrity: sha512-7fNiZuCecRleiyVGUWNa6pn8fB2fnuJU+3AGjbjl7r1P5wBivfl02H4pG+2aJP5gh2u+0wXov1W38tfWOphsXw==}+ /@typescript-eslint/parser/[email protected][email protected]:+ resolution: {integrity: sha512-l+sUJFInWhuMxA6rtirzjooh8cM/AATAe3amvIkqKFeMzkn85V+eLzb1RyuXkHak4dLfYzOmF6DXPyflJvjQnw==}+ engines: {node: ^10.12.0 || >=12.0.0}peerDependencies:- vue: 3.0.11- dependencies:- '@babel/parser': 7.13.15- '@babel/types': 7.13.14- '@vue/compiler-core': 3.0.11- '@vue/compiler-dom': 3.0.11- '@vue/compiler-ssr': 3.0.11- '@vue/shared': 3.0.11- consolidate: 0.16.0- estree-walker: 2.0.2- hash-sum: 2.0.0- lru-cache: 5.1.1- magic-string: 0.25.7- merge-source-map: 1.1.0- postcss: 8.2.10- postcss-modules: [email protected]- postcss-selector-parser: 6.0.4- source-map: 0.6.1- vue: 3.0.11- dev: true-- /@vue/compiler-ssr/3.0.11:- resolution: {integrity: sha512-66yUGI8SGOpNvOcrQybRIhl2M03PJ+OrDPm78i7tvVln86MHTKhM3ERbALK26F7tXl0RkjX4sZpucCpiKs3MnA==}+ eslint: ^5.0.0 || ^6.0.0 || ^7.0.0+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: truedependencies:- '@vue/compiler-dom': 3.0.11- '@vue/shared': 3.0.11+ '@typescript-eslint/scope-manager': 4.22.1+ '@typescript-eslint/types': 4.22.1+ '@typescript-eslint/typescript-estree': [email protected]+ debug: 4.3.1+ eslint: 7.26.0+ typescript: 4.2.4+ transitivePeerDependencies:+ - supports-colordev: true- /@vue/reactivity/3.0.11:- resolution: {integrity: sha512-SKM3YKxtXHBPMf7yufXeBhCZ4XZDKP9/iXeQSC8bBO3ivBuzAi4aZi0bNoeE2IF2iGfP/AHEt1OU4ARj4ao/Xw==}+ /@typescript-eslint/scope-manager/4.22.1:+ resolution: {integrity: sha512-d5bAiPBiessSmNi8Amq/RuLslvcumxLmyhf1/Xa9IuaoFJ0YtshlJKxhlbY7l2JdEk3wS0EnmnfeJWSvADOe0g==}+ engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}dependencies:- '@vue/shared': 3.0.11+ '@typescript-eslint/types': 4.22.1+ '@typescript-eslint/visitor-keys': 4.22.1dev: true- /@vue/runtime-core/3.0.11:- resolution: {integrity: sha512-87XPNwHfz9JkmOlayBeCCfMh9PT2NBnv795DSbi//C/RaAnc/bGZgECjmkD7oXJ526BZbgk9QZBPdFT8KMxkAg==}- dependencies:- '@vue/reactivity': 3.0.11- '@vue/shared': 3.0.11+ /@typescript-eslint/types/4.22.1:+ resolution: {integrity: sha512-2HTkbkdAeI3OOcWbqA8hWf/7z9c6gkmnWNGz0dKSLYLWywUlkOAQ2XcjhlKLj5xBFDf8FgAOF5aQbnLRvgNbCw==}+ engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}dev: true- /@vue/runtime-dom/3.0.11:- resolution: {integrity: sha512-jm3FVQESY3y2hKZ2wlkcmFDDyqaPyU3p1IdAX92zTNeCH7I8zZ37PtlE1b9NlCtzV53WjB4TZAYh9yDCMIEumA==}+ /@typescript-eslint/typescript-estree/[email protected]:+ resolution: {integrity: sha512-p3We0pAPacT+onSGM+sPR+M9CblVqdA9F1JEdIqRVlxK5Qth4ochXQgIyb9daBomyQKAXbygxp1aXQRV0GC79A==}+ engines: {node: ^10.12.0 || >=12.0.0}+ peerDependencies:+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: truedependencies:- '@vue/runtime-core': 3.0.11- '@vue/shared': 3.0.11- csstype: 2.6.16- dev: true-- /@vue/shared/3.0.11:- resolution: {integrity: sha512-b+zB8A2so8eCE0JsxjL24J7vdGl8rzPQ09hZNhystm+KqSbKcAej1A+Hbva1rCMmTTqA+hFnUSDc5kouEo0JzA==}- dev: true-- /@zerodevx/svelte-toast/0.2.2:- resolution: {integrity: sha512-zriB7tSY54OEbRDqJ1NbHBv5Z83tWKhqqW7a+z8HMtZeR49zZUMLISFXmY7B8tMwzO6auB3A5dxuFyqB9+TZkQ==}- dev: false-- /abab/2.0.5:- resolution: {integrity: sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==}- dev: false-- /abbrev/1.1.1:- resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}+ '@typescript-eslint/types': 4.22.1+ '@typescript-eslint/visitor-keys': 4.22.1+ debug: 4.3.1+ globby: 11.0.3+ is-glob: 4.0.1+ semver: 7.3.5+ tsutils: [email protected]+ typescript: 4.2.4+ transitivePeerDependencies:+ - supports-colordev: true- /abstract-logging/2.0.1:- resolution: {integrity: sha512-2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==}- dev: false-- /accepts/1.3.7:- resolution: {integrity: sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==}- engines: {node: '>= 0.6'}+ /@typescript-eslint/visitor-keys/4.22.1:+ resolution: {integrity: sha512-WPkOrIRm+WCLZxXQHCi+WG8T2MMTUFR70rWjdWYddLT7cEfb2P4a3O/J2U1FBVsSFTocXLCoXWY6MZGejeStvQ==}+ engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}dependencies:- mime-types: 2.1.30- negotiator: 0.6.2+ '@typescript-eslint/types': 4.22.1+ eslint-visitor-keys: 2.0.0dev: true- /acorn-globals/6.0.0:- resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==}- dependencies:- acorn: 7.4.1- acorn-walk: 7.2.0+ /@zerodevx/svelte-toast/0.3.0:+ resolution: {integrity: sha512-TY5dLB5DEpxuHu60M6gum+fDxzIGXg35R8500orz58JTFs9LiHWoEfeJ4n9t7Afix3iMmYLl2thjhnCHCiQIhQ==}dev: false/acorn-jsx/[email protected]:@@ -613,24 +375,12 @@ packages:/acorn-walk/7.2.0:resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==}engines: {node: '>=0.4.0'}+ dev: true/acorn/7.4.1:resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==}engines: {node: '>=0.4.0'}hasBin: true-- /acorn/8.1.1:- resolution: {integrity: sha512-xYiIVjNuqtKXMxlRMDc6mZUhXehod4a3gbZ1qRlM7icK4EbxUFNLhWoPblCvFtB2Y9CIqHP3CF/rdxLItaQv8g==}- engines: {node: '>=0.4.0'}- hasBin: true-- /agent-base/6.0.2:- resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}- engines: {node: '>= 6.0.0'}- dependencies:- debug: 4.3.1- transitivePeerDependencies:- - supports-colordev: true/ajv/6.12.6:@@ -640,20 +390,19 @@ packages:fast-json-stable-stringify: 2.1.0json-schema-traverse: 0.4.1uri-js: 4.4.1+ dev: true- /ajv/8.1.0:- resolution: {integrity: sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ==}+ /ajv/8.2.0:+ resolution: {integrity: sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==}dependencies:fast-deep-equal: 3.1.3json-schema-traverse: 1.0.0require-from-string: 2.0.2uri-js: 4.4.1- dev: false+ dev: true- /ansi-align/3.0.0:- resolution: {integrity: sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==}- dependencies:- string-width: 3.1.0+ /alphanum-sort/1.0.2:+ resolution: {integrity: sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=}dev: true/ansi-colors/4.1.1:@@ -661,11 +410,6 @@ packages:engines: {node: '>=6'}dev: true- /ansi-regex/4.1.0:- resolution: {integrity: sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==}- engines: {node: '>=6'}- dev: true-/ansi-regex/5.0.0:resolution: {integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==}engines: {node: '>=8'}@@ -676,15 +420,13 @@ packages:engines: {node: '>=4'}dependencies:color-convert: 1.9.3+ dev: true/ansi-styles/4.3.0:resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}engines: {node: '>=8'}dependencies:color-convert: 2.0.1-- /any-promise/1.3.0:- resolution: {integrity: sha1-q8av7tzqUugJzcA3au0845Y10X8=}dev: true/anymatch/3.1.2:@@ -695,10 +437,6 @@ packages:picomatch: 2.2.3dev: true- /archy/1.0.0:- resolution: {integrity: sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=}- dev: false-/argparse/1.0.10:resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}dependencies:@@ -709,125 +447,55 @@ packages:resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}dev: false- /array-flatten/1.1.1:- resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=}- dev: true- optional: true-- /array-includes/3.1.3:- resolution: {integrity: sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- get-intrinsic: 1.1.1- is-string: 1.0.5- dev: true-/array-union/2.1.0:resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}engines: {node: '>=8'}dev: true- /array.prototype.flat/1.2.4:- resolution: {integrity: sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- dev: true-- /array.prototype.flatmap/1.2.4:- resolution: {integrity: sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- function-bind: 1.1.1- dev: true-/asn1/0.2.4:resolution: {integrity: sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==}dependencies:safer-buffer: 2.1.2dev: false- /assert-plus/1.0.0:- resolution: {integrity: sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=}- engines: {node: '>=0.8'}- dev: false-- /astral-regex/1.0.0:- resolution: {integrity: sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==}- engines: {node: '>=4'}- dev: true-- /async-limiter/1.0.1:- resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==}+ /astral-regex/2.0.0:+ resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}+ engines: {node: '>=8'}dev: true- optional: true-- /asynckit/0.4.0:- resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=}- dev: false/at-least-node/1.0.0:resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==}engines: {node: '>= 4.0.0'}+ dev: true- /atomic-sleep/1.0.0:- resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==}- engines: {node: '>=8.0.0'}- dev: false+ /auto-parse/1.8.0:+ resolution: {integrity: sha512-Uri4uC+K5cSi5hjM4snFrqPrjqUpwxeSW5EMTPvN7Ju3PlDzmXXDr5tjdzxPvvwgT3J7bmMDJ3Rm625nbrc72A==}+ dependencies:+ typpy: 2.3.11+ dev: true- /autoprefixer/9.8.6:- resolution: {integrity: sha512-XrvP4VVHdRBCdX1S3WXVD8+RyG9qeb1D5Sn1DeLiG2xfSpzellk5k54xbUERJ3M5DggQxes39UGOTP8CFrEGbg==}+ /autoprefixer/[email protected]:+ resolution: {integrity: sha512-7H4AJZXvSsn62SqZyJCP+1AWwOuoYpUfK6ot9vm0e87XD6mT8lDywc9D9OTJPMULyGcvmIxzTAMeG2Cc+YX+fA==}+ engines: {node: ^10 || ^12 || >=14}hasBin: true+ peerDependencies:+ postcss: ^8.1.0dependencies:- browserslist: 4.16.4- caniuse-lite: 1.0.30001209+ browserslist: 4.16.6+ caniuse-lite: 1.0.30001220colorette: 1.2.2+ fraction.js: 4.0.13normalize-range: 0.1.2- num2fraction: 1.2.2- postcss: 7.0.35+ postcss: 8.2.14postcss-value-parser: 4.1.0dev: true- /avvio/7.2.1:- resolution: {integrity: sha512-b+gox68dqD6c3S3t+bZBKN6rYbVWdwpN12sHQLFTiacDT2rcq7fm07Ww+IKt/AvAkyCIe1f5ArP1bC/vAlx97A==}- dependencies:- archy: 1.0.0- debug: 4.3.1- fastq: 1.11.0- queue-microtask: 1.2.3- transitivePeerDependencies:- - supports-color- dev: false-- /aws-sign2/0.7.0:- resolution: {integrity: sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=}- dev: false-- /aws4/1.11.0:- resolution: {integrity: sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==}- dev: false-- /axios/0.21.1:- resolution: {integrity: sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==}- dependencies:- follow-redirects: 1.13.3- transitivePeerDependencies:- - debug- dev: false-/balanced-match/1.0.2:resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}/base64-js/1.5.1:resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}+ dev: false/bcrypt-pbkdf/1.0.2:resolution: {integrity: sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=}@@ -835,10 +503,6 @@ packages:tweetnacl: 0.14.5dev: false- /big.js/5.2.2:- resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}- dev: true-/binary-extensions/2.2.0:resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}engines: {node: '>=8'}@@ -849,6 +513,7 @@ packages:dependencies:readable-stream: 2.3.7safe-buffer: 5.2.1+ dev: false/bl/4.1.0:resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}@@ -856,44 +521,14 @@ packages:buffer: 5.7.1inherits: 2.0.4readable-stream: 3.6.0+ dev: false/bluebird/3.5.1:resolution: {integrity: sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==}dev: false- /bluebird/3.7.2:- resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==}- dev: true-- /body-parser/1.19.0:- resolution: {integrity: sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==}- engines: {node: '>= 0.8'}- dependencies:- bytes: 3.1.0- content-type: 1.0.4- debug: 2.6.9- depd: 1.1.2- http-errors: 1.7.2- iconv-lite: 0.4.24- on-finished: 2.3.0- qs: 6.7.0- raw-body: 2.4.0- type-is: 1.6.18- dev: true- optional: true-- /boxen/4.2.0:- resolution: {integrity: sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==}- engines: {node: '>=8'}- dependencies:- ansi-align: 3.0.0- camelcase: 5.3.1- chalk: 3.0.0- cli-boxes: 2.2.1- string-width: 4.2.2- term-size: 2.2.1- type-fest: 0.8.1- widest-line: 3.1.0+ /boolbase/1.0.0:+ resolution: {integrity: sha1-aN/1++YMUes3cl6p4+0xDcwed24=}dev: true/brace-expansion/1.1.11:@@ -909,25 +544,14 @@ packages:fill-range: 7.0.1dev: true- /brotli-size/4.0.0:- resolution: {integrity: sha512-uA9fOtlTRC0iqKfzff1W34DXUA3GyVqbUaeo3Rw3d4gd1eavKVCETXrn3NzO74W+UVkG3UHu8WxUi+XvKI/huA==}- engines: {node: '>= 10.16.0'}- dependencies:- duplexer: 0.1.1- dev: true-- /browser-process-hrtime/1.0.0:- resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==}- dev: false-- /browserslist/4.16.4:- resolution: {integrity: sha512-d7rCxYV8I9kj41RH8UKYnvDYCRENUlHRgyXy/Rhr/1BaeLGfiCptEdFE8MIrvGfWbBFNjVYx76SQWvNX1j+/cQ==}+ /browserslist/4.16.6:+ resolution: {integrity: sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: truedependencies:- caniuse-lite: 1.0.30001209+ caniuse-lite: 1.0.30001220colorette: 1.2.2- electron-to-chromium: 1.3.717+ electron-to-chromium: 1.3.725escalade: 3.1.1node-releases: 1.1.71dev: true@@ -935,80 +559,24 @@ packages:/bson/1.1.6:resolution: {integrity: sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==}engines: {node: '>=0.6.19'}-- /buffer-crc32/0.2.13:- resolution: {integrity: sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=}- dev: true+ dev: false/buffer-equal-constant-time/1.0.1:resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=}dev: false- /buffer-from/1.1.1:- resolution: {integrity: sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==}- dev: true-/buffer/5.7.1:resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}dependencies:base64-js: 1.5.1ieee754: 1.2.1-- /bufferutil/4.0.3:- resolution: {integrity: sha512-yEYTwGndELGvfXsImMBLop58eaGW+YdONi1fNjTINSY98tmMmFijBG6WXgdkfuLNt4imzQNtIE+eBp1PVpMCSw==}- requiresBuild: true- dependencies:- node-gyp-build: 4.2.3dev: false- /builtin-modules/1.1.1:- resolution: {integrity: sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=}- engines: {node: '>=0.10.0'}- dev: true-- /builtin-modules/3.2.0:- resolution: {integrity: sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==}- engines: {node: '>=6'}- dev: true-/bytes/3.1.0:resolution: {integrity: sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==}engines: {node: '>= 0.8'}dev: true- /cac/6.7.2:- resolution: {integrity: sha512-w0bH1IF9rEjdi0a6lTtlXYT+vBZEJL9oytaXXRdsD68MH6+SrZGOGsu7s2saHQvYXqwo/wBdkW75tt8wFpj+mw==}- engines: {node: '>=8'}- dev: true-- /cache-content-type/1.0.1:- resolution: {integrity: sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==}- engines: {node: '>= 6.0.0'}- dependencies:- mime-types: 2.1.30- ylru: 1.2.1- dev: true-- /cacheable-request/6.1.0:- resolution: {integrity: sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==}- engines: {node: '>=8'}- dependencies:- clone-response: 1.0.2- get-stream: 5.2.0- http-cache-semantics: 4.1.0- keyv: 3.1.0- lowercase-keys: 2.0.0- normalize-url: 4.5.0- responselike: 1.0.2- dev: true-- /call-bind/1.0.2:- resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}- dependencies:- function-bind: 1.1.1- get-intrinsic: 1.1.1- dev: true-/callsites/3.1.0:resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}engines: {node: '>=6'}@@ -1024,19 +592,19 @@ packages:engines: {node: '>=6'}dev: true- /camelcase/6.2.0:- resolution: {integrity: sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==}- engines: {node: '>=10'}+ /caniuse-api/3.0.0:+ resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==}+ dependencies:+ browserslist: 4.16.6+ caniuse-lite: 1.0.30001220+ lodash.memoize: 4.1.2+ lodash.uniq: 4.5.0dev: true- /caniuse-lite/1.0.30001209:- resolution: {integrity: sha512-2Ktt4OeRM7EM/JaOZjuLzPYAIqmbwQMNnYbgooT+icoRGrKOyAxA1xhlnotBD1KArRSPsuJp3TdYcZYrL7qNxA==}+ /caniuse-lite/1.0.30001220:+ resolution: {integrity: sha512-pjC2T4DIDyGAKTL4dMvGUQaMUHRmhvPpAgNNTa14jaBWHu+bLQgvpFqElxh9L4829Fdx0PlKiMp3wnYldRtECA==}dev: true- /caseless/0.12.0:- resolution: {integrity: sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=}- dev: false-/chalk/2.4.2:resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}engines: {node: '>=4'}@@ -1044,26 +612,20 @@ packages:ansi-styles: 3.2.1escape-string-regexp: 1.0.5supports-color: 5.5.0-- /chalk/3.0.0:- resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==}- engines: {node: '>=8'}- dependencies:- ansi-styles: 4.3.0- supports-color: 7.2.0dev: true- /chalk/4.1.0:- resolution: {integrity: sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==}+ /chalk/4.1.1:+ resolution: {integrity: sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==}engines: {node: '>=10'}dependencies:ansi-styles: 4.3.0supports-color: 7.2.0+ dev: true/cheap-watch/1.0.3:resolution: {integrity: sha512-xC5CruMhLzjPwJ5ecUxGu1uGmwJQykUhqd2QrCrYbwvsFYdRyviu6jG9+pccwDXJR/OpmOTOJ9yLFunVgQu9wg==}engines: {node: '>=8'}- dev: false+ dev: true/chokidar/3.5.1:resolution: {integrity: sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==}@@ -1084,75 +646,26 @@ packages:resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}dev: false- /ci-info/2.0.0:- resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==}- dev: true-- /clean-css/4.2.3:- resolution: {integrity: sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==}- engines: {node: '>= 4.0'}- dependencies:- source-map: 0.6.1- dev: true-- /cli-boxes/2.2.1:- resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==}- engines: {node: '>=6'}- dev: true-- /cli-cursor/3.1.0:- resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}- engines: {node: '>=8'}- dependencies:- restore-cursor: 3.1.0- dev: true-- /cli-spinners/2.6.0:- resolution: {integrity: sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q==}- engines: {node: '>=6'}- dev: true-- /cliui/7.0.4:- resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}- dependencies:- string-width: 4.2.2- strip-ansi: 6.0.0- wrap-ansi: 7.0.0- dev: true- optional: true-- /clone-response/1.0.2:- resolution: {integrity: sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=}- dependencies:- mimic-response: 1.0.1- dev: true-- /clone/1.0.4:- resolution: {integrity: sha1-2jCcwmPfFZlMaIypAheco8fNfH4=}- engines: {node: '>=0.8'}- dev: true-- /co/4.6.0:- resolution: {integrity: sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=}- engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}- dev: true-/color-convert/1.9.3:resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}dependencies:color-name: 1.1.3+ dev: true/color-convert/2.0.1:resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}engines: {node: '>=7.0.0'}dependencies:color-name: 1.1.4+ dev: true/color-name/1.1.3:resolution: {integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=}+ dev: true/color-name/1.1.4:resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}+ dev: true/color-string/1.5.5:resolution: {integrity: sha512-jgIoum0OfQfq9Whcfc2z/VhCNcmQjWbey6qBX0vqt7YICflUmBCh9E9CiQD5GSJ+Uehixm3NUwHVhqUAWRivZg==}@@ -1172,17 +685,6 @@ packages:resolution: {integrity: sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==}dev: true- /combined-stream/1.0.8:- resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}- engines: {node: '>= 0.8'}- dependencies:- delayed-stream: 1.0.0- dev: false-- /commander/2.20.3:- resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}- dev: true-/commander/6.2.1:resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}engines: {node: '>= 6'}@@ -1191,11 +693,6 @@ packages:/commander/7.2.0:resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}engines: {node: '>= 10'}- dev: false-- /commondir/1.0.1:- resolution: {integrity: sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=}- dev: true/compare-versions/3.6.0:resolution: {integrity: sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==}@@ -1204,80 +701,14 @@ packages:/concat-map/0.0.1:resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=}- /configent/2.2.0:- resolution: {integrity: sha512-yIN6zfOWk2nycNJ2JFNiWEai0oiqAhISIht8+pbEBP8bdcpwoQ74AhCZPbUv9aRVJwo7wh1MbCBDUV44UJa7Kw==}- dependencies:- dotenv: 8.2.0- dev: false-- /configstore/5.0.1:- resolution: {integrity: sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==}- engines: {node: '>=8'}- dependencies:- dot-prop: 5.3.0- graceful-fs: 4.2.6- make-dir: 3.1.0- unique-string: 2.0.0- write-file-atomic: 3.0.3- xdg-basedir: 4.0.0- dev: true-- /consolidate/0.16.0:- resolution: {integrity: sha512-Nhl1wzCslqXYTJVDyJCu3ODohy9OfBMB5uD2BiBTzd7w+QY0lBzafkR8y8755yMYHAaMD4NuzbAw03/xzfw+eQ==}- engines: {node: '>= 0.10.0'}- dependencies:- bluebird: 3.7.2- dev: true-- /contains-path/0.1.0:- resolution: {integrity: sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=}- engines: {node: '>=0.10.0'}- dev: true-- /content-disposition/0.5.3:- resolution: {integrity: sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==}- engines: {node: '>= 0.6'}- dependencies:- safe-buffer: 5.1.2-- /content-type/1.0.4:- resolution: {integrity: sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==}- engines: {node: '>= 0.6'}- dev: true-- /convert-source-map/1.7.0:- resolution: {integrity: sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==}- dependencies:- safe-buffer: 5.1.2- dev: true- optional: true-- /cookie-signature/1.0.6:- resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=}- dev: true- optional: true-- /cookie/0.4.0:- resolution: {integrity: sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==}- engines: {node: '>= 0.6'}- dev: true- optional: true-/cookie/0.4.1:resolution: {integrity: sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==}engines: {node: '>= 0.6'}dev: false- /cookies/0.8.0:- resolution: {integrity: sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==}- engines: {node: '>= 0.8'}- dependencies:- depd: 2.0.0- keygrip: 1.1.0- dev: true-/core-util-is/1.0.2:resolution: {integrity: sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=}+ dev: false/cosmiconfig/7.0.0:resolution: {integrity: sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==}@@ -1290,17 +721,6 @@ packages:yaml: 1.10.2dev: true- /cross-spawn/6.0.5:- resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==}- engines: {node: '>=4.8'}- dependencies:- nice-try: 1.0.5- path-key: 2.0.1- semver: 5.7.1- shebang-command: 1.2.0- which: 1.3.1- dev: true-/cross-spawn/7.0.3:resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}engines: {node: '>= 8'}@@ -1310,48 +730,49 @@ packages:which: 2.0.2dev: true- /crypto-random-string/2.0.0:- resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==}- engines: {node: '>=8'}+ /css-color-names/0.0.4:+ resolution: {integrity: sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=}dev: true- /css-blank-pseudo/0.1.4:- resolution: {integrity: sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==}- engines: {node: '>=6.0.0'}- hasBin: true+ /css-color-names/1.0.1:+ resolution: {integrity: sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==}+ dev: true++ /css-declaration-sorter/[email protected]:+ resolution: {integrity: sha512-S0TE4E0ha5+tBHdLWPc5n+S8E4dFBS5xScPvgHkLNZwWvX4ISoFGhGeerLC9uS1cKA/sC+K2wHq6qEbcagT/fg==}+ engines: {node: '>= 10'}+ peerDependencies:+ postcss: ^8.0.9dependencies:- postcss: 7.0.35+ postcss: 8.2.14+ timsort: 0.3.0dev: true- /css-has-pseudo/0.10.0:- resolution: {integrity: sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==}- engines: {node: '>=6.0.0'}- hasBin: true+ /css-select/3.1.2:+ resolution: {integrity: sha512-qmss1EihSuBNWNNhHjxzxSfJoFBM/lERB/Q4EnsJQQC62R2evJDW481091oAdOr9uh46/0n4nrg0It5cAnj1RA==}dependencies:- postcss: 7.0.35- postcss-selector-parser: 5.0.0+ boolbase: 1.0.0+ css-what: 4.0.0+ domhandler: 4.2.0+ domutils: 2.6.0+ nth-check: 2.0.0dev: true- /css-prefers-color-scheme/3.1.1:- resolution: {integrity: sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==}- engines: {node: '>=6.0.0'}- hasBin: true+ /css-tree/1.1.3:+ resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==}+ engines: {node: '>=8.0.0'}dependencies:- postcss: 7.0.35+ mdn-data: 2.0.14+ source-map: 0.6.1dev: true/css-unit-converter/1.1.2:resolution: {integrity: sha512-IiJwMC8rdZE0+xiEZHeru6YoONC4rfPMqGm2W85jMIbkFvv5nFTwJVFHam2eFrN6txmoUYFAFXiv8ICVeTO0MA==}dev: true- /cssdb/4.4.0:- resolution: {integrity: sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==}- dev: true-- /cssesc/2.0.0:- resolution: {integrity: sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==}- engines: {node: '>=4'}- hasBin: true+ /css-what/4.0.0:+ resolution: {integrity: sha512-teijzG7kwYfNVsUh2H/YN62xW3KK9YhXEgSlbxMlcyjPNvdKJqFx5lrwlJgoFP1ZHlB89iGDlo/JyshKeRhv5A==}+ engines: {node: '>= 6'}dev: true/cssesc/3.0.0:@@ -1360,64 +781,85 @@ packages:hasBin: truedev: true- /cssom/0.3.8:- resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==}- dev: false-- /cssom/0.4.4:- resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==}- dev: false+ /cssnano-preset-default/[email protected]:+ resolution: {integrity: sha512-cfmfThYODGqhpQKDq9H0MTAqkMvZ3dGbOUTBKw0xWZiIycMqHid22LsJXJl4r1qX4qzDeKxcSyQ/Xb5Mu3Z//Q==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1+ dependencies:+ css-declaration-sorter: [email protected]+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-calc: [email protected]+ postcss-colormin: [email protected]+ postcss-convert-values: [email protected]+ postcss-discard-comments: [email protected]+ postcss-discard-duplicates: [email protected]+ postcss-discard-empty: [email protected]+ postcss-discard-overridden: [email protected]+ postcss-merge-longhand: [email protected]+ postcss-merge-rules: [email protected]+ postcss-minify-font-values: [email protected]+ postcss-minify-gradients: [email protected]+ postcss-minify-params: [email protected]+ postcss-minify-selectors: [email protected]+ postcss-normalize-charset: [email protected]+ postcss-normalize-display-values: [email protected]+ postcss-normalize-positions: [email protected]+ postcss-normalize-repeat-style: [email protected]+ postcss-normalize-string: [email protected]+ postcss-normalize-timing-functions: [email protected]+ postcss-normalize-unicode: [email protected]+ postcss-normalize-url: [email protected]+ postcss-normalize-whitespace: [email protected]+ postcss-ordered-values: [email protected]+ postcss-reduce-initial: [email protected]+ postcss-reduce-transforms: [email protected]+ postcss-svgo: [email protected]+ postcss-unique-selectors: [email protected]+ dev: true++ /cssnano-utils/[email protected]:+ resolution: {integrity: sha512-xvxmTszdrvSyTACdPe8VU5J6p4sm3egpgw54dILvNqt5eBUv6TFjACLhSxtRuEsxYrgy8uDy269YjScO5aKbGA==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1+ dependencies:+ postcss: 8.2.14+ dev: true- /cssstyle/2.3.0:- resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==}- engines: {node: '>=8'}+ /cssnano/[email protected]:+ resolution: {integrity: sha512-8JK3EnPsjQsULme9/e5M2hF564f/480hwsdcHvQ7ZtAIMfQ1O3SCfs+b8Mjf5KJxhYApyRshR2QSovEJi2K72Q==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- cssom: 0.3.8- dev: false+ cosmiconfig: 7.0.0+ cssnano-preset-default: [email protected]+ is-resolvable: 1.1.0+ postcss: 8.2.14+ dev: true- /csstype/2.6.16:- resolution: {integrity: sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==}+ /csso/4.2.0:+ resolution: {integrity: sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==}+ engines: {node: '>=8.0.0'}+ dependencies:+ css-tree: 1.1.3dev: true/cuid/2.1.8:resolution: {integrity: sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==}dev: false- /dashdash/1.14.1:- resolution: {integrity: sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=}- engines: {node: '>=0.10'}- dependencies:- assert-plus: 1.0.0- dev: false-- /data-urls/2.0.0:- resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==}- engines: {node: '>=10'}- dependencies:- abab: 2.0.5- whatwg-mimetype: 2.3.0- whatwg-url: 8.5.0- dev: false-/dayjs/1.10.4:resolution: {integrity: sha512-RI/Hh4kqRc1UKLOAf/T5zdMMX5DQIlDxwUe3wSyMMnEbGunnpENCdbUgM+dW7kXidZqCttBrmw7BhN4TMddkCw==}dev: false- /debug/2.6.9:- resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}- dependencies:- ms: 2.0.0-/debug/3.1.0:resolution: {integrity: sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==}dependencies:ms: 2.0.0-- /debug/3.2.7:- resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}- dependencies:- ms: 2.1.3- dev: true+ dev: false/debug/4.3.1:resolution: {integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==}@@ -1430,84 +872,30 @@ packages:dependencies:ms: 2.1.2- /decimal.js/10.2.1:- resolution: {integrity: sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==}- dev: false-- /decompress-response/3.3.0:- resolution: {integrity: sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=}- engines: {node: '>=4'}+ /debug/4.3.2:+ resolution: {integrity: sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: truedependencies:- mimic-response: 1.0.1- dev: true-- /deep-equal/1.0.1:- resolution: {integrity: sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=}- dev: true-- /deep-extend/0.6.0:- resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}- engines: {node: '>=4.0.0'}+ ms: 2.1.2dev: true/deep-is/0.1.3:resolution: {integrity: sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=}-- /deepmerge/4.2.2:- resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==}- engines: {node: '>=0.10.0'}-- /defaults/1.0.3:- resolution: {integrity: sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=}- dependencies:- clone: 1.0.4- dev: true-- /defer-to-connect/1.1.3:- resolution: {integrity: sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==}- dev: true-- /define-properties/1.1.3:- resolution: {integrity: sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==}- engines: {node: '>= 0.4'}- dependencies:- object-keys: 1.1.1dev: true/defined/1.0.0:resolution: {integrity: sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=}dev: true- /degit/2.8.4:- resolution: {integrity: sha512-vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng==}- engines: {node: '>=8.0.0'}- hasBin: true- dev: true-- /delayed-stream/1.0.0:- resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=}- engines: {node: '>=0.4.0'}- dev: false-- /delegates/1.0.0:- resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=}- dev: true-/denque/1.5.0:resolution: {integrity: sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==}engines: {node: '>=0.10'}-- /depd/1.1.2:- resolution: {integrity: sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=}- engines: {node: '>= 0.6'}-- /depd/2.0.0:- resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}- engines: {node: '>= 0.8'}- dev: true-- /destroy/1.0.4:- resolution: {integrity: sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=}+ dev: false/detect-indent/6.0.0:resolution: {integrity: sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==}@@ -1539,8 +927,8 @@ packages:resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}dev: true- /docker-modem/2.1.4:- resolution: {integrity: sha512-vDTzZjjO1sXMY7m0xKjGdFMMZL7vIUerkC3G4l6rnrpOET2M6AOufM8ajmQoOB+6RfSn6I/dlikCUq/Y91Q1sQ==}+ /docker-modem/3.0.0:+ resolution: {integrity: sha512-WwFajJ8I5geZ/dDZ5FDMDA6TBkWa76xWwGIGw8uzUjNUGCN0to83wJ8Oi1AxrJTC0JBn+7fvIxUctnawtlwXeg==}engines: {node: '>= 8.0'}dependencies:debug: 4.3.1@@ -1551,44 +939,49 @@ packages:- supports-colordev: false- /dockerode/3.2.1:- resolution: {integrity: sha512-XsSVB5Wu5HWMg1aelV5hFSqFJaKS5x1aiV/+sT7YOzOq1IRl49I/UwV8Pe4x6t0iF9kiGkWu5jwfvbkcFVupBw==}+ /dockerode/3.3.0:+ resolution: {integrity: sha512-St08lfOjpYCOXEM8XA0VLu3B3hRjtddODphNW5GFoA0AS3JHgoPQKOz0Qmdzg3P+hUPxhb02g1o1Cu1G+U3lRg==}engines: {node: '>= 8.0'}dependencies:- docker-modem: 2.1.4+ docker-modem: 3.0.0tar-fs: 2.0.1transitivePeerDependencies:- supports-colordev: false- /doctrine/1.5.0:- resolution: {integrity: sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=}- engines: {node: '>=0.10.0'}+ /doctrine/3.0.0:+ resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}+ engines: {node: '>=6.0.0'}dependencies:esutils: 2.0.3- isarray: 1.0.0dev: true- /doctrine/2.1.0:- resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}- engines: {node: '>=0.10.0'}+ /dom-serializer/1.3.1:+ resolution: {integrity: sha512-Pv2ZluG5ife96udGgEDovOOOA5UELkltfJpnIExPrAk1LTvecolUGn6lIaoLh86d83GiB86CjzciMd9BuRB71Q==}dependencies:- esutils: 2.0.3+ domelementtype: 2.2.0+ domhandler: 4.2.0+ entities: 2.2.0dev: true- /doctrine/3.0.0:- resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}- engines: {node: '>=6.0.0'}+ /domelementtype/2.2.0:+ resolution: {integrity: sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==}+ dev: true++ /domhandler/4.2.0:+ resolution: {integrity: sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==}+ engines: {node: '>= 4'}dependencies:- esutils: 2.0.3+ domelementtype: 2.2.0dev: true- /domexception/2.0.1:- resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==}- engines: {node: '>=8'}+ /domutils/2.6.0:+ resolution: {integrity: sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA==}dependencies:- webidl-conversions: 5.0.0- dev: false+ dom-serializer: 1.3.1+ domelementtype: 2.2.0+ domhandler: 4.2.0+ dev: true/dot-prop/5.3.0:resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==}@@ -1597,62 +990,41 @@ packages:is-obj: 2.0.0dev: true- /dotenv-expand/5.1.0:- resolution: {integrity: sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==}+ /dotenv-extended/2.9.0:+ resolution: {integrity: sha512-MKc4WCqZj6Abx4rpDbQ9LsuBJldRLxLgFkY5qE+4JM7hXVYT/v8zyWGgnBeDjSOGzEecWOFPlosNpxfB9YnsCw==}+ engines: {node: '>=6'}+ hasBin: true+ dependencies:+ auto-parse: 1.8.0+ camelcase: 5.3.1+ cross-spawn: 7.0.3+ dotenv: 8.2.0+ dev: true/dotenv/8.2.0:resolution: {integrity: sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==}engines: {node: '>=8'}-- /duplexer/0.1.1:- resolution: {integrity: sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=}- dev: true-- /duplexer3/0.1.4:- resolution: {integrity: sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=}dev: true- /ecc-jsbn/0.1.2:- resolution: {integrity: sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=}- dependencies:- jsbn: 0.1.1- safer-buffer: 2.1.2- dev: false-/ecdsa-sig-formatter/1.0.11:resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}dependencies:safe-buffer: 5.2.1dev: false- /ee-first/1.1.1:- resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=}-- /electron-to-chromium/1.3.717:- resolution: {integrity: sha512-OfzVPIqD1MkJ7fX+yTl2nKyOE4FReeVfMCzzxQS+Kp43hZYwHwThlGP+EGIZRXJsxCM7dqo8Y65NOX/HP12iXQ==}- dev: true-- /emoji-regex/7.0.3:- resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==}+ /electron-to-chromium/1.3.725:+ resolution: {integrity: sha512-2BbeAESz7kc6KBzs7WVrMc1BY5waUphk4D4DX5dSQXJhsc3tP5ZFaiyuL0AB7vUKzDYpIeYwTYlEfxyjsGUrhw==}dev: true/emoji-regex/8.0.0:resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}dev: true- /emojis-list/3.0.0:- resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==}- engines: {node: '>= 4'}- dev: true-- /encodeurl/1.0.2:- resolution: {integrity: sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=}- engines: {node: '>= 0.8'}-/end-of-stream/1.4.4:resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}dependencies:once: 1.4.0+ dev: false/enquirer/2.3.6:resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==}@@ -1661,13 +1033,9 @@ packages:ansi-colors: 4.1.1dev: true- /env-schema/2.1.0:- resolution: {integrity: sha512-qvbmiB+31WJlDs4i9/R8jxEYfq3A0K20QzjGLR4cnlX3SD55ljVEULHXHU1iaPdWOkTSho/TajNzZp3jX3Shsw==}- dependencies:- ajv: 6.12.6- dotenv: 8.2.0- dotenv-expand: 5.1.0- dev: false+ /entities/2.2.0:+ resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}+ dev: true/error-ex/1.3.2:resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}@@ -1675,48 +1043,14 @@ packages:is-arrayish: 0.2.1dev: true- /es-abstract/1.18.0:- resolution: {integrity: sha512-LJzK7MrQa8TS0ja2w3YNLzUgJCGPdPOV1yVvezjNnS89D+VR08+Szt2mz3YB2Dck/+w5tfIq/RoUAFqJJGM2yw==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- es-to-primitive: 1.2.1- function-bind: 1.1.1- get-intrinsic: 1.1.1- has: 1.0.3- has-symbols: 1.0.2- is-callable: 1.2.3- is-negative-zero: 2.0.1- is-regex: 1.1.2- is-string: 1.0.5- object-inspect: 1.9.0- object-keys: 1.1.1- object.assign: 4.1.2- string.prototype.trimend: 1.0.4- string.prototype.trimstart: 1.0.4- unbox-primitive: 1.0.1- dev: true-- /es-module-lexer/0.3.26:- resolution: {integrity: sha512-Va0Q/xqtrss45hWzP8CZJwzGSZJjDM5/MJRE3IXXnUCcVLElR9BRaE9F62BopysASyc4nM3uwhSW7FFB9nlWAA==}- dev: true-- /es-to-primitive/1.2.1:- resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==}- engines: {node: '>= 0.4'}- dependencies:- is-callable: 1.2.3- is-date-object: 1.0.2- is-symbol: 1.0.3- dev: true-- /es6-promise/4.2.8:- resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==}+ /esbuild/0.11.20:+ resolution: {integrity: sha512-QOZrVpN/Yz74xfat0H6euSgn3RnwLevY1mJTEXneukz1ln9qB+ieaerRMzSeETpz/UJWsBMzRVR/andBht5WKw==}+ hasBin: true+ requiresBuild: truedev: true- optional: true- /esbuild/0.8.57:- resolution: {integrity: sha512-j02SFrUwFTRUqiY0Kjplwjm1psuzO1d6AjaXKuOR9hrY0HuPsT6sV42B6myW34h1q4CRy+Y3g4RU/cGJeI/nNA==}+ /esbuild/0.9.7:+ resolution: {integrity: sha512-VtUf6aQ89VTmMLKrWHYG50uByMF4JQlVysb8dmg6cOgW8JnFCipmz7p+HNBl+RR3LLCuBxFGVauAe2wfnF9bLg==}hasBin: truerequiresBuild: truedev: true@@ -1726,141 +1060,29 @@ packages:engines: {node: '>=6'}dev: true- /escape-goat/2.1.1:- resolution: {integrity: sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==}- engines: {node: '>=8'}- dev: true-- /escape-html/1.0.3:- resolution: {integrity: sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=}-/escape-string-regexp/1.0.5:resolution: {integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=}engines: {node: '>=0.8.0'}-- /escodegen/2.0.0:- resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==}- engines: {node: '>=6.0'}- hasBin: true- dependencies:- esprima: 4.0.1- estraverse: 5.2.0- esutils: 2.0.3- optionator: 0.8.3- optionalDependencies:- source-map: 0.6.1- dev: false-- /eslint-config-standard-jsx/10.0.0_d4901a613f352504e6e19464e186980c:- resolution: {integrity: sha512-hLeA2f5e06W1xyr/93/QJulN/rLbUVUmqTlexv9PRKHFwEC9ffJcH2LvJhMoEqYQBEYafedgGZXH2W8NUpt5lA==}- peerDependencies:- eslint: ^7.12.1- eslint-plugin-react: ^7.21.5- dependencies:- eslint: 7.13.0- eslint-plugin-react: [email protected]- dev: true-- /eslint-config-standard/16.0.2_1ebed8346196ff7bde7431d183a61a72:- resolution: {integrity: sha512-fx3f1rJDsl9bY7qzyX8SAtP8GBSk6MfXFaTfaGgk12aAYW4gJSyRm7dM790L6cbXv63fvjY4XeSzXnb4WM+SKw==}- peerDependencies:- eslint: ^7.12.1- eslint-plugin-import: ^2.22.1- eslint-plugin-node: ^11.1.0- eslint-plugin-promise: ^4.2.1- dependencies:- eslint: 7.13.0- eslint-plugin-import: [email protected]- eslint-plugin-node: [email protected]- eslint-plugin-promise: 4.2.1- dev: true-- /eslint-import-resolver-node/0.3.4:- resolution: {integrity: sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==}- dependencies:- debug: 2.6.9- resolve: 1.20.0- dev: true-- /eslint-module-utils/2.6.0:- resolution: {integrity: sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==}- engines: {node: '>=4'}- dependencies:- debug: 2.6.9- pkg-dir: 2.0.0dev: true- /eslint-plugin-es/[email protected]:- resolution: {integrity: sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==}- engines: {node: '>=8.10.0'}- peerDependencies:- eslint: '>=4.19.1'- dependencies:- eslint: 7.13.0- eslint-utils: 2.1.0- regexpp: 3.1.0- dev: true-- /eslint-plugin-import/[email protected]:- resolution: {integrity: sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==}- engines: {node: '>=4'}- peerDependencies:- eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0- dependencies:- array-includes: 3.1.3- array.prototype.flat: 1.2.4- contains-path: 0.1.0- debug: 2.6.9- doctrine: 1.5.0- eslint: 7.13.0- eslint-import-resolver-node: 0.3.4- eslint-module-utils: 2.6.0- has: 1.0.3- minimatch: 3.0.4- object.values: 1.1.3- read-pkg-up: 2.0.0- resolve: 1.20.0- tsconfig-paths: 3.9.0- dev: true-- /eslint-plugin-node/[email protected]:- resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==}- engines: {node: '>=8.10.0'}+ /eslint-config-prettier/[email protected]:+ resolution: {integrity: sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==}+ hasBin: truepeerDependencies:- eslint: '>=5.16.0'+ eslint: '>=7.0.0'dependencies:- eslint: 7.13.0- eslint-plugin-es: [email protected]- eslint-utils: 2.1.0- ignore: 5.1.8- minimatch: 3.0.4- resolve: 1.20.0- semver: 6.3.0+ eslint: 7.26.0dev: true- /eslint-plugin-promise/4.2.1:- resolution: {integrity: sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==}- engines: {node: '>=6'}- dev: true-- /eslint-plugin-react/[email protected]:- resolution: {integrity: sha512-8MaEggC2et0wSF6bUeywF7qQ46ER81irOdWS4QWxnnlAEsnzeBevk1sWh7fhpCghPpXb+8Ks7hvaft6L/xsR6g==}- engines: {node: '>=4'}+ /eslint-plugin-svelte3/[email protected][email protected]:+ resolution: {integrity: sha512-qdWB1QN21dEozsJFdR8XlEhMnsS6aKHjsXWuNmchYwxoet5I6QdCr1Xcq62++IzRBMCNCeH4waXqSOAdqrZzgA==}+ engines: {node: '>=10'}peerDependencies:- eslint: ^3 || ^4 || ^5 || ^6 || ^7+ eslint: '>=6.0.0'+ svelte: ^3.2.0dependencies:- array-includes: 3.1.3- array.prototype.flatmap: 1.2.4- doctrine: 2.1.0- eslint: 7.13.0- has: 1.0.3- jsx-ast-utils: 3.2.0- object.entries: 1.1.3- object.fromentries: 2.0.4- object.values: 1.1.3- prop-types: 15.7.2- resolve: 1.20.0- string.prototype.matchall: 4.0.4+ eslint: 7.26.0+ svelte: 3.38.2dev: true/eslint-scope/5.1.1:@@ -1888,15 +1110,15 @@ packages:engines: {node: '>=10'}dev: true- /eslint/7.13.0:- resolution: {integrity: sha512-uCORMuOO8tUzJmsdRtrvcGq5qposf7Rw0LwkTJkoDbOycVQtQjmnhZSuLQnozLE4TmAzlMVV45eCHmQ1OpDKUQ==}+ /eslint/7.26.0:+ resolution: {integrity: sha512-4R1ieRf52/izcZE7AlLy56uIHHDLT74Yzz2Iv2l6kDaYvEu9x+wMB5dZArVL8SYGXSYV2YAg70FcW5Y5nGGNIg==}engines: {node: ^10.12.0 || >=12.0.0}hasBin: truedependencies:- '@babel/code-frame': 7.12.13- '@eslint/eslintrc': 0.2.2+ '@babel/code-frame': 7.12.11+ '@eslint/eslintrc': 0.4.1ajv: 6.12.6- chalk: 4.1.0+ chalk: 4.1.1cross-spawn: 7.0.3debug: 4.3.1doctrine: 3.0.0@@ -1907,10 +1129,10 @@ packages:espree: 7.3.1esquery: 1.4.0esutils: 2.0.3- file-entry-cache: 5.0.1+ file-entry-cache: 6.0.1functional-red-black-tree: 1.0.1glob-parent: 5.1.2- globals: 12.4.0+ globals: 13.8.0ignore: 4.0.6import-fresh: 3.3.0imurmurhash: 0.1.4@@ -1927,18 +1149,13 @@ packages:semver: 7.3.5strip-ansi: 6.0.0strip-json-comments: 3.1.1- table: 5.4.6+ table: 6.6.0text-table: 0.2.0v8-compile-cache: 2.3.0transitivePeerDependencies:- supports-colordev: true- /esm/3.2.25:- resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}- engines: {node: '>=6'}- dev: false-/espree/7.3.1:resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==}engines: {node: ^10.12.0 || >=12.0.0}@@ -1952,6 +1169,7 @@ packages:resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}engines: {node: '>=4'}hasBin: true+ dev: true/esquery/1.4.0:resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==}@@ -1975,12 +1193,6 @@ packages:/estraverse/5.2.0:resolution: {integrity: sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==}engines: {node: '>=4.0'}-- /estree-walker/0.6.1:- resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==}-- /estree-walker/1.0.1:- resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==}dev: true/estree-walker/2.0.2:@@ -1990,108 +1202,11 @@ packages:/esutils/2.0.3:resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}-- /etag/1.8.1:- resolution: {integrity: sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=}- engines: {node: '>= 0.6'}-- /eventemitter3/4.0.7:- resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}- dev: true-- /execa/4.1.0:- resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==}- engines: {node: '>=10'}- dependencies:- cross-spawn: 7.0.3- get-stream: 5.2.0- human-signals: 1.1.1- is-stream: 2.0.0- merge-stream: 2.0.0- npm-run-path: 4.0.1- onetime: 5.1.2- signal-exit: 3.0.3- strip-final-newline: 2.0.0- dev: true-- /express-history-api-fallback/2.2.1:- resolution: {integrity: sha1-OirSf3vryQ/FM9EQ18bYMJe80Fc=}- dev: true- optional: true-- /express-http-proxy/1.6.2:- resolution: {integrity: sha512-soP7UXySFdLbeeMYL1foBkEoZj6HELq9BDAOCr1sLRpqjPaFruN5o6+bZeC+7U4USWIl4JMKEiIvTeKJ2WQdlQ==}- engines: {node: '>=6.0.0'}- dependencies:- debug: 3.2.7- es6-promise: 4.2.8- raw-body: 2.4.1- dev: true- optional: true-- /express-ws/[email protected]:- resolution: {integrity: sha512-KEyUw8AwRET2iFjFsI1EJQrJ/fHeGiJtgpYgEWG3yDv4l/To/m3a2GaYfeGyB3lsWdvbesjF5XCMx+SVBgAAYw==}- engines: {node: '>=4.5.0'}- peerDependencies:- express: ^4.0.0 || ^5.0.0-alpha.1- dependencies:- express: 4.17.1- ws: 5.2.2- dev: true- optional: true-- /express/4.17.1:- resolution: {integrity: sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==}- engines: {node: '>= 0.10.0'}- dependencies:- accepts: 1.3.7- array-flatten: 1.1.1- body-parser: 1.19.0- content-disposition: 0.5.3- content-type: 1.0.4- cookie: 0.4.0- cookie-signature: 1.0.6- debug: 2.6.9- depd: 1.1.2- encodeurl: 1.0.2- escape-html: 1.0.3- etag: 1.8.1- finalhandler: 1.1.2- fresh: 0.5.2- merge-descriptors: 1.0.1- methods: 1.1.2- on-finished: 2.3.0- parseurl: 1.3.3- path-to-regexp: 0.1.7- proxy-addr: 2.0.6- qs: 6.7.0- range-parser: 1.2.1- safe-buffer: 5.1.2- send: 0.17.1- serve-static: 1.14.1- setprototypeof: 1.1.1- statuses: 1.5.0- type-is: 1.6.18- utils-merge: 1.0.1- vary: 1.1.2dev: true- optional: true-- /extend/3.0.2:- resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}- dev: false-- /extsprintf/1.3.0:- resolution: {integrity: sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=}- engines: {'0': node >=0.6.0}- dev: false-- /fast-decode-uri-component/1.0.1:- resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==}- dev: false/fast-deep-equal/3.1.3:resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}+ dev: true/fast-glob/3.2.5:resolution: {integrity: sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==}@@ -2107,136 +1222,23 @@ packages:/fast-json-stable-stringify/2.1.0:resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}-- /fast-json-stringify/2.5.4:- resolution: {integrity: sha512-fu74X0fRzQqADX6LFJ+5lSal1+j/QmX4oWrDnrfVAXV4qT6PwyymZmhGa/1SWgouOmf0tBJzZrHZPLymO00Lxg==}- engines: {node: '>= 10.0.0'}- dependencies:- ajv: 6.12.6- deepmerge: 4.2.2- rfdc: 1.3.0- string-similarity: 4.0.4- dev: false+ dev: true/fast-levenshtein/2.0.6:resolution: {integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=}-- /fast-redact/3.0.0:- resolution: {integrity: sha512-a/S/Hp6aoIjx7EmugtzLqXmcNsyFszqbt6qQ99BdG61QjBZF6shNis0BYR6TsZOQ1twYc0FN2Xdhwwbv6+KD0w==}- engines: {node: '>=6'}- dev: false-- /fast-safe-stringify/2.0.7:- resolution: {integrity: sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==}- dev: false-- /fastfall/1.5.1:- resolution: {integrity: sha1-P+4DMxpJ0dObPN96XpzWb0dee5Q=}- engines: {node: '>=0.10.0'}- dependencies:- reusify: 1.0.4- dev: false-- /fastify-env/2.1.0:- resolution: {integrity: sha512-yKQ9s+w7ve5FIPmZg1ll6jUHFFes7lOV1jQpD/VzYfWs+Iavm+pqe7nUuOJN9NRRp5VPJ0BCoPa0qVl+w/+3+A==}- dependencies:- env-schema: 2.1.0- fastify-plugin: 2.3.4- dev: false-- /fastify-error/0.3.0:- resolution: {integrity: sha512-Jm2LMTB5rsJqlS1+cmgqqM9tTs0UrlgYR7TvDT3ZgXsUI5ib1NjQlqZHf+tDK5tVPdFGwyq02wAoJtyYIRSiFA==}- dev: false-- /fastify-jwt/2.4.0:- resolution: {integrity: sha512-RZ6TjDmMNajmMwh1xakR0iQcjP3NfrcFhwOc0leWp56G6+g7XX73TCzQxmxDNmLsclWDkgG8WTLUJETfaQWIQg==}- engines: {node: '>=10'}- dependencies:- '@types/jsonwebtoken': 8.5.1- fastify-plugin: 3.0.0- http-errors: 1.8.0- jsonwebtoken: 8.5.1- steed: 1.1.3- dev: false-- /fastify-plugin/2.3.4:- resolution: {integrity: sha512-I+Oaj6p9oiRozbam30sh39BiuiqBda7yK2nmSPVwDCfIBlKnT8YB3MY+pRQc2Fcd07bf6KPGklHJaQ2Qu81TYQ==}- dependencies:- semver: 7.3.5- dev: false-- /fastify-plugin/3.0.0:- resolution: {integrity: sha512-ZdCvKEEd92DNLps5n0v231Bha8bkz1DjnPP/aEz37rz/q42Z5JVLmgnqR4DYuNn3NXAO3IDCPyRvgvxtJ4Ym4w==}- dev: false-- /fastify-static/4.0.1:- resolution: {integrity: sha512-Mjt0My8Gf/nzJqIDai9rz3HsxH4RAJeMGMIPmf40lGMFKAv4SbRiKJ2cmteXoKHrFGPeGxwMq0gXfixwueV8wA==}- dependencies:- content-disposition: 0.5.3- fastify-plugin: 3.0.0- glob: 7.1.6- readable-stream: 3.6.0- send: 0.17.1- dev: false-- /fastify-warning/0.2.0:- resolution: {integrity: sha512-s1EQguBw/9qtc1p/WTY4eq9WMRIACkj+HTcOIK1in4MV5aFaQC9ZCIt0dJ7pr5bIf4lPpHvAtP2ywpTNgs7hqw==}- dev: false-- /fastify/3.14.2:- resolution: {integrity: sha512-/PY//7gJnGxLQORaRHCEW148vpFKFpBIQNz1Yo/DxbHuk5EQqK2comzyE2ug8FSEldDX8nleapTshl0m78Px2w==}- engines: {node: '>=10.16.0'}- dependencies:- '@fastify/proxy-addr': 3.0.0- abstract-logging: 2.0.1- ajv: 6.12.6- avvio: 7.2.1- fast-json-stringify: 2.5.4- fastify-error: 0.3.0- fastify-warning: 0.2.0- find-my-way: 4.1.0- flatstr: 1.0.12- light-my-request: 4.4.1- pino: 6.11.3- readable-stream: 3.6.0- rfdc: 1.3.0- secure-json-parse: 2.4.0- semver: 7.3.5- tiny-lru: 7.0.6- transitivePeerDependencies:- - supports-color- dev: false-- /fastparallel/2.4.0:- resolution: {integrity: sha512-sacwQ7wwKlQXsa7TN24UvMBLZNLmVcPhmxccC9riFqb3N+fSczJL8eWdnZodZ/KijGVgNBBfvF/NeXER08uXnQ==}- dependencies:- reusify: 1.0.4- xtend: 4.0.2- dev: false+ dev: true/fastq/1.11.0:resolution: {integrity: sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==}dependencies:reusify: 1.0.4-- /fastseries/1.7.2:- resolution: {integrity: sha1-0izhO5Qz3/M4jZHb1ri9qbIaD0s=}- dependencies:- reusify: 1.0.4- xtend: 4.0.2- dev: false-- /fd-slicer/1.1.0:- resolution: {integrity: sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=}- dependencies:- pend: 1.2.0dev: true- /file-entry-cache/5.0.1:- resolution: {integrity: sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==}- engines: {node: '>=4'}+ /file-entry-cache/6.0.1:+ resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}+ engines: {node: ^10.12.0 || >=12.0.0}dependencies:- flat-cache: 2.0.1+ flat-cache: 3.0.4dev: true/fill-range/7.0.1:@@ -2246,201 +1248,63 @@ packages:to-regex-range: 5.0.1dev: true- /finalhandler/1.1.2:- resolution: {integrity: sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==}- engines: {node: '>= 0.8'}+ /flat-cache/3.0.4:+ resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==}+ engines: {node: ^10.12.0 || >=12.0.0}dependencies:- debug: 2.6.9- encodeurl: 1.0.2- escape-html: 1.0.3- on-finished: 2.3.0- parseurl: 1.3.3- statuses: 1.5.0- unpipe: 1.0.0+ flatted: 3.1.1+ rimraf: 3.0.2dev: true- optional: true- /find-cache-dir/3.3.1:- resolution: {integrity: sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==}- engines: {node: '>=8'}- dependencies:- commondir: 1.0.1- make-dir: 3.1.0- pkg-dir: 4.2.0+ /flatted/3.1.1:+ resolution: {integrity: sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==}dev: true- /find-my-way/4.1.0:- resolution: {integrity: sha512-UBD94MdO6cBi6E97XA0fBA9nwqw+xG5x1TYIPHats33gEi/kNqy7BWHAWx8QHCQQRSU5Txc0JiD8nzba39gvMQ==}- engines: {node: '>=10'}- dependencies:- fast-decode-uri-component: 1.0.1- fast-deep-equal: 3.1.3- safe-regex2: 2.0.0- semver-store: 0.3.0- dev: false-- /find-package-json/1.2.0:- resolution: {integrity: sha512-+SOGcLGYDJHtyqHd87ysBhmaeQ95oWspDKnMXBrnQ9Eq4OkLNqejgoaD8xVWu6GPa0B6roa6KinCMEMcVeqONw==}+ /fraction.js/4.0.13:+ resolution: {integrity: sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA==}dev: true- /find-up/2.1.0:- resolution: {integrity: sha1-RdG35QbHF93UgndaK3eSCjwMV6c=}- engines: {node: '>=4'}- dependencies:- locate-path: 2.0.0- dev: true+ /fs-constants/1.0.0:+ resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}+ dev: false- /find-up/3.0.0:- resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==}- engines: {node: '>=6'}+ /fs-extra/9.1.0:+ resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}+ engines: {node: '>=10'}dependencies:- locate-path: 3.0.0+ at-least-node: 1.0.0+ graceful-fs: 4.2.6+ jsonfile: 6.1.0+ universalify: 2.0.0dev: true- /find-up/4.1.0:- resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}- engines: {node: '>=8'}- dependencies:- locate-path: 5.0.0- path-exists: 4.0.0- dev: true+ /fs.realpath/1.0.0:+ resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}- /flat-cache/2.0.1:- resolution: {integrity: sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==}- engines: {node: '>=4'}- dependencies:- flatted: 2.0.2- rimraf: 2.6.3- write: 1.0.3+ /fsevents/2.3.2:+ resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]dev: true+ optional: true- /flatstr/1.0.12:- resolution: {integrity: sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw==}- dev: false+ /function-bind/1.1.1:+ resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}- /flatted/2.0.2:- resolution: {integrity: sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==}+ /function.name/1.0.13:+ resolution: {integrity: sha512-mVrqdoy5npWZyoXl4DxCeuVF6delDcQjVS9aPdvLYlBxtMTZDR2B5GVEQEoM1jJyspCqg3C0v4ABkLE7tp9xFA==}+ dependencies:+ noop6: 1.0.9dev: true- /flatten/1.0.3:- resolution: {integrity: sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==}- dev: true-- /follow-redirects/1.13.3:- resolution: {integrity: sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA==}- engines: {node: '>=4.0'}- peerDependencies:- debug: '*'- peerDependenciesMeta:- debug:- optional: true-- /forever-agent/0.6.1:- resolution: {integrity: sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=}- dev: false-- /form-data/2.3.3:- resolution: {integrity: sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==}- engines: {node: '>= 0.12'}- dependencies:- asynckit: 0.4.0- combined-stream: 1.0.8- mime-types: 2.1.30- dev: false-- /forwarded/0.1.2:- resolution: {integrity: sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=}- engines: {node: '>= 0.6'}- dev: true- optional: true-- /fresh/0.5.2:- resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=}- engines: {node: '>= 0.6'}-- /fs-constants/1.0.0:- resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}-- /fs-extra/9.1.0:- resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}- engines: {node: '>=10'}- dependencies:- at-least-node: 1.0.0- graceful-fs: 4.2.6- jsonfile: 6.1.0- universalify: 2.0.0-- /fs.realpath/1.0.0:- resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}-- /fsevents/2.3.2:- resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}- os: [darwin]- dev: true- optional: true-- /function-bind/1.1.1:- resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}-- /functional-red-black-tree/1.0.1:- resolution: {integrity: sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=}+ /functional-red-black-tree/1.0.1:+ resolution: {integrity: sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=}dev: true/generate-password/1.6.0:resolution: {integrity: sha512-YUJTQkApkLT/fru0QdYWP0lVZdPKhF5kXCP24sgI4gR/vFMJFopCj5t1+9FAKIYcML/nxzx2PMkA1ymO1FC+tQ==}dev: false- /generic-names/2.0.1:- resolution: {integrity: sha512-kPCHWa1m9wGG/OwQpeweTwM/PYiQLrUIxXbt/P4Nic3LbGjCP0YwrALHW1uNLKZ0LIMg+RF+XRlj2ekT9ZlZAQ==}- dependencies:- loader-utils: 1.4.0- dev: true-- /get-caller-file/2.0.5:- resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}- engines: {node: 6.* || 8.* || >= 10.*}- dev: true- optional: true-- /get-intrinsic/1.1.1:- resolution: {integrity: sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==}- dependencies:- function-bind: 1.1.1- has: 1.0.3- has-symbols: 1.0.2- dev: true-- /get-port/5.1.1:- resolution: {integrity: sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==}- engines: {node: '>=8'}- dev: true-- /get-stdin/8.0.0:- resolution: {integrity: sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==}- engines: {node: '>=10'}- dev: true-- /get-stream/4.1.0:- resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==}- engines: {node: '>=6'}- dependencies:- pump: 3.0.0- dev: true-- /get-stream/5.2.0:- resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}- engines: {node: '>=8'}- dependencies:- pump: 3.0.0- dev: true-- /getpass/0.1.7:- resolution: {integrity: sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=}- dependencies:- assert-plus: 1.0.0- dev: false-/glob-base/0.3.0:resolution: {integrity: sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=}engines: {node: '>=0.10.0'}@@ -2471,12 +1335,17 @@ packages:minimatch: 3.0.4once: 1.4.0path-is-absolute: 1.0.1+ dev: false- /global-dirs/2.1.0:- resolution: {integrity: sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ==}- engines: {node: '>=8'}+ /glob/7.1.7:+ resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==}dependencies:- ini: 1.3.7+ fs.realpath: 1.0.0+ inflight: 1.0.6+ inherits: 2.0.4+ minimatch: 3.0.4+ once: 1.4.0+ path-is-absolute: 1.0.1dev: true/globals/12.4.0:@@ -2486,6 +1355,13 @@ packages:type-fest: 0.8.1dev: true+ /globals/13.8.0:+ resolution: {integrity: sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q==}+ engines: {node: '>=8'}+ dependencies:+ type-fest: 0.20.2+ dev: true+/globby/11.0.3:resolution: {integrity: sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==}engines: {node: '>=10'}@@ -2498,60 +1374,18 @@ packages:slash: 3.0.0dev: true- /got/9.6.0:- resolution: {integrity: sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==}- engines: {node: '>=8.6'}- dependencies:- '@sindresorhus/is': 0.14.0- '@szmarczak/http-timer': 1.1.2- cacheable-request: 6.1.0- decompress-response: 3.3.0- duplexer3: 0.1.4- get-stream: 4.1.0- lowercase-keys: 1.0.1- mimic-response: 1.0.1- p-cancelable: 1.1.0- to-readable-stream: 1.0.0- url-parse-lax: 3.0.0- dev: true-/graceful-fs/4.2.6:resolution: {integrity: sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==}-- /har-schema/2.0.0:- resolution: {integrity: sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=}- engines: {node: '>=4'}- dev: false-- /har-validator/5.1.5:- resolution: {integrity: sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==}- engines: {node: '>=6'}- deprecated: this library is no longer supported- dependencies:- ajv: 6.12.6- har-schema: 2.0.0- dev: false-- /has-bigints/1.0.1:- resolution: {integrity: sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==}dev: true/has-flag/3.0.0:resolution: {integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0=}engines: {node: '>=4'}+ dev: true/has-flag/4.0.0:resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}engines: {node: '>=8'}-- /has-symbols/1.0.2:- resolution: {integrity: sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==}- engines: {node: '>= 0.4'}- dev: true-- /has-yarn/2.1.0:- resolution: {integrity: sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==}- engines: {node: '>=8'}dev: true/has/1.0.3:@@ -2564,149 +1398,26 @@ packages:resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==}dev: true- /hosted-git-info/2.8.9:- resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}- dev: true-- /html-encoding-sniffer/2.0.1:- resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==}- engines: {node: '>=10'}- dependencies:- whatwg-encoding: 1.0.5- dev: false-- /html-tags/3.1.0:- resolution: {integrity: sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg==}- engines: {node: '>=8'}- dev: true-- /http-assert/1.4.1:- resolution: {integrity: sha512-rdw7q6GTlibqVVbXr0CKelfV5iY8G2HqEUkhSk297BMbSpSL8crXC+9rjKoMcZZEsksX30le6f/4ul4E28gegw==}- engines: {node: '>= 0.8'}- dependencies:- deep-equal: 1.0.1- http-errors: 1.7.3- dev: true-- /http-cache-semantics/4.1.0:- resolution: {integrity: sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==}- dev: true-- /http-errors-enhanced/0.7.0:- resolution: {integrity: sha512-SYVGmRIcKBurS7oDTPDnoYxBnEa8CPR0UZBAU6P0QsBPQY6XjIGoCK5iFxLkg1jeo+dkiq4MxqMJbBEoXcczBg==}- engines: {node: '>=12.15.0'}- dev: false-- /http-errors/1.4.0:- resolution: {integrity: sha1-bAJC3qaz33r9oVPHEImzHG6Cqr8=}- engines: {node: '>= 0.6'}- dependencies:- inherits: 2.0.1- statuses: 1.5.0- dev: true-- /http-errors/1.6.3:- resolution: {integrity: sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=}- engines: {node: '>= 0.6'}- dependencies:- depd: 1.1.2- inherits: 2.0.3- setprototypeof: 1.1.0- statuses: 1.5.0- dev: true-- /http-errors/1.7.2:- resolution: {integrity: sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==}- engines: {node: '>= 0.6'}- dependencies:- depd: 1.1.2- inherits: 2.0.3- setprototypeof: 1.1.1- statuses: 1.5.0- toidentifier: 1.0.0- dev: true- optional: true-- /http-errors/1.7.3:- resolution: {integrity: sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==}- engines: {node: '>= 0.6'}- dependencies:- depd: 1.1.2- inherits: 2.0.4- setprototypeof: 1.1.1- statuses: 1.5.0- toidentifier: 1.0.0-- /http-errors/1.8.0:- resolution: {integrity: sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==}- engines: {node: '>= 0.6'}- dependencies:- depd: 1.1.2- inherits: 2.0.4- setprototypeof: 1.2.0- statuses: 1.5.0- toidentifier: 1.0.0-- /http-proxy/[email protected]:- resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==}- engines: {node: '>=8.0.0'}- dependencies:- eventemitter3: 4.0.7- follow-redirects: 1.13.3- requires-port: 1.0.0- transitivePeerDependencies:- - debug- dev: true-- /http-signature/1.2.0:- resolution: {integrity: sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=}- engines: {node: '>=0.8', npm: '>=1.3.7'}- dependencies:- assert-plus: 1.0.0- jsprim: 1.4.1- sshpk: 1.16.1- dev: false-- /https-proxy-agent/5.0.0:- resolution: {integrity: sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==}- engines: {node: '>= 6'}- dependencies:- agent-base: 6.0.2- debug: 4.3.1- transitivePeerDependencies:- - supports-color+ /hex-color-regex/1.1.0:+ resolution: {integrity: sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==}dev: true- /human-signals/1.1.1:- resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==}- engines: {node: '>=8.12.0'}+ /hsl-regex/1.0.0:+ resolution: {integrity: sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=}dev: true- /iconv-lite/0.4.24:- resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}- engines: {node: '>=0.10.0'}- dependencies:- safer-buffer: 2.1.2-- /icss-replace-symbols/1.1.0:- resolution: {integrity: sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=}+ /hsla-regex/1.0.0:+ resolution: {integrity: sha1-wc56MWjIxmFAM6S194d/OyJfnDg=}dev: true- /icss-utils/[email protected]:- resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}- engines: {node: ^10 || ^12 || >= 14}- peerDependencies:- postcss: ^8.1.0- dependencies:- postcss: 8.2.10+ /html-tags/3.1.0:+ resolution: {integrity: sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg==}+ engines: {node: '>=8'}dev: true/ieee754/1.2.1:resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}-- /ignore-by-default/1.0.1:- resolution: {integrity: sha1-SMptcvbGo68Aqa1K5odr44ieKwk=}- dev: true+ dev: false/ignore/4.0.6:resolution: {integrity: sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==}@@ -2740,11 +1451,6 @@ packages:resolve-from: 5.0.0dev: true- /import-lazy/2.1.0:- resolution: {integrity: sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=}- engines: {node: '>=4'}- dev: true-/imurmurhash/0.1.4:resolution: {integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o=}engines: {node: '>=0.8.19'}@@ -2760,49 +1466,18 @@ packages:once: 1.4.0wrappy: 1.0.2- /inherits/2.0.1:- resolution: {integrity: sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=}- dev: true-- /inherits/2.0.3:- resolution: {integrity: sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=}- dev: true-/inherits/2.0.4:resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}- /ini/1.3.7:- resolution: {integrity: sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==}- dev: true-- /ini/1.3.8:- resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}- dev: true-- /internal-slot/1.0.3:- resolution: {integrity: sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==}- engines: {node: '>= 0.4'}- dependencies:- get-intrinsic: 1.1.1- has: 1.0.3- side-channel: 1.0.4- dev: true-/interpret/1.4.0:resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}engines: {node: '>= 0.10'}dev: false- /ipaddr.js/1.9.1:- resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}- engines: {node: '>= 0.10'}+ /is-absolute-url/3.0.3:+ resolution: {integrity: sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==}+ engines: {node: '>=8'}dev: true- optional: true-- /ipaddr.js/2.0.0:- resolution: {integrity: sha512-S54H9mIj0rbxRIyrDMEuuER86LdlgUg9FSeZ8duQb6CUG2iRrA36MYVQBSprTF/ZeAwvyQ5mDGuNvIPM0BIl3w==}- engines: {node: '>= 10'}- dev: false/is-arrayish/0.2.1:resolution: {integrity: sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=}@@ -2812,10 +1487,6 @@ packages:resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}dev: true- /is-bigint/1.0.1:- resolution: {integrity: sha512-J0ELF4yHFxHy0cmSxZuheDOz2luOdVvqjwmEcj8H/L1JHeuEDSDbeRP+Dk9kFVk5RTFzbucJ2Kb9F7ixY2QaCg==}- dev: true-/is-binary-path/2.1.0:resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}engines: {node: '>=8'}@@ -2823,41 +1494,22 @@ packages:binary-extensions: 2.2.0dev: true- /is-boolean-object/1.1.0:- resolution: {integrity: sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- dev: true-- /is-callable/1.2.3:- resolution: {integrity: sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==}- engines: {node: '>= 0.4'}- dev: true-- /is-ci/2.0.0:- resolution: {integrity: sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==}- hasBin: true+ /is-color-stop/1.1.0:+ resolution: {integrity: sha1-z/9HGu5N1cnhWFmPvhKWe1za00U=}dependencies:- ci-info: 2.0.0+ css-color-names: 0.0.4+ hex-color-regex: 1.1.0+ hsl-regex: 1.0.0+ hsla-regex: 1.0.0+ rgb-regex: 1.0.1+ rgba-regex: 1.0.0dev: true- /is-core-module/2.2.0:- resolution: {integrity: sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==}+ /is-core-module/2.4.0:+ resolution: {integrity: sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==}dependencies:has: 1.0.3- /is-date-object/1.0.2:- resolution: {integrity: sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==}- engines: {node: '>= 0.4'}- dev: true-- /is-docker/2.2.1:- resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}- engines: {node: '>=8'}- hasBin: true- dev: true-/is-dotfile/1.0.3:resolution: {integrity: sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=}engines: {node: '>=0.10.0'}@@ -2873,21 +1525,11 @@ packages:engines: {node: '>=0.10.0'}dev: true- /is-fullwidth-code-point/2.0.0:- resolution: {integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=}- engines: {node: '>=4'}- dev: true-/is-fullwidth-code-point/3.0.0:resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}engines: {node: '>=8'}dev: true- /is-generator-function/1.0.8:- resolution: {integrity: sha512-2Omr/twNtufVZFr1GhxjOMFPAj2sjc/dKaIqBhvo4qciXfJmITGH6ZGd8eZYNHza8t1y0e01AuqRhJwfWp26WQ==}- engines: {node: '>= 0.4'}- dev: true-/is-glob/2.0.1:resolution: {integrity: sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=}engines: {node: '>=0.10.0'}@@ -2902,38 +1544,6 @@ packages:is-extglob: 2.1.1dev: true- /is-installed-globally/0.3.2:- resolution: {integrity: sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==}- engines: {node: '>=8'}- dependencies:- global-dirs: 2.1.0- is-path-inside: 3.0.3- dev: true-- /is-interactive/1.0.0:- resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==}- engines: {node: '>=8'}- dev: true-- /is-module/1.0.0:- resolution: {integrity: sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=}- dev: true-- /is-negative-zero/2.0.1:- resolution: {integrity: sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==}- engines: {node: '>= 0.4'}- dev: true-- /is-npm/4.0.0:- resolution: {integrity: sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==}- engines: {node: '>=8'}- dev: true-- /is-number-object/1.0.4:- resolution: {integrity: sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==}- engines: {node: '>= 0.4'}- dev: true-/is-number/7.0.0:resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}engines: {node: '>=0.12.0'}@@ -2944,202 +1554,60 @@ packages:engines: {node: '>=8'}dev: true- /is-path-inside/3.0.3:- resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}- engines: {node: '>=8'}+ /is-resolvable/1.1.0:+ resolution: {integrity: sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==}dev: true- /is-potential-custom-element-name/1.0.1:- resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}+ /isarray/1.0.0:+ resolution: {integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=}dev: false- /is-reference/1.2.1:- resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}- dependencies:- '@types/estree': 0.0.47- dev: true-- /is-regex/1.1.2:- resolution: {integrity: sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- has-symbols: 1.0.2- dev: true-- /is-stream/2.0.0:- resolution: {integrity: sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==}- engines: {node: '>=8'}+ /isexe/2.0.0:+ resolution: {integrity: sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=}dev: true- /is-string/1.0.5:- resolution: {integrity: sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==}- engines: {node: '>= 0.4'}+ /js-tokens/4.0.0:+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}dev: true- /is-symbol/1.0.3:- resolution: {integrity: sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==}- engines: {node: '>= 0.4'}+ /js-yaml/3.14.1:+ resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}+ hasBin: truedependencies:- has-symbols: 1.0.2+ argparse: 1.0.10+ esprima: 4.0.1dev: true- /is-typedarray/1.0.0:- resolution: {integrity: sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=}+ /js-yaml/4.1.0:+ resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}+ hasBin: true+ dependencies:+ argparse: 2.0.1+ dev: false- /is-unicode-supported/0.1.0:- resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}- engines: {node: '>=10'}+ /json-parse-even-better-errors/2.3.1:+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}dev: true- /is-wsl/2.2.0:- resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}- engines: {node: '>=8'}- dependencies:- is-docker: 2.2.1+ /json-schema-traverse/0.4.1:+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}dev: true- /is-yarn-global/0.3.0:- resolution: {integrity: sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==}+ /json-schema-traverse/1.0.0:+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}dev: true- /isarray/0.0.1:- resolution: {integrity: sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=}- dev: true-- /isarray/1.0.0:- resolution: {integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=}-- /isbuiltin/1.0.0:- resolution: {integrity: sha1-RFOykVaQy0fAy5ySVaCAd3gxXJY=}- dependencies:- builtin-modules: 1.1.1- dev: true-- /isexe/2.0.0:- resolution: {integrity: sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=}- dev: true-- /isstream/0.1.2:- resolution: {integrity: sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=}- dev: false-- /jest-worker/26.6.2:- resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==}- engines: {node: '>= 10.13.0'}- dependencies:- '@types/node': 14.14.41- merge-stream: 2.0.0- supports-color: 7.2.0- dev: true-- /js-tokens/4.0.0:- resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}- dev: true-- /js-yaml/3.14.1:- resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}- hasBin: true- dependencies:- argparse: 1.0.10- esprima: 4.0.1- dev: true-- /js-yaml/4.1.0:- resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}- hasBin: true- dependencies:- argparse: 2.0.1- dev: false-- /jsbn/0.1.1:- resolution: {integrity: sha1-peZUwuWi3rXyAdls77yoDA7y9RM=}- dev: false-- /jsdom/16.5.3_c70f8fc5586dd378b8c866035dbe710b:- resolution: {integrity: sha512-Qj1H+PEvUsOtdPJ056ewXM4UJPCi4hhLA8wpiz9F2YvsRBhuFsXxtrIFAgGBDynQA9isAMGE91PfUYbdMPXuTA==}- engines: {node: '>=10'}- peerDependencies:- canvas: ^2.5.0- peerDependenciesMeta:- canvas:- optional: true- dependencies:- abab: 2.0.5- acorn: 8.1.1- acorn-globals: 6.0.0- cssom: 0.4.4- cssstyle: 2.3.0- data-urls: 2.0.0- decimal.js: 10.2.1- domexception: 2.0.1- escodegen: 2.0.0- html-encoding-sniffer: 2.0.1- is-potential-custom-element-name: 1.0.1- nwsapi: 2.2.0- parse5: 6.0.1- request: 2.88.2- request-promise-native: [email protected]- saxes: 5.0.1- symbol-tree: 3.2.4- tough-cookie: 4.0.0- w3c-hr-time: 1.0.2- w3c-xmlserializer: 2.0.0- webidl-conversions: 6.1.0- whatwg-encoding: 1.0.5- whatwg-mimetype: 2.3.0- whatwg-url: 8.5.0- ws: 7.4.4_c70f8fc5586dd378b8c866035dbe710b- xml-name-validator: 3.0.0- transitivePeerDependencies:- - bufferutil- - utf-8-validate- dev: false-- /json-buffer/3.0.0:- resolution: {integrity: sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=}- dev: true-- /json-parse-better-errors/1.0.2:- resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==}- dev: true-- /json-parse-even-better-errors/2.3.1:- resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}- dev: true-- /json-schema-traverse/0.4.1:- resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}-- /json-schema-traverse/1.0.0:- resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}- dev: false-- /json-schema/0.2.3:- resolution: {integrity: sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=}- dev: false-/json-stable-stringify-without-jsonify/1.0.1:resolution: {integrity: sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=}dev: true- /json-stringify-safe/5.0.1:- resolution: {integrity: sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=}- dev: false-- /json5/1.0.1:- resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==}- hasBin: true- dependencies:- minimist: 1.2.5- dev: true-/jsonfile/6.1.0:resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}dependencies:universalify: 2.0.0optionalDependencies:graceful-fs: 4.2.6+ dev: true/jsonwebtoken/8.5.1:resolution: {integrity: sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==}@@ -3157,24 +1625,6 @@ packages:semver: 5.7.1dev: false- /jsprim/1.4.1:- resolution: {integrity: sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=}- engines: {'0': node >=0.6.0}- dependencies:- assert-plus: 1.0.0- extsprintf: 1.3.0- json-schema: 0.2.3- verror: 1.10.0- dev: false-- /jsx-ast-utils/3.2.0:- resolution: {integrity: sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==}- engines: {node: '>=4.0'}- dependencies:- array-includes: 3.1.3- object.assign: 4.1.2- dev: true-/jwa/1.4.1:resolution: {integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==}dependencies:@@ -3194,129 +1644,6 @@ packages:resolution: {integrity: sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==}dev: false- /keygrip/1.1.0:- resolution: {integrity: sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==}- engines: {node: '>= 0.6'}- dependencies:- tsscmp: 1.0.6- dev: true-- /keyv/3.1.0:- resolution: {integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==}- dependencies:- json-buffer: 3.0.0- dev: true-- /klona/2.0.4:- resolution: {integrity: sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==}- engines: {node: '>= 8'}- dev: true-- /koa-compose/3.2.1:- resolution: {integrity: sha1-qFzLQLfZhtjlo0Wzoazo6rz1Tec=}- dependencies:- any-promise: 1.3.0- dev: true-- /koa-compose/4.1.0:- resolution: {integrity: sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==}- dev: true-- /koa-conditional-get/3.0.0:- resolution: {integrity: sha512-VKyPS7SuNH26TjTV2IRz+oh0HV/jc2lYAo51PTQTkj0XFn8ebNZW9riczmrW7ZVBFSnls1Z88DPUYKnvVymruA==}- dev: true-- /koa-convert/1.2.0:- resolution: {integrity: sha1-2kCHXfSd4FOQmNFwC1CCDOvNIdA=}- engines: {node: '>= 4'}- dependencies:- co: 4.6.0- koa-compose: 3.2.1- dev: true-- /koa-etag/4.0.0:- resolution: {integrity: sha512-1cSdezCkBWlyuB9l6c/IFoe1ANCDdPBxkDkRiaIup40xpUub6U/wwRXoKBZw/O5BifX9OlqAjYnDyzM6+l+TAg==}- dependencies:- etag: 1.8.1- dev: true-- /koa-proxies/[email protected][email protected]:- resolution: {integrity: sha512-iXGRADBE0fM7g7AttNOlLZ/cCFKXeVMHbFJKIRb0dUCrSYXi02loyVSdBlKlBQ5ZfVKJLo9Q9FyqwVTp1poVVA==}- peerDependencies:- koa: '>=2'- dependencies:- http-proxy: [email protected]- koa: 2.13.1- path-match: 1.2.4- transitivePeerDependencies:- - debug- dev: true-- /koa-send/5.0.1:- resolution: {integrity: sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==}- engines: {node: '>= 8'}- dependencies:- debug: 4.3.1- http-errors: 1.8.0- resolve-path: 1.4.0- transitivePeerDependencies:- - supports-color- dev: true-- /koa-static/5.0.0:- resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==}- engines: {node: '>= 7.6.0'}- dependencies:- debug: 3.2.7- koa-send: 5.0.1- transitivePeerDependencies:- - supports-color- dev: true-- /koa/2.13.1:- resolution: {integrity: sha512-Lb2Dloc72auj5vK4X4qqL7B5jyDPQaZucc9sR/71byg7ryoD1NCaCm63CShk9ID9quQvDEi1bGR/iGjCG7As3w==}- engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4}- dependencies:- accepts: 1.3.7- cache-content-type: 1.0.1- content-disposition: 0.5.3- content-type: 1.0.4- cookies: 0.8.0- debug: 3.1.0- delegates: 1.0.0- depd: 2.0.0- destroy: 1.0.4- encodeurl: 1.0.2- escape-html: 1.0.3- fresh: 0.5.2- http-assert: 1.4.1- http-errors: 1.8.0- is-generator-function: 1.0.8- koa-compose: 4.1.0- koa-convert: 1.2.0- on-finished: 2.3.0- only: 0.0.2- parseurl: 1.3.3- statuses: 1.5.0- type-is: 1.6.18- vary: 1.1.2- dev: true-- /latest-version/5.1.0:- resolution: {integrity: sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==}- engines: {node: '>=8'}- dependencies:- package-json: 6.5.0- dev: true-- /levn/0.3.0:- resolution: {integrity: sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=}- engines: {node: '>= 0.8.0'}- dependencies:- prelude-ls: 1.1.2- type-check: 0.3.2- dev: false-/levn/0.4.1:resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}engines: {node: '>= 0.8.0'}@@ -3325,91 +1652,16 @@ packages:type-check: 0.4.0dev: true- /light-my-request/4.4.1:- resolution: {integrity: sha512-FDNRF2mYjthIRWE7O8d/X7AzDx4otQHl4/QXbu3Q/FRwBFcgb+ZoDaUd5HwN53uQXLAiw76osN+Va0NEaOW6rQ==}- dependencies:- ajv: 6.12.6- cookie: 0.4.1- fastify-warning: 0.2.0- readable-stream: 3.6.0- set-cookie-parser: 2.4.8- dev: false-/lines-and-columns/1.1.6:resolution: {integrity: sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=}dev: true- /load-json-file/2.0.0:- resolution: {integrity: sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=}- engines: {node: '>=4'}- dependencies:- graceful-fs: 4.2.6- parse-json: 2.2.0- pify: 2.3.0- strip-bom: 3.0.0+ /lodash.clonedeep/4.5.0:+ resolution: {integrity: sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=}dev: true- /load-json-file/4.0.0:- resolution: {integrity: sha1-L19Fq5HjMhYjT9U62rZo607AmTs=}- engines: {node: '>=4'}- dependencies:- graceful-fs: 4.2.6- parse-json: 4.0.0- pify: 3.0.0- strip-bom: 3.0.0- dev: true-- /load-json-file/5.3.0:- resolution: {integrity: sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==}- engines: {node: '>=6'}- dependencies:- graceful-fs: 4.2.6- parse-json: 4.0.0- pify: 4.0.1- strip-bom: 3.0.0- type-fest: 0.3.1- dev: true-- /loader-utils/1.4.0:- resolution: {integrity: sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==}- engines: {node: '>=4.0.0'}- dependencies:- big.js: 5.2.2- emojis-list: 3.0.0- json5: 1.0.1- dev: true-- /locate-path/2.0.0:- resolution: {integrity: sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=}- engines: {node: '>=4'}- dependencies:- p-locate: 2.0.0- path-exists: 3.0.0- dev: true-- /locate-path/3.0.0:- resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==}- engines: {node: '>=6'}- dependencies:- p-locate: 3.0.0- path-exists: 3.0.0- dev: true-- /locate-path/5.0.0:- resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}- engines: {node: '>=8'}- dependencies:- p-locate: 4.1.0- dev: true-- /lockfile/1.0.4:- resolution: {integrity: sha512-cvbTwETRfsFh4nHsL1eGWapU1XFi5Ot9E85sWAwia7Y7EgB7vfqcZhTKZ+l7hCGxSPoushMv5GKhT5PdLv03WA==}- dependencies:- signal-exit: 3.0.3- dev: true-- /lodash.camelcase/4.3.0:- resolution: {integrity: sha1-soqmKIorn8ZRA1x3EfZathkDMaY=}+ /lodash.flatten/4.4.0:+ resolution: {integrity: sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=}dev: true/lodash.includes/4.3.0:@@ -3436,6 +1688,10 @@ packages:resolution: {integrity: sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=}dev: false+ /lodash.memoize/4.1.2:+ resolution: {integrity: sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=}+ dev: true+/lodash.once/4.1.1:resolution: {integrity: sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=}dev: false@@ -3448,45 +1704,16 @@ packages:resolution: {integrity: sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak=}dev: true- /lodash/4.17.21:- resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}-- /log-symbols/3.0.0:- resolution: {integrity: sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==}- engines: {node: '>=8'}- dependencies:- chalk: 2.4.2- dev: false-- /log-symbols/4.1.0:- resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}- engines: {node: '>=10'}- dependencies:- chalk: 4.1.0- is-unicode-supported: 0.1.0- dev: true-- /loose-envify/1.4.0:- resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}- hasBin: true- dependencies:- js-tokens: 4.0.0- dev: true-- /lowercase-keys/1.0.1:- resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==}- engines: {node: '>=0.10.0'}+ /lodash.truncate/4.4.2:+ resolution: {integrity: sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=}dev: true- /lowercase-keys/2.0.0:- resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==}- engines: {node: '>=8'}+ /lodash.uniq/4.5.0:+ resolution: {integrity: sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=}dev: true- /lru-cache/5.1.1:- resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}- dependencies:- yallist: 3.1.1+ /lodash/4.17.21:+ resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}dev: true/lru-cache/6.0.0:@@ -3494,66 +1721,22 @@ packages:engines: {node: '>=10'}dependencies:yallist: 4.0.0-- /magic-string/0.25.7:- resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==}- dependencies:- sourcemap-codec: 1.4.8dev: true- /make-dir/3.1.0:- resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}- engines: {node: '>=8'}- dependencies:- semver: 6.3.0- dev: true-- /md5-file/5.0.0:- resolution: {integrity: sha512-xbEFXCYVWrSx/gEKS1VPlg84h/4L20znVIulKw6kMfmBUAZNAnF00eczz9ICMl+/hjQGo5KSXRxbL/47X3rmMw==}- engines: {node: '>=10.13.0'}- hasBin: true- dev: true-- /media-typer/0.3.0:- resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=}- engines: {node: '>= 0.6'}+ /mdn-data/2.0.14:+ resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==}dev: true/memory-pager/1.5.0:resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==}+ dev: falseoptional: true- /memorystream/0.3.1:- resolution: {integrity: sha1-htcJCzDORV1j+64S3aUaR93K+bI=}- engines: {node: '>= 0.10.0'}- dev: true-- /merge-descriptors/1.0.1:- resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=}- dev: true- optional: true-- /merge-source-map/1.1.0:- resolution: {integrity: sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==}- dependencies:- source-map: 0.6.1- dev: true-- /merge-stream/2.0.0:- resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}- dev: true-/merge2/1.4.1:resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}engines: {node: '>= 8'}dev: true- /methods/1.1.2:- resolution: {integrity: sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=}- engines: {node: '>= 0.6'}- dev: true- optional: true-/micromatch/4.0.4:resolution: {integrity: sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==}engines: {node: '>=8.6'}@@ -3562,31 +1745,6 @@ packages:picomatch: 2.2.3dev: true- /mime-db/1.47.0:- resolution: {integrity: sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==}- engines: {node: '>= 0.6'}-- /mime-types/2.1.30:- resolution: {integrity: sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==}- engines: {node: '>= 0.6'}- dependencies:- mime-db: 1.47.0-- /mime/1.6.0:- resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==}- engines: {node: '>=4'}- hasBin: true-- /mimic-fn/2.1.0:- resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}- engines: {node: '>=6'}- dev: true-- /mimic-response/1.0.1:- resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}- engines: {node: '>=4'}- dev: true-/min-indent/1.0.1:resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}engines: {node: '>=4'}@@ -3605,56 +1763,11 @@ packages:resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}dev: false- /mkdirp/0.5.5:- resolution: {integrity: sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==}- hasBin: true- dependencies:- minimist: 1.2.5- dev: true-- /mkdirp/1.0.4:- resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}- engines: {node: '>=10'}- hasBin: true- dev: true-- /modern-normalize/1.0.0:- resolution: {integrity: sha512-1lM+BMLGuDfsdwf3rsgBSrxJwAZHFIrQ8YR61xIqdHo0uNKI9M52wNpHSrliZATJp51On6JD0AfRxd4YGSU0lw==}+ /modern-normalize/1.1.0:+ resolution: {integrity: sha512-2lMlY1Yc1+CUy0gw4H95uNN7vjbpoED7NNRSBHE25nWfLBdmMzFCsPshlzbxHz+gYMcBEUN8V4pU16prcdPSgA==}engines: {node: '>=6'}dev: true- /mongodb-memory-server-core/6.9.6:- resolution: {integrity: sha512-ZcXHTI2TccH3L5N9JyAMGm8bbAsfLn8SUWOeYGHx/vDx7vu4qshyaNXTIxeHjpUQA29N+Z1LtTXA6vXjl1eg6w==}- engines: {node: '>=10.15.0'}- dependencies:- '@types/tmp': 0.2.0- camelcase: 6.2.0- cross-spawn: 7.0.3- debug: 4.3.1- find-cache-dir: 3.3.1- find-package-json: 1.2.0- get-port: 5.1.1- https-proxy-agent: 5.0.0- lockfile: 1.0.4- md5-file: 5.0.0- mkdirp: 1.0.4- semver: 7.3.5- tar-stream: 2.2.0- tmp: 0.2.1- uuid: 8.3.2- yauzl: 2.10.0- optionalDependencies:- mongodb: 3.6.6- transitivePeerDependencies:- - aws4- - bson-ext- - kerberos- - mongodb-client-encryption- - mongodb-extjson- - snappy- - supports-color- dev: true-/mongodb/3.6.6:resolution: {integrity: sha512-WlirMiuV1UPbej5JeCMqE93JRfZ/ZzqE7nJTwP85XzjAF4rRSeq2bGCb1cjfoHLOF06+HxADaPGqT0g3SbVT1w==}engines: {node: '>=4'}@@ -3686,30 +1799,31 @@ packages:safe-buffer: 5.2.1optionalDependencies:saslprep: 1.0.3+ dev: false- /mongoose-legacy-pluralize/[email protected]:+ /mongoose-legacy-pluralize/[email protected]:resolution: {integrity: sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==}peerDependencies:mongoose: '*'dependencies:- mongoose: 5.12.4+ mongoose: 5.12.7dev: false- /mongoose/5.12.4:- resolution: {integrity: sha512-iVREPLK/35ylEdaNBCStwTugyUYDv7ZuI7maSW7CdCgAX4dMW4be1CdKvZHJtlexO/ugKphMMFL9/bppcWXQ9Q==}+ /mongoose/5.12.7:+ resolution: {integrity: sha512-BniNwACn7uflK2h+M3juvyLH5nn9JDFgnB5KE2EwWFwSrRyhSpPnCtanRKJW3OtMCJyPccMIjtGZxHNW7JfnIw==}engines: {node: '>=4.0.0'}dependencies:'@types/mongodb': 3.6.12bson: 1.1.6kareem: 2.3.2mongodb: 3.6.6- mongoose-legacy-pluralize: [email protected]+ mongoose-legacy-pluralize: [email protected]mpath: 0.8.3mquery: 3.2.5ms: 2.1.2regexp-clone: 1.0.0safe-buffer: 5.2.1- sift: 7.0.1+ sift: 13.5.2sliced: 1.0.1transitivePeerDependencies:- aws4@@ -3736,17 +1850,21 @@ packages:sliced: 1.0.1dev: false+ /mri/1.1.6:+ resolution: {integrity: sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==}+ engines: {node: '>=4'}+ dev: true+/ms/2.0.0:resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=}-- /ms/2.1.1:- resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==}+ dev: false/ms/2.1.2:resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}/ms/2.1.3:resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}+ dev: false/nanoid/3.1.22:resolution: {integrity: sha512-/2ZUaJX2ANuLtTvqTlgqBQNJoQO398KyJgZloL0PZkC0dpysjncRUPsFe3DUPzz/y3h+u7C46np8RMuvF3jsSQ==}@@ -3754,17 +1872,14 @@ packages:hasBin: truedev: true- /natural-compare/1.4.0:- resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=}- dev: true-- /negotiator/0.6.2:- resolution: {integrity: sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==}- engines: {node: '>= 0.6'}+ /nanoid/3.1.23:+ resolution: {integrity: sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: truedev: true- /nice-try/1.0.5:- resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}+ /natural-compare/1.4.0:+ resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=}dev: true/node-emoji/1.10.0:@@ -3773,78 +1888,12 @@ packages:lodash.toarray: 4.4.0dev: true- /node-fetch/2.6.1:- resolution: {integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==}- engines: {node: 4.x || >=6.0.0}- dev: false-- /node-forge/0.10.0:- resolution: {integrity: sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==}- engines: {node: '>= 6.0.0'}- dev: true-- /node-gyp-build/4.2.3:- resolution: {integrity: sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg==}- hasBin: true- dev: false-/node-releases/1.1.71:resolution: {integrity: sha512-zR6HoT6LrLCRBwukmrVbHv0EpEQjksO6GmFcZQQuCAy139BEsoVKPYnf3jongYW83fAa1torLGYwxxky/p28sg==}dev: true- /nodemon/2.0.7:- resolution: {integrity: sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA==}- engines: {node: '>=8.10.0'}- hasBin: true- requiresBuild: true- dependencies:- chokidar: 3.5.1- debug: 3.2.7- ignore-by-default: 1.0.1- minimatch: 3.0.4- pstree.remy: 1.1.8- semver: 5.7.1- supports-color: 5.5.0- touch: 3.1.0- undefsafe: 2.0.3- update-notifier: 4.1.3- dev: true-- /nollup/0.16.1:- resolution: {integrity: sha512-G4XtdErjDS9QEw5jK38hLR6W57TwkpiMFvTpkpHunPg3t2wSZwsBTPqENTfNPundAip0GFNefyAvT8LGEtvkkQ==}- hasBin: true- dependencies:- '@rollup/pluginutils': 3.1.0- acorn: 8.1.1- chokidar: 3.5.1- convert-source-map: 1.7.0- express: 4.17.1- express-history-api-fallback: 2.2.1- express-http-proxy: 1.6.2- express-ws: [email protected]- magic-string: 0.25.7- mime-types: 2.1.30- source-map: 0.5.7- source-map-fast: /source-map/0.7.3- transitivePeerDependencies:- - rollup- dev: true- optional: true-- /nopt/1.0.10:- resolution: {integrity: sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=}- hasBin: true- dependencies:- abbrev: 1.1.1- dev: true-- /normalize-package-data/2.5.0:- resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}- dependencies:- hosted-git-info: 2.8.9- resolve: 1.20.0- semver: 5.7.1- validate-npm-package-license: 3.0.4+ /noop6/1.0.9:+ resolution: {integrity: sha512-DB3Hwyd89dPr5HqEPg3YHjzvwh/mCqizC1zZ8vyofqc+TQRyPDnT4wgXXbLGF4z9YAzwwTLi8pNLhGqcbSjgkA==}dev: true/normalize-path/3.0.0:@@ -3862,41 +1911,12 @@ packages:engines: {node: '>=8'}dev: true- /npm-run-all/4.1.5:- resolution: {integrity: sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==}- engines: {node: '>= 4'}- hasBin: true- dependencies:- ansi-styles: 3.2.1- chalk: 2.4.2- cross-spawn: 6.0.5- memorystream: 0.3.1- minimatch: 3.0.4- pidtree: 0.3.1- read-pkg: 3.0.0- shell-quote: 1.7.2- string.prototype.padend: 3.1.2- dev: true-- /npm-run-path/4.0.1:- resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}- engines: {node: '>=8'}+ /nth-check/2.0.0:+ resolution: {integrity: sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q==}dependencies:- path-key: 3.1.1- dev: true-- /num2fraction/1.2.2:- resolution: {integrity: sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=}+ boolbase: 1.0.0dev: true- /nwsapi/2.2.0:- resolution: {integrity: sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==}- dev: false-- /oauth-sign/0.9.0:- resolution: {integrity: sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==}- dev: false-/object-assign/4.1.1:resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=}engines: {node: '>=0.10.0'}@@ -3907,99 +1927,14 @@ packages:engines: {node: '>= 6'}dev: true- /object-inspect/1.9.0:- resolution: {integrity: sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw==}- dev: true-- /object-keys/1.1.1:- resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}- engines: {node: '>= 0.4'}- dev: true-- /object.assign/4.1.2:- resolution: {integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- has-symbols: 1.0.2- object-keys: 1.1.1- dev: true-- /object.entries/1.1.3:- resolution: {integrity: sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- has: 1.0.3- dev: true-- /object.fromentries/2.0.4:- resolution: {integrity: sha512-EsFBshs5RUUpQEY1D4q/m59kMfz4YJvxuNCJcv/jWwOJr34EaVnG11ZrZa0UHB3wnzV1wx8m58T4hQL8IuNXlQ==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- has: 1.0.3- dev: true-- /object.values/1.1.3:- resolution: {integrity: sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- has: 1.0.3- dev: true-- /on-finished/2.3.0:- resolution: {integrity: sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=}- engines: {node: '>= 0.8'}- dependencies:- ee-first: 1.1.1-/once/1.4.0:resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=}dependencies:wrappy: 1.0.2- /onetime/5.1.2:- resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}- engines: {node: '>=6'}- dependencies:- mimic-fn: 2.1.0- dev: true-- /only/0.0.2:- resolution: {integrity: sha1-Kv3oTQPlC5qO3EROMGEKcCle37Q=}- dev: true-- /open/7.4.2:- resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==}- engines: {node: '>=8'}- dependencies:- is-docker: 2.2.1- is-wsl: 2.2.0- dev: true-/optional-require/1.0.3:resolution: {integrity: sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==}engines: {node: '>=4'}-- /optionator/0.8.3:- resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==}- engines: {node: '>= 0.8.0'}- dependencies:- deep-is: 0.1.3- fast-levenshtein: 2.0.6- levn: 0.3.0- prelude-ls: 1.1.2- type-check: 0.3.2- word-wrap: 1.2.3dev: false/optionator/0.9.1:@@ -4014,86 +1949,6 @@ packages:word-wrap: 1.2.3dev: true- /ora/5.4.0:- resolution: {integrity: sha512-1StwyXQGoU6gdjYkyVcqOLnVlbKj+6yPNNOxJVgpt9t4eksKjiriiHuxktLYkgllwk+D6MbC4ihH84L1udRXPg==}- engines: {node: '>=10'}- dependencies:- bl: 4.1.0- chalk: 4.1.0- cli-cursor: 3.1.0- cli-spinners: 2.6.0- is-interactive: 1.0.0- is-unicode-supported: 0.1.0- log-symbols: 4.1.0- strip-ansi: 6.0.0- wcwidth: 1.0.1- dev: true-- /p-cancelable/1.1.0:- resolution: {integrity: sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==}- engines: {node: '>=6'}- dev: true-- /p-limit/1.3.0:- resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==}- engines: {node: '>=4'}- dependencies:- p-try: 1.0.0- dev: true-- /p-limit/2.3.0:- resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}- engines: {node: '>=6'}- dependencies:- p-try: 2.2.0- dev: true-- /p-locate/2.0.0:- resolution: {integrity: sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=}- engines: {node: '>=4'}- dependencies:- p-limit: 1.3.0- dev: true-- /p-locate/3.0.0:- resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==}- engines: {node: '>=6'}- dependencies:- p-limit: 2.3.0- dev: true-- /p-locate/4.1.0:- resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}- engines: {node: '>=8'}- dependencies:- p-limit: 2.3.0- dev: true-- /p-map-series/2.1.0:- resolution: {integrity: sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q==}- engines: {node: '>=8'}- dev: true-- /p-try/1.0.0:- resolution: {integrity: sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=}- engines: {node: '>=4'}- dev: true-- /p-try/2.2.0:- resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}- engines: {node: '>=6'}- dev: true-- /package-json/6.5.0:- resolution: {integrity: sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==}- engines: {node: '>=8'}- dependencies:- got: 9.6.0- registry-auth-token: 4.2.1- registry-url: 5.1.0- semver: 6.3.0- dev: true-/parent-module/1.0.1:resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}engines: {node: '>=6'}@@ -4111,572 +1966,388 @@ packages:is-glob: 2.0.1dev: true- /parse-json/2.2.0:- resolution: {integrity: sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=}- engines: {node: '>=0.10.0'}- dependencies:- error-ex: 1.3.2- dev: true-- /parse-json/4.0.0:- resolution: {integrity: sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=}- engines: {node: '>=4'}- dependencies:- error-ex: 1.3.2- json-parse-better-errors: 1.0.2- dev: true-/parse-json/5.2.0:resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}engines: {node: '>=8'}dependencies:- '@babel/code-frame': 7.12.13+ '@babel/code-frame': 7.12.11error-ex: 1.3.2json-parse-even-better-errors: 2.3.1lines-and-columns: 1.1.6dev: true- /parse5/6.0.1:- resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==}- dev: false-- /parseurl/1.3.3:- resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}- engines: {node: '>= 0.8'}- dev: true-- /path-exists/3.0.0:- resolution: {integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=}- engines: {node: '>=4'}- dev: true-- /path-exists/4.0.0:- resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}- engines: {node: '>=8'}- dev: true-/path-is-absolute/1.0.1:resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=}- engines: {node: '>=0.10.0'}-- /path-key/2.0.1:- resolution: {integrity: sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=}- engines: {node: '>=4'}- dev: true-- /path-key/3.1.1:- resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}- engines: {node: '>=8'}- dev: true-- /path-match/1.2.4:- resolution: {integrity: sha1-pidH88fgwlFHYml/JEQ1hbCRAOo=}- dependencies:- http-errors: 1.4.0- path-to-regexp: 1.8.0- dev: true-- /path-parse/1.0.6:- resolution: {integrity: sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==}-- /path-to-regexp/0.1.7:- resolution: {integrity: sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=}- dev: true- optional: true-- /path-to-regexp/1.8.0:- resolution: {integrity: sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==}- dependencies:- isarray: 0.0.1- dev: true-- /path-type/2.0.0:- resolution: {integrity: sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=}- engines: {node: '>=4'}- dependencies:- pify: 2.3.0- dev: true-- /path-type/3.0.0:- resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==}- engines: {node: '>=4'}- dependencies:- pify: 3.0.0- dev: true-- /path-type/4.0.0:- resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}- engines: {node: '>=8'}- dev: true-- /pend/1.2.0:- resolution: {integrity: sha1-elfrVQpng/kRUzH89GY9XI4AelA=}- dev: true-- /performance-now/2.1.0:- resolution: {integrity: sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=}- dev: false-- /picomatch/2.2.3:- resolution: {integrity: sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==}- engines: {node: '>=8.6'}-- /pidtree/0.3.1:- resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==}- engines: {node: '>=0.10'}- hasBin: true- dev: true-- /pify/2.3.0:- resolution: {integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw=}- engines: {node: '>=0.10.0'}- dev: true-- /pify/3.0.0:- resolution: {integrity: sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=}- engines: {node: '>=4'}- dev: true-- /pify/4.0.1:- resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}- engines: {node: '>=6'}- dev: true-- /pino-std-serializers/3.2.0:- resolution: {integrity: sha512-EqX4pwDPrt3MuOAAUBMU0Tk5kR/YcCM5fNPEzgCO2zJ5HfX0vbiH9HbJglnyeQsN96Kznae6MWD47pZB5avTrg==}- dev: false-- /pino/6.11.3:- resolution: {integrity: sha512-drPtqkkSf0ufx2gaea3TryFiBHdNIdXKf5LN0hTM82SXI4xVIve2wLwNg92e1MT6m3jASLu6VO7eGY6+mmGeyw==}- hasBin: true- dependencies:- fast-redact: 3.0.0- fast-safe-stringify: 2.0.7- flatstr: 1.0.12- pino-std-serializers: 3.2.0- quick-format-unescaped: 4.0.3- sonic-boom: 1.4.1- dev: false-- /pkg-conf/3.1.0:- resolution: {integrity: sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==}- engines: {node: '>=6'}- dependencies:- find-up: 3.0.0- load-json-file: 5.3.0- dev: true-- /pkg-dir/2.0.0:- resolution: {integrity: sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=}- engines: {node: '>=4'}- dependencies:- find-up: 2.1.0- dev: true-- /pkg-dir/4.2.0:- resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}- engines: {node: '>=8'}- dependencies:- find-up: 4.1.0- dev: true-- /postcss-attribute-case-insensitive/4.0.2:- resolution: {integrity: sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==}- dependencies:- postcss: 7.0.35- postcss-selector-parser: 6.0.4- dev: true-- /postcss-color-functional-notation/2.0.1:- resolution: {integrity: sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1- dev: true-- /postcss-color-gray/5.0.0:- resolution: {integrity: sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==}- engines: {node: '>=6.0.0'}- dependencies:- '@csstools/convert-colors': 1.4.0- postcss: 7.0.35- postcss-values-parser: 2.0.1- dev: true-- /postcss-color-hex-alpha/5.0.3:- resolution: {integrity: sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1- dev: true-- /postcss-color-mod-function/3.0.3:- resolution: {integrity: sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==}- engines: {node: '>=6.0.0'}- dependencies:- '@csstools/convert-colors': 1.4.0- postcss: 7.0.35- postcss-values-parser: 2.0.1- dev: true+ engines: {node: '>=0.10.0'}- /postcss-color-rebeccapurple/4.0.1:- resolution: {integrity: sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ /path-key/3.1.1:+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}dev: true- /postcss-custom-media/7.0.8:- resolution: {integrity: sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- dev: true+ /path-parse/1.0.6:+ resolution: {integrity: sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==}- /postcss-custom-properties/8.0.11:- resolution: {integrity: sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ /path-type/4.0.0:+ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}+ engines: {node: '>=8'}dev: true- /postcss-custom-selectors/5.1.2:- resolution: {integrity: sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==}- engines: {node: '>=6.0.0'}- dependencies:- postcss: 7.0.35- postcss-selector-parser: 5.0.0+ /picomatch/2.2.3:+ resolution: {integrity: sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==}+ engines: {node: '>=8.6'}dev: true- /postcss-dir-pseudo-class/5.0.0:- resolution: {integrity: sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==}- engines: {node: '>=4.0.0'}+ /postcss-calc/[email protected]:+ resolution: {integrity: sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==}+ peerDependencies:+ postcss: ^8.2.2dependencies:- postcss: 7.0.35- postcss-selector-parser: 5.0.0+ postcss: 8.2.14+ postcss-selector-parser: 6.0.5+ postcss-value-parser: 4.1.0dev: true- /postcss-discard-comments/4.0.2:- resolution: {integrity: sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg==}- engines: {node: '>=6.9.0'}+ /postcss-colormin/[email protected]:+ resolution: {integrity: sha512-Yt84+5V6CgS/AhK7d7MA58vG8dSZ7+ytlRtWLaQhag3HXOncTfmYpuUOX4cDoXjvLfw1sHRCHMiBjYhc35CymQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ browserslist: 4.16.6+ color: 3.1.3+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-double-position-gradients/1.0.0:- resolution: {integrity: sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==}- engines: {node: '>=6.0.0'}+ /postcss-convert-values/[email protected]:+ resolution: {integrity: sha512-V5kmYm4xoBAjNs+eHY/6XzXJkkGeg4kwNf2ocfqhLb1WBPEa4oaSmoi1fnVO7Dkblqvus9h+AenDvhCKUCK7uQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-env-function/2.0.2:- resolution: {integrity: sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==}- engines: {node: '>=6.0.0'}+ /postcss-discard-comments/[email protected]:+ resolution: {integrity: sha512-Umig6Gxs8m20RihiXY6QkePd6mp4FxkA1Dg+f/Kd6uw0gEMfKRjDeQOyFkLibexbJJGHpE3lrN/Q0R9SMrUMbQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ postcss: 8.2.14dev: true- /postcss-focus-visible/4.0.0:- resolution: {integrity: sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==}- engines: {node: '>=6.0.0'}+ /postcss-discard-duplicates/[email protected]:+ resolution: {integrity: sha512-vEJJ+Y3pFUnO1FyCBA6PSisGjHtnphL3V6GsNvkASq/VkP3OX5/No5RYXXLxHa2QegStNzg6HYrYdo71uR4caQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14dev: true- /postcss-focus-within/3.0.0:- resolution: {integrity: sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==}- engines: {node: '>=6.0.0'}+ /postcss-discard-empty/[email protected]:+ resolution: {integrity: sha512-+wigy099Y1xZxG36WG5L1f2zeH1oicntkJEW4TDIqKKDO2g9XVB3OhoiHTu08rDEjLnbcab4rw0BAccwi2VjiQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14dev: true- /postcss-font-variant/4.0.1:- resolution: {integrity: sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==}+ /postcss-discard-overridden/[email protected]:+ resolution: {integrity: sha512-hybnScTaZM2iEA6kzVQ6Spozy7kVdLw+lGw8hftLlBEzt93uzXoltkYp9u0tI8xbfhxDLTOOzHsHQCkYdmzRUg==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14dev: true/postcss-functions/3.0.0:resolution: {integrity: sha1-DpTQFERwCkgd4g3k1V+yZAVkJQ4=}dependencies:- glob: 7.1.6+ glob: 7.1.7object-assign: 4.1.1postcss: 6.0.23postcss-value-parser: 3.3.1dev: true- /postcss-gap-properties/2.0.0:- resolution: {integrity: sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==}- engines: {node: '>=6.0.0'}+ /postcss-js/3.0.3:+ resolution: {integrity: sha512-gWnoWQXKFw65Hk/mi2+WTQTHdPD5UJdDXZmX073EY/B3BWnYjO4F4t0VneTCnCGQ5E5GsCdMkzPaTXwl3r5dJw==}+ engines: {node: '>=10.0'}dependencies:- postcss: 7.0.35+ camelcase-css: 2.0.1+ postcss: 8.2.15dev: true- /postcss-image-set-function/3.0.1:- resolution: {integrity: sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==}- engines: {node: '>=6.0.0'}+ /postcss-load-config/3.0.1:+ resolution: {integrity: sha512-/pDHe30UYZUD11IeG8GWx9lNtu1ToyTsZHnyy45B4Mrwr/Kb6NgYl7k753+05CJNKnjbwh4975amoPJ+TEjHNQ==}+ engines: {node: '>= 10'}dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ cosmiconfig: 7.0.0+ import-cwd: 3.0.0dev: true- /postcss-import/12.0.1:- resolution: {integrity: sha512-3Gti33dmCjyKBgimqGxL3vcV8w9+bsHwO5UrBawp796+jdardbcFl4RP5w/76BwNL7aGzpKstIfF9I+kdE8pTw==}- engines: {node: '>=6.0.0'}+ /postcss-merge-longhand/[email protected]:+ resolution: {integrity: sha512-H1RO8le5deFGumQzuhJjuL0bIXPRysa+w7xtk5KrHe38oiaSS9ksPXDo24+IOS3SETPhip0J5+1uCOW+ALs3Yw==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35- postcss-value-parser: 3.3.1- read-cache: 1.0.0- resolve: 1.20.0+ css-color-names: 1.0.1+ postcss: 8.2.14+ postcss-value-parser: 4.1.0+ stylehacks: [email protected]dev: true- /postcss-import/[email protected]:- resolution: {integrity: sha512-Xn2+z++vWObbEPhiiKO1a78JiyhqipyrXHBb3AHpv0ks7Cdg+GxQQJ24ODNMTanldf7197gSP3axppO9yaG0lA==}- engines: {node: '>=10.0.0'}+ /postcss-merge-rules/[email protected]:+ resolution: {integrity: sha512-TfsXbKjNYCGfUPEXGIGPySnMiJbdS+3gcVeV8gwmJP4RajyKZHW8E0FYDL1WmggTj3hi+m+WUCAvqRpX2ut4Kg==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.0.0+ postcss: ^8.2.1dependencies:- postcss: 8.2.10- postcss-value-parser: 4.1.0- read-cache: 1.0.0- resolve: 1.20.0+ browserslist: 4.16.6+ caniuse-api: 3.0.0+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-selector-parser: 6.0.5+ vendors: 1.0.4dev: true- /postcss-initial/3.0.4:- resolution: {integrity: sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==}+ /postcss-minify-font-values/[email protected]:+ resolution: {integrity: sha512-zi2JhFaMOcIaNxhndX5uhsqSY1rexKDp23wV8EOmC9XERqzLbHsoRye3aYF716Zm+hkcR4loqKDt8LZlmihwAg==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-js/3.0.3:- resolution: {integrity: sha512-gWnoWQXKFw65Hk/mi2+WTQTHdPD5UJdDXZmX073EY/B3BWnYjO4F4t0VneTCnCGQ5E5GsCdMkzPaTXwl3r5dJw==}- engines: {node: '>=10.0'}+ /postcss-minify-gradients/[email protected]:+ resolution: {integrity: sha512-/jPtNgs6JySMwgsE5dPOq8a2xEopWTW3RyqoB9fLqxgR+mDUNLSi7joKd+N1z7FXWgVkc4l/dEBMXHgNAaUbvg==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- camelcase-css: 2.0.1- postcss: 8.2.10+ cssnano-utils: [email protected]+ is-color-stop: 1.1.0+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-lab-function/2.0.1:- resolution: {integrity: sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==}- engines: {node: '>=6.0.0'}+ /postcss-minify-params/[email protected]:+ resolution: {integrity: sha512-KvZYIxTPBVKjdd+XgObq9A+Sfv8lMkXTpbZTsjhr42XbfWIeLaTItMlygsDWfjArEc3muUfDaUFgNSeDiJ5jug==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- '@csstools/convert-colors': 1.4.0- postcss: 7.0.35- postcss-values-parser: 2.0.1+ alphanum-sort: 1.0.2+ browserslist: 4.16.6+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0+ uniqs: 2.0.0dev: true- /postcss-load-config/3.0.1:- resolution: {integrity: sha512-/pDHe30UYZUD11IeG8GWx9lNtu1ToyTsZHnyy45B4Mrwr/Kb6NgYl7k753+05CJNKnjbwh4975amoPJ+TEjHNQ==}- engines: {node: '>= 10'}+ /postcss-minify-selectors/[email protected]:+ resolution: {integrity: sha512-cEM0O0eWwFIvmo6nfB0lH0vO/XFwgqIvymODbfPXZ1gTA3i76FKnb7TGUrEpiTxaXH6tgYQ6DcTHwRiRS+YQLQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- cosmiconfig: 7.0.0- import-cwd: 3.0.0+ alphanum-sort: 1.0.2+ postcss: 8.2.14+ postcss-selector-parser: 3.1.2dev: true- /postcss-logical/3.0.0:- resolution: {integrity: sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==}- engines: {node: '>=6.0.0'}+ /postcss-nested/[email protected]:+ resolution: {integrity: sha512-GSRXYz5bccobpTzLQZXOnSOfKl6TwVr5CyAQJUPub4nuRJSOECK5AqurxVgmtxP48p0Kc/ndY/YyS1yqldX0Ew==}+ engines: {node: '>=10.0'}+ peerDependencies:+ postcss: ^8.1.13dependencies:- postcss: 7.0.35+ postcss: 8.2.14+ postcss-selector-parser: 6.0.6dev: true- /postcss-media-minmax/4.0.0:- resolution: {integrity: sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==}- engines: {node: '>=6.0.0'}+ /postcss-normalize-charset/[email protected]:+ resolution: {integrity: sha512-pqsCkgo9KmQP0ew6DqSA+uP9YN6EfsW20pQ3JU5JoQge09Z6Too4qU0TNDsTNWuEaP8SWsMp+19l15210MsDZQ==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14dev: true- /postcss-modules-extract-imports/[email protected]:- resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}- engines: {node: ^10 || ^12 || >= 14}+ /postcss-normalize-display-values/[email protected]:+ resolution: {integrity: sha512-t4f2d//gH1f7Ns0Jq3eNdnWuPT7TeLuISZ6RQx4j8gpl5XrhkdshdNcOnlrEK48YU6Tcb6jqK7dorME3N4oOGA==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.1.0+ postcss: ^8.2.1dependencies:- postcss: 8.2.10+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-modules-local-by-default/[email protected]:- resolution: {integrity: sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==}- engines: {node: ^10 || ^12 || >= 14}+ /postcss-normalize-positions/[email protected]:+ resolution: {integrity: sha512-0o6/qU5ky74X/eWYj/tv4iiKCm3YqJnrhmVADpIMNXxzFZywsSQxl8F7cKs8jQEtF3VrJBgcDHTexZy1zgDoYg==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.1.0+ postcss: ^8.2.1dependencies:- icss-utils: [email protected]- postcss: 8.2.10- postcss-selector-parser: 6.0.4+ postcss: 8.2.14postcss-value-parser: 4.1.0dev: true- /postcss-modules-scope/[email protected]:- resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==}- engines: {node: ^10 || ^12 || >= 14}+ /postcss-normalize-repeat-style/[email protected]:+ resolution: {integrity: sha512-KRT14JbrXKcFMYuc4q7lh8lvv8u22wLyMrq+UpHKLtbx2H/LOjvWXYdoDxmNrrrJzomAWL+ViEXr48/IhSUJnQ==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.1.0+ postcss: ^8.2.1dependencies:- postcss: 8.2.10- postcss-selector-parser: 6.0.4+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-modules-values/[email protected]:- resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==}- engines: {node: ^10 || ^12 || >= 14}+ /postcss-normalize-string/[email protected]:+ resolution: {integrity: sha512-wSO4pf7GNcDZpmelREWYADF1+XZWrAcbFLQCOqoE92ZwYgaP/RLumkUTaamEzdT2YKRZAH8eLLKGWotU/7FNPw==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.1.0+ postcss: ^8.2.1dependencies:- icss-utils: [email protected]- postcss: 8.2.10+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-modules/[email protected]:- resolution: {integrity: sha512-ghS/ovDzDqARm4Zj6L2ntadjyQMoyJmi0JkLlYtH2QFLrvNlxH5OAVRPWPeKilB0pY7SbuhO173KOWkPAxRJcw==}+ /postcss-normalize-timing-functions/[email protected]:+ resolution: {integrity: sha512-TwPaDX+wl9wO3MUm23lzGmOzGCGKnpk+rSDgzB2INpakD5dgWR3L6bJq1P1LQYzBAvz8fRIj2NWdnZdV4EV98Q==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.0.0+ postcss: ^8.2.1dependencies:- generic-names: 2.0.1- icss-replace-symbols: 1.1.0- lodash.camelcase: 4.3.0- postcss: 8.2.10- postcss-modules-extract-imports: [email protected]- postcss-modules-local-by-default: [email protected]- postcss-modules-scope: [email protected]- postcss-modules-values: [email protected]- string-hash: 1.1.3+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-nested/[email protected]:- resolution: {integrity: sha512-GSRXYz5bccobpTzLQZXOnSOfKl6TwVr5CyAQJUPub4nuRJSOECK5AqurxVgmtxP48p0Kc/ndY/YyS1yqldX0Ew==}- engines: {node: '>=10.0'}+ /postcss-normalize-unicode/[email protected]:+ resolution: {integrity: sha512-2CpVoz/67rXU5s9tsPZDxG1YGS9OFHwoY9gsLAzrURrCxTAb0H7Vp87/62LvVPgRWTa5ZmvgmqTp2rL8tlm72A==}+ engines: {node: ^10 || ^12 || >=14.0}peerDependencies:- postcss: ^8.1.13+ postcss: ^8.2.1dependencies:- postcss: 8.2.10- postcss-selector-parser: 6.0.4+ browserslist: 4.16.6+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-nesting/7.0.1:- resolution: {integrity: sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==}- engines: {node: '>=6.0.0'}+ /postcss-normalize-url/[email protected]:+ resolution: {integrity: sha512-ICDaGFBqLgA3dlrCIRuhblLl80D13YtgEV9NJPTYJtgR72vu61KgxAHv+z/lKMs1EbwfSQa3ALjOFLSmXiE34A==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ is-absolute-url: 3.0.3+ normalize-url: 4.5.0+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-overflow-shorthand/2.0.0:- resolution: {integrity: sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==}- engines: {node: '>=6.0.0'}+ /postcss-normalize-whitespace/[email protected]:+ resolution: {integrity: sha512-KRnxQvQAVkJfaeXSz7JlnD9nBN9sFZF9lrk9452Q2uRoqrRSkinqifF8Iex7wZGei2DZVG/qpmDFDmRvbNAOGA==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-page-break/2.0.0:- resolution: {integrity: sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==}+ /postcss-ordered-values/[email protected]:+ resolution: {integrity: sha512-dPr+SRObiHueCIc4IUaG0aOGQmYkuNu50wQvdXTGKy+rzi2mjmPsbeDsheLk5WPb9Zyf2tp8E+I+h40cnivm6g==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-place/4.0.1:- resolution: {integrity: sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==}- engines: {node: '>=6.0.0'}+ /postcss-reduce-initial/[email protected]:+ resolution: {integrity: sha512-wR6pXUaFbSMG1oCKx8pKVA+rnSXCHlca5jMrlmkmif+uig0HNUTV9oGN5kjKsM3mATQAldv2PF9Tbl2vqLFjnA==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35- postcss-values-parser: 2.0.1+ browserslist: 4.16.6+ caniuse-api: 3.0.0+ postcss: 8.2.14dev: true- /postcss-preset-env/6.7.0:- resolution: {integrity: sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==}- engines: {node: '>=6.0.0'}- dependencies:- autoprefixer: 9.8.6- browserslist: 4.16.4- caniuse-lite: 1.0.30001209- css-blank-pseudo: 0.1.4- css-has-pseudo: 0.10.0- css-prefers-color-scheme: 3.1.1- cssdb: 4.4.0- postcss: 7.0.35- postcss-attribute-case-insensitive: 4.0.2- postcss-color-functional-notation: 2.0.1- postcss-color-gray: 5.0.0- postcss-color-hex-alpha: 5.0.3- postcss-color-mod-function: 3.0.3- postcss-color-rebeccapurple: 4.0.1- postcss-custom-media: 7.0.8- postcss-custom-properties: 8.0.11- postcss-custom-selectors: 5.1.2- postcss-dir-pseudo-class: 5.0.0- postcss-double-position-gradients: 1.0.0- postcss-env-function: 2.0.2- postcss-focus-visible: 4.0.0- postcss-focus-within: 3.0.0- postcss-font-variant: 4.0.1- postcss-gap-properties: 2.0.0- postcss-image-set-function: 3.0.1- postcss-initial: 3.0.4- postcss-lab-function: 2.0.1- postcss-logical: 3.0.0- postcss-media-minmax: 4.0.0- postcss-nesting: 7.0.1- postcss-overflow-shorthand: 2.0.0- postcss-page-break: 2.0.0- postcss-place: 4.0.1- postcss-pseudo-class-any-link: 6.0.0- postcss-replace-overflow-wrap: 3.0.0- postcss-selector-matches: 4.0.0- postcss-selector-not: 4.0.1- dev: true-- /postcss-pseudo-class-any-link/6.0.0:- resolution: {integrity: sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==}- engines: {node: '>=6.0.0'}+ /postcss-reduce-transforms/[email protected]:+ resolution: {integrity: sha512-iHdGODW4YzM3WjVecBhPQt6fpJC4lGQZxJKjkBNHpp2b8dzmvj0ogKThqya+IRodQEFzjfXgYeESkf172FH5Lw==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- postcss: 7.0.35- postcss-selector-parser: 5.0.0+ cssnano-utils: [email protected]+ postcss: 8.2.14+ postcss-value-parser: 4.1.0dev: true- /postcss-replace-overflow-wrap/3.0.0:- resolution: {integrity: sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==}+ /postcss-selector-parser/3.1.2:+ resolution: {integrity: sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA==}+ engines: {node: '>=8'}dependencies:- postcss: 7.0.35+ dot-prop: 5.3.0+ indexes-of: 1.0.1+ uniq: 1.0.1dev: true- /postcss-selector-matches/4.0.0:- resolution: {integrity: sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==}+ /postcss-selector-parser/6.0.5:+ resolution: {integrity: sha512-aFYPoYmXbZ1V6HZaSvat08M97A8HqO6Pjz+PiNpw/DhuRrC72XWAdp3hL6wusDCN31sSmcZyMGa2hZEuX+Xfhg==}+ engines: {node: '>=4'}dependencies:- balanced-match: 1.0.2- postcss: 7.0.35+ cssesc: 3.0.0+ util-deprecate: 1.0.2dev: true- /postcss-selector-not/4.0.1:- resolution: {integrity: sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==}+ /postcss-selector-parser/6.0.6:+ resolution: {integrity: sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==}+ engines: {node: '>=4'}dependencies:- balanced-match: 1.0.2- postcss: 7.0.35+ cssesc: 3.0.0+ util-deprecate: 1.0.2dev: true- /postcss-selector-parser/5.0.0:- resolution: {integrity: sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==}- engines: {node: '>=4'}+ /postcss-svgo/[email protected]:+ resolution: {integrity: sha512-M3/VS4sFI1Yp9g0bPL+xzzCNz5iLdRUztoFaugMit5a8sMfkVzzhwqbsOlD8IFFymCdJDmXmh31waYHWw1K4BA==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- cssesc: 2.0.0- indexes-of: 1.0.1- uniq: 1.0.1+ postcss: 8.2.14+ postcss-value-parser: 4.1.0+ svgo: 2.3.0dev: true- /postcss-selector-parser/6.0.4:- resolution: {integrity: sha512-gjMeXBempyInaBqpp8gODmwZ52WaYsVOsfr4L4lDQ7n3ncD6mEyySiDtgzCT+NYC0mmeOLvtsF8iaEf0YT6dBw==}- engines: {node: '>=4'}+ /postcss-unique-selectors/[email protected]:+ resolution: {integrity: sha512-o9l4pF8SRn7aCMTmzb/kNv/kjV7wPZpZ8Nlb1Gq8v/Qvw969K1wanz1RVA0ehHzWe9+wHXaC2DvZlak/gdMJ5w==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1dependencies:- cssesc: 3.0.0- indexes-of: 1.0.1- uniq: 1.0.1- util-deprecate: 1.0.2+ alphanum-sort: 1.0.2+ postcss: 8.2.14+ postcss-selector-parser: 6.0.5+ uniqs: 2.0.0dev: true/postcss-value-parser/3.3.1:@@ -4687,15 +2358,6 @@ packages:resolution: {integrity: sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==}dev: true- /postcss-values-parser/2.0.1:- resolution: {integrity: sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==}- engines: {node: '>=6.14.4'}- dependencies:- flatten: 1.0.3- indexes-of: 1.0.1- uniq: 1.0.1- dev: true-/postcss/6.0.23:resolution: {integrity: sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==}engines: {node: '>=4.0.0'}@@ -4705,17 +2367,17 @@ packages:supports-color: 5.5.0dev: true- /postcss/7.0.35:- resolution: {integrity: sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg==}- engines: {node: '>=6.0.0'}+ /postcss/8.2.13:+ resolution: {integrity: sha512-FCE5xLH+hjbzRdpbRb1IMCvPv9yZx2QnDarBEYSN0N0HYk+TcXsEhwdFcFb+SRWOKzKGErhIEbBK2ogyLdTtfQ==}+ engines: {node: ^10 || ^12 || >=14}dependencies:- chalk: 2.4.2+ colorette: 1.2.2+ nanoid: 3.1.22source-map: 0.6.1- supports-color: 6.1.0dev: true- /postcss/8.2.10:- resolution: {integrity: sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw==}+ /postcss/8.2.14:+ resolution: {integrity: sha512-+jD0ZijcvyCqPQo/m/CW0UcARpdFylq04of+Q7RKX6f/Tu+dvpUI/9Sp81+i6/vJThnOBX09Quw0ZLOVwpzX3w==}engines: {node: ^10 || ^12 || >=14}dependencies:colorette: 1.2.2@@ -4723,33 +2385,32 @@ packages:source-map: 0.6.1dev: true- /prelude-ls/1.1.2:- resolution: {integrity: sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=}- engines: {node: '>= 0.8.0'}- dev: false+ /postcss/8.2.15:+ resolution: {integrity: sha512-2zO3b26eJD/8rb106Qu2o7Qgg52ND5HPjcyQiK2B98O388h43A448LCslC0dI2P97wCAQRJsFvwTRcXxTKds+Q==}+ engines: {node: ^10 || ^12 || >=14}+ dependencies:+ colorette: 1.2.2+ nanoid: 3.1.23+ source-map: 0.6.1+ dev: true/prelude-ls/1.2.1:resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}engines: {node: '>= 0.8.0'}dev: true- /prepend-http/2.0.0:- resolution: {integrity: sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=}- engines: {node: '>=4'}- dev: true-- /prettier-plugin-svelte/[email protected][email protected]:+ /prettier-plugin-svelte/[email protected][email protected]:resolution: {integrity: sha512-Xdmqgr71tAuMqqzNCK52/v94g/Yv7V7lz+nmbO9NEA+9ol15VV3uUHOfydMNOo3SWvFaVlBcp947ebEaMWqVfQ==}peerDependencies:prettier: ^1.16.4 || ^2.0.0svelte: ^3.2.0dependencies:- prettier: 2.2.1- svelte: 3.37.0+ prettier: 2.3.0+ svelte: 3.38.2dev: true- /prettier/2.2.1:- resolution: {integrity: sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==}+ /prettier/2.3.0:+ resolution: {integrity: sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==}engines: {node: '>=10.13.0'}hasBin: truedev: true@@ -4761,52 +2422,23 @@ packages:/process-nextick-args/2.0.1:resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}+ dev: false/progress/2.0.3:resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==}engines: {node: '>=0.4.0'}dev: true- /prop-types/15.7.2:- resolution: {integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==}- dependencies:- loose-envify: 1.4.0- object-assign: 4.1.1- react-is: 16.13.1- dev: true-- /proxy-addr/2.0.6:- resolution: {integrity: sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==}- engines: {node: '>= 0.10'}- dependencies:- forwarded: 0.1.2- ipaddr.js: 1.9.1- dev: true- optional: true-- /psl/1.8.0:- resolution: {integrity: sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==}- dev: false-- /pstree.remy/1.1.8:- resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==}- dev: true-/pump/3.0.0:resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==}dependencies:end-of-stream: 1.4.4once: 1.4.0+ dev: false/punycode/2.1.1:resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==}engines: {node: '>=6'}-- /pupa/2.1.1:- resolution: {integrity: sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==}- engines: {node: '>=8'}- dependencies:- escape-goat: 2.1.1dev: true/purgecss/3.1.3:@@ -4814,112 +2446,20 @@ packages:hasBin: truedependencies:commander: 6.2.1- glob: 7.1.6- postcss: 8.2.10- postcss-selector-parser: 6.0.4- dev: true-- /qs/6.5.2:- resolution: {integrity: sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==}- engines: {node: '>=0.6'}- dev: false-- /qs/6.7.0:- resolution: {integrity: sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==}- engines: {node: '>=0.6'}+ glob: 7.1.7+ postcss: 8.2.15+ postcss-selector-parser: 6.0.6dev: true- optional: true/queue-microtask/1.2.3:resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}-- /quick-format-unescaped/4.0.3:- resolution: {integrity: sha512-MaL/oqh02mhEo5m5J2rwsVL23Iw2PEaGVHgT2vFt8AAsr0lfvQA5dpXo9TPu0rz7tSBdUPgkbam0j/fj5ZM8yg==}- dev: false+ dev: true/quick-lru/5.1.1:resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}engines: {node: '>=10'}dev: true- /randombytes/2.1.0:- resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}- dependencies:- safe-buffer: 5.2.1- dev: true-- /range-parser/1.2.1:- resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}- engines: {node: '>= 0.6'}-- /raw-body/2.4.0:- resolution: {integrity: sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==}- engines: {node: '>= 0.8'}- dependencies:- bytes: 3.1.0- http-errors: 1.7.2- iconv-lite: 0.4.24- unpipe: 1.0.0- dev: true- optional: true-- /raw-body/2.4.1:- resolution: {integrity: sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==}- engines: {node: '>= 0.8'}- dependencies:- bytes: 3.1.0- http-errors: 1.7.3- iconv-lite: 0.4.24- unpipe: 1.0.0- dev: true- optional: true-- /rc/1.2.8:- resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}- hasBin: true- dependencies:- deep-extend: 0.6.0- ini: 1.3.8- minimist: 1.2.5- strip-json-comments: 2.0.1- dev: true-- /react-is/16.13.1:- resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}- dev: true-- /read-cache/1.0.0:- resolution: {integrity: sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=}- dependencies:- pify: 2.3.0- dev: true-- /read-pkg-up/2.0.0:- resolution: {integrity: sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=}- engines: {node: '>=4'}- dependencies:- find-up: 2.1.0- read-pkg: 2.0.0- dev: true-- /read-pkg/2.0.0:- resolution: {integrity: sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=}- engines: {node: '>=4'}- dependencies:- load-json-file: 2.0.0- normalize-package-data: 2.5.0- path-type: 2.0.0- dev: true-- /read-pkg/3.0.0:- resolution: {integrity: sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=}- engines: {node: '>=4'}- dependencies:- load-json-file: 4.0.0- normalize-package-data: 2.5.0- path-type: 3.0.0- dev: true-/readable-stream/2.3.7:resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==}dependencies:@@ -4930,6 +2470,7 @@ packages:safe-buffer: 5.1.2string_decoder: 1.1.1util-deprecate: 1.0.2+ dev: false/readable-stream/3.6.0:resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==}@@ -4938,128 +2479,47 @@ packages:inherits: 2.0.4string_decoder: 1.3.0util-deprecate: 1.0.2-- /readdirp/3.5.0:- resolution: {integrity: sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==}- engines: {node: '>=8.10.0'}- dependencies:- picomatch: 2.2.3- dev: true-- /rechoir/0.6.2:- resolution: {integrity: sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=}- engines: {node: '>= 0.10'}- dependencies:- resolve: 1.20.0- dev: false-- /reduce-css-calc/2.1.8:- resolution: {integrity: sha512-8liAVezDmUcH+tdzoEGrhfbGcP7nOV4NkGE3a74+qqvE7nt9i4sKLGBuZNOnpI4WiGksiNPklZxva80061QiPg==}- dependencies:- css-unit-converter: 1.1.2- postcss-value-parser: 3.3.1- dev: true-- /regexp-clone/1.0.0:- resolution: {integrity: sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==}dev: false- /regexp.prototype.flags/1.3.1:- resolution: {integrity: sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- dev: true-- /regexpp/3.1.0:- resolution: {integrity: sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==}- engines: {node: '>=8'}- dev: true-- /registry-auth-token/4.2.1:- resolution: {integrity: sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==}- engines: {node: '>=6.0.0'}- dependencies:- rc: 1.2.8- dev: true-- /registry-url/5.1.0:- resolution: {integrity: sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==}- engines: {node: '>=8'}+ /readdirp/3.5.0:+ resolution: {integrity: sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==}+ engines: {node: '>=8.10.0'}dependencies:- rc: 1.2.8+ picomatch: 2.2.3dev: true- /request-promise-core/[email protected]:- resolution: {integrity: sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==}- engines: {node: '>=0.10.0'}- peerDependencies:- request: ^2.34+ /rechoir/0.6.2:+ resolution: {integrity: sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=}+ engines: {node: '>= 0.10'}dependencies:- lodash: 4.17.21- request: 2.88.2+ resolve: 1.20.0dev: false- /request-promise-native/[email protected]:- resolution: {integrity: sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==}- engines: {node: '>=0.12.0'}- deprecated: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142- peerDependencies:- request: ^2.34+ /reduce-css-calc/2.1.8:+ resolution: {integrity: sha512-8liAVezDmUcH+tdzoEGrhfbGcP7nOV4NkGE3a74+qqvE7nt9i4sKLGBuZNOnpI4WiGksiNPklZxva80061QiPg==}dependencies:- request: 2.88.2- request-promise-core: [email protected]- stealthy-require: 1.1.1- tough-cookie: 2.5.0- dev: false+ css-unit-converter: 1.1.2+ postcss-value-parser: 3.3.1+ dev: true- /request/2.88.2:- resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==}- engines: {node: '>= 6'}- deprecated: request has been deprecated, see https://github.com/request/request/issues/3142- dependencies:- aws-sign2: 0.7.0- aws4: 1.11.0- caseless: 0.12.0- combined-stream: 1.0.8- extend: 3.0.2- forever-agent: 0.6.1- form-data: 2.3.3- har-validator: 5.1.5- http-signature: 1.2.0- is-typedarray: 1.0.0- isstream: 0.1.2- json-stringify-safe: 5.0.1- mime-types: 2.1.30- oauth-sign: 0.9.0- performance-now: 2.1.0- qs: 6.5.2- safe-buffer: 5.2.1- tough-cookie: 2.5.0- tunnel-agent: 0.6.0- uuid: 3.4.0+ /regexp-clone/1.0.0:+ resolution: {integrity: sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==}dev: false- /require-directory/2.1.1:- resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=}- engines: {node: '>=0.10.0'}+ /regexpp/3.1.0:+ resolution: {integrity: sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==}+ engines: {node: '>=8'}dev: true- optional: true/require-from-string/2.0.2:resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}engines: {node: '>=0.10.0'}- dev: false+ dev: true/require-relative/0.8.7:resolution: {integrity: sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=}dev: true- /requires-port/1.0.0:- resolution: {integrity: sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=}- dev: true-/resolve-from/4.0.0:resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}engines: {node: '>=4'}@@ -5070,150 +2530,34 @@ packages:engines: {node: '>=8'}dev: true- /resolve-path/1.4.0:- resolution: {integrity: sha1-xL2p9e+y/OZSR4c6s2u02DT+Fvc=}- engines: {node: '>= 0.8'}- dependencies:- http-errors: 1.6.3- path-is-absolute: 1.0.1- dev: true-/resolve/1.20.0:resolution: {integrity: sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==}dependencies:- is-core-module: 2.2.0+ is-core-module: 2.4.0path-parse: 1.0.6- /responselike/1.0.2:- resolution: {integrity: sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=}- dependencies:- lowercase-keys: 1.0.1- dev: true-- /restore-cursor/3.1.0:- resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}- engines: {node: '>=8'}- dependencies:- onetime: 5.1.2- signal-exit: 3.0.3- dev: true-- /ret/0.2.2:- resolution: {integrity: sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==}- engines: {node: '>=4'}- dev: false-/reusify/1.0.4:resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}engines: {iojs: '>=1.0.0', node: '>=0.10.0'}-- /rfdc/1.3.0:- resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==}- dev: false-- /rimraf/2.6.3:- resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==}- hasBin: true- dependencies:- glob: 7.1.6- dev: true-- /rimraf/3.0.2:- resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}- hasBin: true- dependencies:- glob: 7.1.6- dev: true-- /rollup-plugin-dynamic-import-variables/[email protected]:- resolution: {integrity: sha512-C1avEmnXC8cC4aAQ5dB63O9oQf7IrhEHc98bQw9Qd6H36FxtZooLCvVfcO4SNYrqaNrzH3ErucQt/zdFSLPHNw==}- dependencies:- '@rollup/pluginutils': [email protected]- estree-walker: 2.0.2- globby: 11.0.3- magic-string: 0.25.7- transitivePeerDependencies:- - rollup- dev: true-- /rollup-plugin-hot-nollup/0.1.2:- resolution: {integrity: sha512-QE4/CO7CFWSwZDmp/K+bMEOdP+i9aZiEw2u1sF+BiYE+0VQTu/FfzhJUxI0PDthBjzLZfEW31rwQJhVueuSL8w==}- dependencies:- '@rollup/pluginutils': 3.1.0- transitivePeerDependencies:- - rollupdev: true- /rollup-plugin-svelte-hot/[email protected]:- resolution: {integrity: sha512-3cQnFZlrQbknbEwtEwxC2TcT2HO3BYR4/9A/7Dfzm93sQ4lvyAYlCh4JS4FximrR1jWrI/mgaOtUKYDudGIkmg==}- peerDependencies:- rollup: '>=1.19.2'- svelte: '>=3.19.0'- dependencies:- require-relative: 0.8.7- rollup-plugin-hot-nollup: 0.1.2- rollup-pluginutils: 2.8.2- sourcemap-codec: 1.4.8- svelte: 3.37.0- svelte-hmr: [email protected]- optionalDependencies:- nollup: 0.16.1+ /rgb-regex/1.0.1:+ resolution: {integrity: sha1-wODWiC3w4jviVKR16O3UGRX+rrE=}dev: true- /rollup-plugin-terser/[email protected]:- resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==}- peerDependencies:- rollup: ^2.0.0- dependencies:- '@babel/code-frame': 7.12.13- jest-worker: 26.6.2- rollup: 2.45.2- serialize-javascript: 4.0.0- terser: 5.6.1+ /rgba-regex/1.0.0:+ resolution: {integrity: sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=}dev: true- /rollup-plugin-visualizer/4.2.2:- resolution: {integrity: sha512-10/TsugsaQL5rdynl0lrklBngTtkRBESZdxUJy+3fN+xKqNdg5cr7JQU1OoPx4p5mhQ+nspa6EvX3qc8SsBvnA==}- engines: {node: '>=10'}+ /rimraf/3.0.2:+ resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}hasBin: true- peerDependencies:- rollup: '>=1.20.0'- dependencies:- nanoid: 3.1.22- open: 7.4.2- source-map: 0.7.3- yargs: 16.2.0- dev: true- optional: true-- /rollup-plugin-vue/6.0.0_@[email protected]:- resolution: {integrity: sha512-oVvUd84d5u73M2HYM3XsMDLtZRIA/tw2U0dmHlXU2UWP5JARYHzh/U9vcxaN/x/9MrepY7VH3pHFeOhrWpxs/Q==}- peerDependencies:- '@vue/compiler-sfc': '*'- dependencies:- '@vue/compiler-sfc': [email protected]- debug: 4.3.1- hash-sum: 2.0.0- rollup-pluginutils: 2.8.2- transitivePeerDependencies:- - supports-color- dev: true-- /rollup-plugin-web-worker-loader/[email protected]:- resolution: {integrity: sha512-4QywQSz1NXFHKdyiou16mH3ijpcfLtLGOrAqvAqu1Gx+P8+zj+3gwC2BSL/VW1d+LW4nIHC8F7d7OXhs9UdR2A==}- peerDependencies:- rollup: ^1.9.2 || ^2.0.0dependencies:- rollup: 2.45.2+ glob: 7.1.7dev: true- /rollup-pluginutils/2.8.2:- resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==}- dependencies:- estree-walker: 0.6.1-- /rollup/2.45.2:- resolution: {integrity: sha512-kRRU7wXzFHUzBIv0GfoFFIN3m9oteY4uAsKllIpQDId5cfnkWF2J130l+27dzDju0E6MScKiV0ZM5Bw8m4blYQ==}+ /rollup/2.46.0:+ resolution: {integrity: sha512-qPGoUBNl+Z8uNu0z7pD3WPTABWRbcOwIrO/5ccDJzmrtzn0LVf6Lj91+L5CcWhXl6iWf23FQ6m8Jkl2CmN1O7Q==}engines: {node: '>=10.0.0'}hasBin: trueoptionalDependencies:@@ -5226,64 +2570,42 @@ packages:queue-microtask: 1.2.3dev: true+ /sade/1.7.4:+ resolution: {integrity: sha512-y5yauMD93rX840MwUJr7C1ysLFBgMspsdTo4UVrDg3fXDvtwOyIqykhVAAm6fk/3au77773itJStObgK+LKaiA==}+ engines: {node: '>= 6'}+ dependencies:+ mri: 1.1.6+ dev: true+/safe-buffer/5.1.2:resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==}+ dev: false/safe-buffer/5.2.1:resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}-- /safe-regex2/2.0.0:- resolution: {integrity: sha512-PaUSFsUaNNuKwkBijoAPHAK6/eM6VirvyPWlZ7BAQy4D+hCvh4B6lIG+nPdhbFfIbP+gTGBcrdsOaUs0F+ZBOQ==}- dependencies:- ret: 0.2.2dev: false/safer-buffer/2.1.2:resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}+ dev: false++ /salteen/1.0.0:+ resolution: {integrity: sha512-hApiOPudRSzM5aD1dWIWlXL8dPUja8GloMzHMlmDtNiU5brFNyjvQ+SiLLxHVQNeZ2HgKBnzrRHp+BXQiA5vGg==}+ engines: {node: '>=6'}+ dev: false/saslprep/1.0.3:resolution: {integrity: sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==}engines: {node: '>=6'}dependencies:sparse-bitfield: 3.0.3- optional: true-- /saxes/5.0.1:- resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==}- engines: {node: '>=10'}- dependencies:- xmlchars: 2.2.0- dev: false-- /secure-json-parse/2.4.0:- resolution: {integrity: sha512-Q5Z/97nbON5t/L/sH6mY2EacfjVGwrCcSi5D3btRO2GZ8pf1K1UN7Z9H5J57hjVU2Qzxr1xO+FmBhOvEkzCMmg==}- dev: false-- /selfsigned/1.10.8:- resolution: {integrity: sha512-2P4PtieJeEwVgTU9QEcwIRDQ/mXJLX8/+I3ur+Pg16nS8oNbrGxEso9NyYWy8NAmXiNl4dlAp5MwoNeCWzON4w==}- dependencies:- node-forge: 0.10.0- dev: true-- /semver-diff/3.1.1:- resolution: {integrity: sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==}- engines: {node: '>=8'}- dependencies:- semver: 6.3.0- dev: true-- /semver-store/0.3.0:- resolution: {integrity: sha512-TcZvGMMy9vodEFSse30lWinkj+JgOBvPn8wRItpQRSayhc+4ssDs335uklkfvQQJgL/WvmHLVj4Ycv2s7QCQMg==}dev: false+ optional: true/semver/5.7.1:resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==}hasBin: true-- /semver/6.3.0:- resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==}- hasBin: true- dev: true+ dev: false/semver/7.3.5:resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==}@@ -5291,61 +2613,6 @@ packages:hasBin: truedependencies:lru-cache: 6.0.0-- /send/0.17.1:- resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==}- engines: {node: '>= 0.8.0'}- dependencies:- debug: 2.6.9- depd: 1.1.2- destroy: 1.0.4- encodeurl: 1.0.2- escape-html: 1.0.3- etag: 1.8.1- fresh: 0.5.2- http-errors: 1.7.3- mime: 1.6.0- ms: 2.1.1- on-finished: 2.3.0- range-parser: 1.2.1- statuses: 1.5.0-- /serialize-javascript/4.0.0:- resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==}- dependencies:- randombytes: 2.1.0- dev: true-- /serve-static/1.14.1:- resolution: {integrity: sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==}- engines: {node: '>= 0.8.0'}- dependencies:- encodeurl: 1.0.2- escape-html: 1.0.3- parseurl: 1.3.3- send: 0.17.1- dev: true- optional: true-- /set-cookie-parser/2.4.8:- resolution: {integrity: sha512-edRH8mBKEWNVIVMKejNnuJxleqYE/ZSdcT8/Nem9/mmosx12pctd80s2Oy00KNZzrogMZS5mauK2/ymL1bvlvg==}- dev: false-- /setprototypeof/1.1.0:- resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==}- dev: true-- /setprototypeof/1.1.1:- resolution: {integrity: sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==}-- /setprototypeof/1.2.0:- resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}-- /shebang-command/1.2.0:- resolution: {integrity: sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=}- engines: {node: '>=0.10.0'}- dependencies:- shebang-regex: 1.0.0dev: true/shebang-command/2.0.0:@@ -5355,20 +2622,11 @@ packages:shebang-regex: 3.0.0dev: true- /shebang-regex/1.0.0:- resolution: {integrity: sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=}- engines: {node: '>=0.10.0'}- dev: true-/shebang-regex/3.0.0:resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}engines: {node: '>=8'}dev: true- /shell-quote/1.7.2:- resolution: {integrity: sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==}- dev: true-/shelljs/0.8.4:resolution: {integrity: sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==}engines: {node: '>=4'}@@ -5379,22 +2637,10 @@ packages:rechoir: 0.6.2dev: false- /side-channel/1.0.4:- resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}- dependencies:- call-bind: 1.0.2- get-intrinsic: 1.1.1- object-inspect: 1.9.0- dev: true-- /sift/7.0.1:- resolution: {integrity: sha512-oqD7PMJ+uO6jV9EQCl0LrRw1OwsiPsiFQR5AR30heR+4Dl7jBBbDLnNvWiak20tzZlSE1H7RB30SX/1j/YYT7g==}+ /sift/13.5.2:+ resolution: {integrity: sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==}dev: false- /signal-exit/3.0.3:- resolution: {integrity: sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==}- dev: true-/simple-swizzle/0.2.2:resolution: {integrity: sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=}dependencies:@@ -5406,80 +2652,41 @@ packages:engines: {node: '>=8'}dev: true- /slice-ansi/2.1.0:- resolution: {integrity: sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==}- engines: {node: '>=6'}+ /slash/4.0.0:+ resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==}+ engines: {node: '>=12'}+ dev: true++ /slice-ansi/4.0.0:+ resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}+ engines: {node: '>=10'}dependencies:- ansi-styles: 3.2.1- astral-regex: 1.0.0- is-fullwidth-code-point: 2.0.0+ ansi-styles: 4.3.0+ astral-regex: 2.0.0+ is-fullwidth-code-point: 3.0.0dev: true/sliced/1.0.1:resolution: {integrity: sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=}dev: false- /sonic-boom/1.4.1:- resolution: {integrity: sha512-LRHh/A8tpW7ru89lrlkU4AszXt1dbwSjVWguGrmlxE7tawVmDBlI1PILMkXAxJTwqhgsEeTHzj36D5CmHgQmNg==}- dependencies:- atomic-sleep: 1.0.0- flatstr: 1.0.12- dev: false-- /source-map-support/0.5.19:- resolution: {integrity: sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==}- dependencies:- buffer-from: 1.1.1- source-map: 0.6.1- dev: true-- /source-map/0.5.7:- resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=}- engines: {node: '>=0.10.0'}- dev: true- optional: true-/source-map/0.6.1:resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}engines: {node: '>=0.10.0'}+ dev: true/source-map/0.7.3:resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==}engines: {node: '>= 8'}dev: true- /sourcemap-codec/1.4.8:- resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}- dev: true-/sparse-bitfield/3.0.3:resolution: {integrity: sha1-/0rm5oZWBWuks+eSqzM004JzyhE=}dependencies:memory-pager: 1.5.0+ dev: falseoptional: true- /spdx-correct/3.1.1:- resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==}- dependencies:- spdx-expression-parse: 3.0.1- spdx-license-ids: 3.0.7- dev: true-- /spdx-exceptions/2.3.0:- resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==}- dev: true-- /spdx-expression-parse/3.0.1:- resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==}- dependencies:- spdx-exceptions: 2.3.0- spdx-license-ids: 3.0.7- dev: true-- /spdx-license-ids/3.0.7:- resolution: {integrity: sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==}- dev: true-/split-ca/1.0.1:resolution: {integrity: sha1-bIOv82kvphJW4M0ZfgXp3hV2kaY=}dev: false@@ -5504,90 +2711,15 @@ packages:ssh2-streams: 0.4.10dev: false- /sshpk/1.16.1:- resolution: {integrity: sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==}- engines: {node: '>=0.10.0'}- hasBin: true- dependencies:- asn1: 0.2.4- assert-plus: 1.0.0- bcrypt-pbkdf: 1.0.2- dashdash: 1.14.1- ecc-jsbn: 0.1.2- getpass: 0.1.7- jsbn: 0.1.1- safer-buffer: 2.1.2- tweetnacl: 0.14.5- dev: false-- /standard-engine/14.0.1:- resolution: {integrity: sha512-7FEzDwmHDOGva7r9ifOzD3BGdTbA7ujJ50afLVdW/tK14zQEptJjbFuUfn50irqdHDcTbNh0DTIoMPynMCXb0Q==}- engines: {node: '>=8.10'}- dependencies:- get-stdin: 8.0.0- minimist: 1.2.5- pkg-conf: 3.1.0- xdg-basedir: 4.0.0- dev: true-- /standard/16.0.3:- resolution: {integrity: sha512-70F7NH0hSkNXosXRltjSv6KpTAOkUkSfyu3ynyM5dtRUiLtR+yX9EGZ7RKwuGUqCJiX/cnkceVM6HTZ4JpaqDg==}- engines: {node: ^10.12.0 || >=12.0.0}- hasBin: true- dependencies:- eslint: 7.13.0- eslint-config-standard: 16.0.2_1ebed8346196ff7bde7431d183a61a72- eslint-config-standard-jsx: 10.0.0_d4901a613f352504e6e19464e186980c- eslint-plugin-import: [email protected]- eslint-plugin-node: [email protected]- eslint-plugin-promise: 4.2.1- eslint-plugin-react: [email protected]- standard-engine: 14.0.1- transitivePeerDependencies:- - supports-color+ /stable/0.1.8:+ resolution: {integrity: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==}dev: true- /statuses/1.5.0:- resolution: {integrity: sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=}- engines: {node: '>= 0.6'}-- /stealthy-require/1.1.1:- resolution: {integrity: sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=}- engines: {node: '>=0.10.0'}- dev: false-- /steed/1.1.3:- resolution: {integrity: sha1-8VJd1a2xLrIb90dJU3Zo1iW5q8U=}- dependencies:- fastfall: 1.5.1- fastparallel: 2.4.0- fastq: 1.11.0- fastseries: 1.7.2- reusify: 1.0.4- dev: false-/streamsearch/0.1.2:resolution: {integrity: sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=}engines: {node: '>=0.8.0'}dev: false- /string-hash/1.1.3:- resolution: {integrity: sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=}- dev: true-- /string-similarity/4.0.4:- resolution: {integrity: sha512-/q/8Q4Bl4ZKAPjj8WerIBJWALKkaPRfrvhfF8k/B23i4nzrlRj2/go1m90In7nG/3XDSbOo0+pu6RvCTM9RGMQ==}- dev: false-- /string-width/3.1.0:- resolution: {integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==}- engines: {node: '>=6'}- dependencies:- emoji-regex: 7.0.3- is-fullwidth-code-point: 2.0.0- strip-ansi: 5.2.0- dev: true-/string-width/4.2.2:resolution: {integrity: sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==}engines: {node: '>=8'}@@ -5597,73 +2729,23 @@ packages:strip-ansi: 6.0.0dev: true- /string.prototype.matchall/4.0.4:- resolution: {integrity: sha512-pknFIWVachNcyqRfaQSeu/FUfpvJTe4uskUSZ9Wc1RijsPuzbZ8TyYT8WCNnntCjUEqQ3vUHMAfVj2+wLAisPQ==}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- has-symbols: 1.0.2- internal-slot: 1.0.3- regexp.prototype.flags: 1.3.1- side-channel: 1.0.4- dev: true-- /string.prototype.padend/3.1.2:- resolution: {integrity: sha512-/AQFLdYvePENU3W5rgurfWSMU6n+Ww8n/3cUt7E+vPBB/D7YDG8x+qjoFs4M/alR2bW7Qg6xMjVwWUOvuQ0XpQ==}- engines: {node: '>= 0.4'}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- es-abstract: 1.18.0- dev: true-- /string.prototype.trimend/1.0.4:- resolution: {integrity: sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- dev: true-- /string.prototype.trimstart/1.0.4:- resolution: {integrity: sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==}- dependencies:- call-bind: 1.0.2- define-properties: 1.1.3- dev: true-/string_decoder/1.1.1:resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==}dependencies:safe-buffer: 5.1.2+ dev: false/string_decoder/1.3.0:resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}dependencies:safe-buffer: 5.2.1-- /strip-ansi/5.2.0:- resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==}- engines: {node: '>=6'}- dependencies:- ansi-regex: 4.1.0- dev: true+ dev: false/strip-ansi/6.0.0:resolution: {integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==}engines: {node: '>=8'}- dependencies:- ansi-regex: 5.0.0- dev: true-- /strip-bom/3.0.0:- resolution: {integrity: sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=}- engines: {node: '>=4'}- dev: true-- /strip-final-newline/2.0.0:- resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}- engines: {node: '>=6'}+ dependencies:+ ansi-regex: 5.0.0dev: true/strip-indent/3.0.0:@@ -5673,27 +2755,27 @@ packages:min-indent: 1.0.1dev: true- /strip-json-comments/2.0.1:- resolution: {integrity: sha1-PFMZQukIwml8DsNEhYwobHygpgo=}- engines: {node: '>=0.10.0'}- dev: true-/strip-json-comments/3.1.1:resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}dev: true+ /stylehacks/[email protected]:+ resolution: {integrity: sha512-QOWm6XivDLb+fqffTZP8jrmPmPITVChl2KCY2R05nsCWwLi3VGhCdVc3IVGNwd1zzTt1jPd67zIKjpQfxzQZeA==}+ engines: {node: ^10 || ^12 || >=14.0}+ peerDependencies:+ postcss: ^8.2.1+ dependencies:+ browserslist: 4.16.6+ postcss: 8.2.14+ postcss-selector-parser: 6.0.5+ dev: true+/supports-color/5.5.0:resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}dependencies:has-flag: 3.0.0-- /supports-color/6.1.0:- resolution: {integrity: sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==}- engines: {node: '>=6'}- dependencies:- has-flag: 3.0.0dev: true/supports-color/7.2.0:@@ -5701,25 +2783,24 @@ packages:engines: {node: '>=8'}dependencies:has-flag: 4.0.0+ dev: true- /svelte-hmr/[email protected]:- resolution: {integrity: sha512-XUYcp7W26q/fF8tABZfCYGklwL4TDH48gc1KOjuBQNlTiMW63l/+rRqmfVOE/qKG5vns0J2NPo3zFjdahkwoHA==}+ /svelte-hmr/[email protected]:+ resolution: {integrity: sha512-N56xX405zLMw2tpGHKRx5h+kmdeZwxI21pvyC6OyBHJDCF6DlwWBm9TifdQmSD4dloWSmpDPzHWYa3CSjfopUg==}peerDependencies:svelte: '>=3.19.0'dependencies:- svelte: 3.37.0+ svelte: 3.38.2dev: true- /svelte-hmr/[email protected]:- resolution: {integrity: sha512-Rc4w11U+U30m/cHqOJ/xioFSEAY5fd5muiQC7FL6XJuJAuB2OIJoEZl3KEJR2uO1/f4Bw0PdrugtbxcngSsOtQ==}- peerDependencies:- svelte: '>=3.19.0'+ /svelte-kit-cookie-session/0.4.3:+ resolution: {integrity: sha512-dffh86haFNNY7+Oqf+hD5fELPva7N7aiAmtkqjWzdoJXgH95Yq3TP3NiLzv9Ep3nZBalYRschh5Hg2L5Jtu2Kg==}dependencies:- svelte: 3.37.0- dev: true+ salteen: 1.0.0+ dev: false- /svelte-preprocess/4.7.0_4a3768216fad352756a1a13607f73a31:- resolution: {integrity: sha512-iNrY4YGqi0LD2e6oT9YbdSzOKntxk8gmzfqso1z/lUJOZh4o6fyIqkirmiZ8/dDJFqtIE1spVgDFWgkfhLEYlw==}+ /svelte-preprocess/4.7.3_bc60392b3f6116f56fa9e4496adda117:+ resolution: {integrity: sha512-Zx1/xLeGOIBlZMGPRCaXtlMe4ZA0faato5Dc3CosEqwu75MIEPuOstdkH6cy+RYTUYynoxzNaDxkPX4DbrPwRA==}engines: {node: '>= 9.11.2'}requiresBuild: truepeerDependencies:@@ -5762,78 +2843,51 @@ packages:'@types/pug': 2.0.4'@types/sass': 1.16.0detect-indent: 6.0.0- postcss: 8.2.10+ postcss: 8.2.14postcss-load-config: 3.0.1strip-indent: 3.0.0- svelte: 3.37.0+ svelte: 3.38.2+ typescript: 4.2.4dev: true/svelte-select/3.17.0:resolution: {integrity: sha512-ITmX/XUiSdkaILmsTviKRkZPaXckM5/FA7Y8BhiUPoamaZG/ZDyOo6ydjFu9fDVFTbwoAUGUi6HBjs+ZdK2AwA==}dev: false- /svelte/3.37.0:- resolution: {integrity: sha512-TRF30F4W4+d+Jr2KzUUL1j8Mrpns/WM/WacxYlo5MMb2E5Qy2Pk1Guj6GylxsW9OnKQl1tnF8q3hG/hQ3h6VUA==}+ /svelte/3.38.2:+ resolution: {integrity: sha512-q5Dq0/QHh4BLJyEVWGe7Cej5NWs040LWjMbicBGZ+3qpFWJ1YObRmUDZKbbovddLC9WW7THTj3kYbTOFmU9fbg==}engines: {node: '>= 8'}dev: true- /svite/0.8.1_79b75b88a1dd913f13bddff6afa5f1de:- resolution: {integrity: sha512-DZYF0Icw+omJC8903gfrIWEjfiLyekEDdl08sY+AGrTu0j9k3SHkWkySr+22+GyfRxeY5r/Ag6Ngh6rRULPhGA==}- engines: {node: ^12||^14, npm: ^6.14, pnpm: ^5.5, yarn: ^1.22 || ^2}- deprecated: svite 0.8.x for vite1 is no longer supported. prerelease for vite2 is 0.9.x, check https://github.com/svitejs/svite/blob/main/packages/svite+ /svgo/2.3.0:+ resolution: {integrity: sha512-fz4IKjNO6HDPgIQxu4IxwtubtbSfGEAJUq/IXyTPIkGhWck/faiiwfkvsB8LnBkKLvSoyNNIY6d13lZprJMc9Q==}+ engines: {node: '>=10.13.0'}hasBin: true- peerDependencies:- svelte: ^3.29.7- svelte-hmr: ^0.11.6dependencies:- '@rollup/pluginutils': 4.1.0- chalk: 4.1.0- commander: 6.2.1- debug: 4.3.1- degit: 2.8.4- execa: 4.1.0- lru-cache: 6.0.0- rollup-plugin-svelte-hot: [email protected]- svelte: 3.37.0- svelte-hmr: [email protected]- vite: 1.0.0-rc.13- optionalDependencies:- rollup-plugin-visualizer: 4.2.2- svelte-preprocess: 4.7.0_4a3768216fad352756a1a13607f73a31- transitivePeerDependencies:- - '@babel/core'- - bufferutil- - coffeescript- - less- - node-sass- - postcss- - postcss-load-config- - pug- - rollup- - sass- - stylus- - sugarss- - supports-color- - typescript- - utf-8-validate+ '@trysound/sax': 0.1.1+ chalk: 4.1.1+ commander: 7.2.0+ css-select: 3.1.2+ css-tree: 1.1.3+ csso: 4.2.0+ stable: 0.1.8dev: true- /symbol-tree/3.2.4:- resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}- dev: false-- /table/5.4.6:- resolution: {integrity: sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==}- engines: {node: '>=6.0.0'}+ /table/6.6.0:+ resolution: {integrity: sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg==}+ engines: {node: '>=10.0.0'}dependencies:- ajv: 6.12.6- lodash: 4.17.21- slice-ansi: 2.1.0- string-width: 3.1.0+ ajv: 8.2.0+ lodash.clonedeep: 4.5.0+ lodash.flatten: 4.4.0+ lodash.truncate: 4.4.2+ slice-ansi: 4.0.0+ string-width: 4.2.2+ strip-ansi: 6.0.0dev: true- /tailwindcss/[email protected]:- resolution: {integrity: sha512-zZ6axGqpSZOCBS7wITm/WNHkBzDt5CIZlDlx0eCVldwTxFPELCVGbgh7Xpb3/kZp3cUxOmK7bZUjqhuMrbN6xQ==}+ /tailwindcss/2.2.0-canary.6_b46308bb95614802e1b6d1dce4e25ea6:+ resolution: {integrity: sha512-gXpjyw8g4Z565tG6yDyzh2VH3mX0riWXeujg/L6Ph4z/t5ztnqRF2QGXVT5toZYyl7LP02YTrfVqxzDY5vuJDw==}engines: {node: '>=12.13.0'}hasBin: truepeerDependencies:@@ -5841,8 +2895,9 @@ packages:postcss: ^8.0.9dependencies:'@fullhuman/postcss-purgecss': 3.1.3+ autoprefixer: [email protected]bytes: 3.1.0- chalk: 4.1.0+ chalk: 4.1.1chokidar: 3.5.1color: 3.1.3detective: 5.2.0@@ -5853,16 +2908,16 @@ packages:html-tags: 3.1.0lodash: 4.17.21lodash.topath: 4.5.2- modern-normalize: 1.0.0+ modern-normalize: 1.1.0node-emoji: 1.10.0normalize-path: 3.0.0object-hash: 2.1.1parse-glob: 3.0.4- postcss: 8.2.10+ postcss: 8.2.14postcss-functions: 3.0.0postcss-js: 3.0.3- postcss-nested: [email protected]- postcss-selector-parser: 6.0.4+ postcss-nested: [email protected]+ postcss-selector-parser: 6.0.6postcss-value-parser: 4.1.0pretty-hrtime: 1.0.3quick-lru: 5.1.1@@ -5888,46 +2943,14 @@ packages:fs-constants: 1.0.0inherits: 2.0.4readable-stream: 3.6.0-- /term-size/2.2.1:- resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==}- engines: {node: '>=8'}- dev: true-- /terser/5.6.1:- resolution: {integrity: sha512-yv9YLFQQ+3ZqgWCUk+pvNJwgUTdlIxUk1WTN+RnaFJe2L7ipG2csPT0ra2XRm7Cs8cxN7QXmK1rFzEwYEQkzXw==}- engines: {node: '>=10'}- hasBin: true- dependencies:- commander: 2.20.3- source-map: 0.7.3- source-map-support: 0.5.19- dev: true+ dev: false/text-table/0.2.0:resolution: {integrity: sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=}dev: true- /tiny-lru/7.0.6:- resolution: {integrity: sha512-zNYO0Kvgn5rXzWpL0y3RS09sMK67eGaQj9805jlK9G6pSadfriTczzLHFXa/xcW4mIRfmlB9HyQ/+SgL0V1uow==}- engines: {node: '>=6'}- dev: false-- /tmp/0.2.1:- resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==}- engines: {node: '>=8.17.0'}- dependencies:- rimraf: 3.0.2- dev: true-- /to-fast-properties/2.0.0:- resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=}- engines: {node: '>=4'}- dev: true-- /to-readable-stream/1.0.0:- resolution: {integrity: sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==}- engines: {node: '>=6'}+ /timsort/0.3.0:+ resolution: {integrity: sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=}dev: true/to-regex-range/5.0.1:@@ -5937,72 +2960,28 @@ packages:is-number: 7.0.0dev: true- /toidentifier/1.0.0:- resolution: {integrity: sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==}- engines: {node: '>=0.6'}-- /touch/3.1.0:- resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==}- hasBin: true- dependencies:- nopt: 1.0.10- dev: true-- /tough-cookie/2.5.0:- resolution: {integrity: sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==}- engines: {node: '>=0.8'}- dependencies:- psl: 1.8.0- punycode: 2.1.1- dev: false-- /tough-cookie/4.0.0:- resolution: {integrity: sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==}- engines: {node: '>=6'}- dependencies:- psl: 1.8.0- punycode: 2.1.1- universalify: 0.1.2- dev: false-- /tr46/2.0.2:- resolution: {integrity: sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg==}- engines: {node: '>=8'}- dependencies:- punycode: 2.1.1- dev: false-- /tsconfig-paths/3.9.0:- resolution: {integrity: sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==}- dependencies:- '@types/json5': 0.0.29- json5: 1.0.1- minimist: 1.2.5- strip-bom: 3.0.0+ /tslib/1.14.1:+ resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}dev: true- /tsscmp/1.0.6:- resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==}- engines: {node: '>=0.6.x'}+ /tslib/2.2.0:+ resolution: {integrity: sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==}dev: true- /tunnel-agent/0.6.0:- resolution: {integrity: sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=}+ /tsutils/[email protected]:+ resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}+ engines: {node: '>= 6'}+ peerDependencies:+ typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'dependencies:- safe-buffer: 5.2.1- dev: false+ tslib: 1.14.1+ typescript: 4.2.4+ dev: true/tweetnacl/0.14.5:resolution: {integrity: sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=}dev: false- /type-check/0.3.2:- resolution: {integrity: sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=}- engines: {node: '>= 0.8.0'}- dependencies:- prelude-ls: 1.1.2- dev: false-/type-check/0.4.0:resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}engines: {node: '>= 0.8.0'}@@ -6010,9 +2989,9 @@ packages:prelude-ls: 1.2.1dev: true- /type-fest/0.3.1:- resolution: {integrity: sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==}- engines: {node: '>=6'}+ /type-fest/0.20.2:+ resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}+ engines: {node: '>=10'}dev: true/type-fest/0.8.1:@@ -6020,285 +2999,77 @@ packages:engines: {node: '>=8'}dev: true- /type-is/1.6.18:- resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}- engines: {node: '>= 0.6'}- dependencies:- media-typer: 0.3.0- mime-types: 2.1.30- dev: true-- /typedarray-to-buffer/3.1.5:- resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}- dependencies:- is-typedarray: 1.0.0- dev: true-- /unbox-primitive/1.0.1:- resolution: {integrity: sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==}- dependencies:- function-bind: 1.1.1- has-bigints: 1.0.1- has-symbols: 1.0.2- which-boxed-primitive: 1.0.2+ /typescript/4.2.4:+ resolution: {integrity: sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==}+ engines: {node: '>=4.2.0'}+ hasBin: truedev: true- /undefsafe/2.0.3:- resolution: {integrity: sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==}+ /typpy/2.3.11:+ resolution: {integrity: sha512-Jh/fykZSaxeKO0ceMAs6agki9T5TNA9kiIR6fzKbvafKpIw8UlNlHhzuqKyi5lfJJ5VojJOx9tooIbyy7vHV/g==}dependencies:- debug: 2.6.9+ function.name: 1.0.13dev: true/uniq/1.0.1:resolution: {integrity: sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=}dev: true- /unique-names-generator/4.4.0:- resolution: {integrity: sha512-0noP+m59TGwolNqnmXfiqMA5KiTudIk6D0VgzNkk2C1Jv3Lr+sY3T07nEWBg8Uq92/FjGca1klsRR6CXFriqFw==}- engines: {node: '>=6'}- dev: false-- /unique-string/2.0.0:- resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==}- engines: {node: '>=8'}- dependencies:- crypto-random-string: 2.0.0+ /uniqs/2.0.0:+ resolution: {integrity: sha1-/+3ks2slKQaW5uFl1KWe25mOawI=}dev: true- /universalify/0.1.2:- resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}- engines: {node: '>= 4.0.0'}+ /unique-names-generator/4.5.0:+ resolution: {integrity: sha512-GaiWvo3rKIHi1SyYP8/9cDrPMPSwEiYDUo2p0NQHeCHDXzLn8P6p8bttSS3lX7HHS3Yl5vnw/ulybO4GN85CgQ==}+ engines: {node: '>=8'}dev: false/universalify/2.0.0:resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}engines: {node: '>= 10.0.0'}-- /unpipe/1.0.0:- resolution: {integrity: sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=}- engines: {node: '>= 0.8'}- dev: true- optional: true-- /update-notifier/4.1.3:- resolution: {integrity: sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==}- engines: {node: '>=8'}- dependencies:- boxen: 4.2.0- chalk: 3.0.0- configstore: 5.0.1- has-yarn: 2.1.0- import-lazy: 2.1.0- is-ci: 2.0.0- is-installed-globally: 0.3.2- is-npm: 4.0.0- is-yarn-global: 0.3.0- latest-version: 5.1.0- pupa: 2.1.1- semver-diff: 3.1.1- xdg-basedir: 4.0.0dev: true/uri-js/4.4.1:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}dependencies:punycode: 2.1.1-- /url-parse-lax/3.0.0:- resolution: {integrity: sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=}- engines: {node: '>=4'}- dependencies:- prepend-http: 2.0.0dev: true- /utf-8-validate/5.0.4:- resolution: {integrity: sha512-MEF05cPSq3AwJ2C7B7sHAA6i53vONoZbMGX8My5auEVm6W+dJ2Jd/TZPyGJ5CH42V2XtbI5FD28HeHeqlPzZ3Q==}- requiresBuild: true- dependencies:- node-gyp-build: 4.2.3- dev: false-/util-deprecate/1.0.2:resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=}- /utils-merge/1.0.1:- resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=}- engines: {node: '>= 0.4.0'}- dev: true- optional: true-- /uuid/3.4.0:- resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==}- hasBin: true- dev: false-- /uuid/8.3.2:- resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}- hasBin: true- dev: true-/v8-compile-cache/2.3.0:resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==}dev: true- /validate-npm-package-license/3.0.4:- resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}- dependencies:- spdx-correct: 3.1.1- spdx-expression-parse: 3.0.1- dev: true-- /vary/1.1.2:- resolution: {integrity: sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=}- engines: {node: '>= 0.8'}+ /vendors/1.0.4:+ resolution: {integrity: sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==}dev: true- /verror/1.10.0:- resolution: {integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=}- engines: {'0': node >=0.6.0}- dependencies:- assert-plus: 1.0.0- core-util-is: 1.0.2- extsprintf: 1.3.0- dev: false-- /vite/1.0.0-rc.13:- resolution: {integrity: sha512-hLfTbhNPDhwXMCAWR6s6C79G/O8Is0MbslglgoHSQsRby+KnqHgtHChCVBHFeV2oZBV/3xhHhnfm94BDPFe8Ww==}- engines: {node: '>=10.16.0'}+ /vite/2.2.4:+ resolution: {integrity: sha512-vnIwSNci+phFMp6krhy+FbYzKL0R67Sdt9mVZ96S27AewrApSJjTqncJcalk8sf60BgcbW4+1C6DFIWkxquO9g==}+ engines: {node: '>=12.0.0'}hasBin: truedependencies:- '@babel/parser': 7.13.15- '@koa/cors': 3.1.0- '@rollup/plugin-commonjs': [email protected]- '@rollup/plugin-json': [email protected]- '@rollup/plugin-node-resolve': [email protected]- '@rollup/pluginutils': [email protected]- '@types/http-proxy': 1.17.5- '@types/koa': 2.13.1- '@types/lru-cache': 5.1.0- '@vue/compiler-dom': 3.0.11- '@vue/compiler-sfc': [email protected]- brotli-size: 4.0.0- cac: 6.7.2- chalk: 4.1.0- chokidar: 3.5.1- clean-css: 4.2.3- debug: 4.3.1- dotenv: 8.2.0- dotenv-expand: 5.1.0- es-module-lexer: 0.3.26- esbuild: 0.8.57- etag: 1.8.1- execa: 4.1.0- fs-extra: 9.1.0- hash-sum: 2.0.0- isbuiltin: 1.0.0- klona: 2.0.4- koa: 2.13.1- koa-conditional-get: 3.0.0- koa-etag: 4.0.0- koa-proxies: [email protected][email protected]- koa-send: 5.0.1- koa-static: 5.0.0- lru-cache: 6.0.0- magic-string: 0.25.7- merge-source-map: 1.1.0- mime-types: 2.1.30- minimist: 1.2.5- open: 7.4.2- ora: 5.4.0- p-map-series: 2.1.0- postcss-discard-comments: 4.0.2- postcss-import: 12.0.1- postcss-load-config: 3.0.1+ esbuild: 0.9.7+ postcss: 8.2.13resolve: 1.20.0- rollup: 2.45.2- rollup-plugin-dynamic-import-variables: [email protected]- rollup-plugin-terser: [email protected]- rollup-plugin-vue: 6.0.0_@[email protected]- rollup-plugin-web-worker-loader: [email protected]- selfsigned: 1.10.8- slash: 3.0.0- source-map: 0.7.3- vue: 3.0.11- ws: 7.4.4- transitivePeerDependencies:- - bufferutil- - supports-color- - utf-8-validate- dev: true-- /vue/3.0.11:- resolution: {integrity: sha512-3/eUi4InQz8MPzruHYSTQPxtM3LdZ1/S/BvaU021zBnZi0laRUyH6pfuE4wtUeLvI8wmUNwj5wrZFvbHUXL9dw==}- dependencies:- '@vue/compiler-dom': 3.0.11- '@vue/runtime-dom': 3.0.11- '@vue/shared': 3.0.11- dev: true-- /w3c-hr-time/1.0.2:- resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}- dependencies:- browser-process-hrtime: 1.0.0- dev: false-- /w3c-xmlserializer/2.0.0:- resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==}- engines: {node: '>=10'}- dependencies:- xml-name-validator: 3.0.0- dev: false-- /wcwidth/1.0.1:- resolution: {integrity: sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=}- dependencies:- defaults: 1.0.3- dev: true-- /webidl-conversions/5.0.0:- resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==}- engines: {node: '>=8'}- dev: false-- /webidl-conversions/6.1.0:- resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==}- engines: {node: '>=10.4'}- dev: false-- /whatwg-encoding/1.0.5:- resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==}- dependencies:- iconv-lite: 0.4.24- dev: false-- /whatwg-mimetype/2.3.0:- resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==}- dev: false-- /whatwg-url/8.5.0:- resolution: {integrity: sha512-fy+R77xWv0AiqfLl4nuGUlQ3/6b5uNfQ4WAbGQVMYshCTCCPK9psC1nWh3XHuxGVCtlcDDQPQW1csmmIQo+fwg==}- engines: {node: '>=10'}- dependencies:- lodash: 4.17.21- tr46: 2.0.2- webidl-conversions: 6.1.0- dev: false-- /which-boxed-primitive/1.0.2:- resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}- dependencies:- is-bigint: 1.0.1- is-boolean-object: 1.1.0- is-number-object: 1.0.4- is-string: 1.0.5- is-symbol: 1.0.3+ rollup: 2.46.0+ optionalDependencies:+ fsevents: 2.3.2dev: true- /which/1.3.1:- resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==}+ /vite/2.3.2:+ resolution: {integrity: sha512-QhLdOompDrfkyryCNTts9HE+eJhvhN9ibKNJ5Q8DpQai+6nOsuIlaveZNg67e1O/2QaWqXeBo82eHnAs1De2bQ==}+ engines: {node: '>=12.0.0'}hasBin: truedependencies:- isexe: 2.0.0+ esbuild: 0.11.20+ postcss: 8.2.15+ resolve: 1.20.0+ rollup: 2.46.0+ optionalDependencies:+ fsevents: 2.3.2dev: true/which/2.0.2:@@ -6309,145 +3080,24 @@ packages:isexe: 2.0.0dev: true- /widest-line/3.1.0:- resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==}- engines: {node: '>=8'}- dependencies:- string-width: 4.2.2- dev: true-/word-wrap/1.2.3:resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==}engines: {node: '>=0.10.0'}-- /wrap-ansi/7.0.0:- resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}- engines: {node: '>=10'}- dependencies:- ansi-styles: 4.3.0- string-width: 4.2.2- strip-ansi: 6.0.0dev: true- optional: true/wrappy/1.0.2:resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=}- /write-file-atomic/3.0.3:- resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==}- dependencies:- imurmurhash: 0.1.4- is-typedarray: 1.0.0- signal-exit: 3.0.3- typedarray-to-buffer: 3.1.5- dev: true-- /write/1.0.3:- resolution: {integrity: sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==}- engines: {node: '>=4'}- dependencies:- mkdirp: 0.5.5- dev: true-- /ws/5.2.2:- resolution: {integrity: sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==}- dependencies:- async-limiter: 1.0.1- dev: true- optional: true-- /ws/7.4.4:- resolution: {integrity: sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==}- engines: {node: '>=8.3.0'}- peerDependencies:- bufferutil: ^4.0.1- utf-8-validate: ^5.0.2- peerDependenciesMeta:- bufferutil:- optional: true- utf-8-validate:- optional: true- dev: true-- /ws/7.4.4_c70f8fc5586dd378b8c866035dbe710b:- resolution: {integrity: sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==}- engines: {node: '>=8.3.0'}- peerDependencies:- bufferutil: ^4.0.1- utf-8-validate: ^5.0.2- peerDependenciesMeta:- bufferutil:- optional: true- utf-8-validate:- optional: true- dependencies:- bufferutil: 4.0.3- utf-8-validate: 5.0.4- dev: false-- /xdg-basedir/4.0.0:- resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==}- engines: {node: '>=8'}- dev: true-- /xml-name-validator/3.0.0:- resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==}- dev: false-- /xmlchars/2.2.0:- resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}- dev: false-/xtend/4.0.2:resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}engines: {node: '>=0.4'}-- /y18n/5.0.8:- resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}- engines: {node: '>=10'}- dev: true- optional: true-- /yallist/3.1.1:- resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}dev: true/yallist/4.0.0:resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}+ dev: true/yaml/1.10.2:resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}engines: {node: '>= 6'}dev: true-- /yargs-parser/20.2.7:- resolution: {integrity: sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==}- engines: {node: '>=10'}- dev: true- optional: true-- /yargs/16.2.0:- resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}- engines: {node: '>=10'}- dependencies:- cliui: 7.0.4- escalade: 3.1.1- get-caller-file: 2.0.5- require-directory: 2.1.1- string-width: 4.2.2- y18n: 5.0.8- yargs-parser: 20.2.7- dev: true- optional: true-- /yauzl/2.10.0:- resolution: {integrity: sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=}- dependencies:- buffer-crc32: 0.2.13- fd-slicer: 1.1.0- dev: true-- /ylru/1.2.1:- resolution: {integrity: sha512-faQrqNMzcPCHGVC2aaOINk13K+aaBDUPjGWl0teOXywElLjyVAB6Oe2jj62jHYtwsU49jXhScYbvPENK+6zAvQ==}- engines: {node: '>= 4.0.0'}- dev: truediff --git a/postcss.config.cjs b/postcss.config.cjsnew file mode 100644index 0000000000..fba8830b23--- /dev/null+++ b/postcss.config.cjs@@ -0,0 +1,18 @@+const tailwindcss = require('tailwindcss');+const autoprefixer = require('autoprefixer');+const cssnano = require('cssnano');++const mode = process.env.NODE_ENV;+const dev = mode === 'development';++module.exports = {+ plugins: [+ tailwindcss,+ autoprefixer,++ !dev &&+ cssnano({+ preset: 'default'+ })+ ]+};diff --git a/postcss.config.js b/postcss.config.jsdeleted file mode 100644index 996b135cf6..0000000000--- a/postcss.config.js+++ /dev/null@@ -1,7 +0,0 @@-module.exports = {- plugins: [- require('postcss-import'),- require('tailwindcss'),- require('postcss-preset-env')({ stage: 1 })- ]-}diff --git a/public/bye.html b/public/bye.htmldeleted file mode 100644index 6b279a3773..0000000000--- a/public/bye.html+++ /dev/null@@ -1,3 +0,0 @@-<script>- window.close();-</script>diff --git a/routify.config.js b/routify.config.jsdeleted file mode 100644index 7c4e2434de..0000000000--- a/routify.config.js+++ /dev/null@@ -1,5 +0,0 @@-module.exports = {- routifyDir: '.routify',- dynamicImports: true,- extensions: ['svelte']-}diff --git a/src/App.svelte b/src/App.sveltedeleted file mode 100644index 77a76d6b3b..0000000000--- a/src/App.svelte+++ /dev/null@@ -1,82 +0,0 @@-<script>- import { SvelteToast } from "@zerodevx/svelte-toast";- import { Router } from "@roxi/routify";- import { routes } from "../.routify/routes";- const options = {- duration: 2000- };-</script>--<style lang="postcss">- :global(.main) {- width: calc(100% - 4rem);- margin-left: 4rem;- }- :global(._toastMsg) {- @apply text-sm font-bold !important;- }- :global(._toastItem) {- @apply w-full border-l-2 border-green-600 !important;- }- :global(._toastBtn) {- @apply text-xs !important;- }- :global(._toastBtn:hover) {- @apply bg-gray-500 !important;- }- :global(.icon) {- @apply text-white rounded p-2 transition duration-100 !important;- }- :global(.icon:hover) {- @apply bg-warmGray-700 !important;- }- :global(input) {- @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none border border-transparent !important;- }- :global(input:hover) {- @apply bg-warmGray-700 !important;- }- :global(textarea) {- @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none resize-none !important;- }- :global(textarea:hover) {- @apply bg-warmGray-700 !important;- }- :global(select) {- @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none !important;- }- :global(select:hover) {- @apply bg-warmGray-700 !important;- }- :global(label) {- @apply text-left text-base font-bold text-warmGray-400 !important;- }- :global(button) {- @apply outline-none !important;- }- :global(.button) {- @apply rounded text-sm font-bold transition-all duration-100 !important;- }- :global(.h-271) {- min-height: 271px !important;- }- :global(.repository-select-search .listItem .item),- :global(.repository-select-search .empty) {- @apply text-sm py-3 font-bold bg-warmGray-800 text-white cursor-pointer border-none hover:bg-warmGray-700 !important;- }-- :global(.repository-select-search .listContainer) {- @apply bg-transparent !important;- }-- :global(.repository-select-search .clearSelect) {- @apply text-white cursor-pointer !important;- }-- :global(.repository-select-search .selectedItem) {- @apply text-white relative cursor-pointer font-bold text-sm flex items-center !important;- }-</style>--<SvelteToast options="{options}" />-<Router routes="{routes}" />diff --git a/src/app.html b/src/app.htmlnew file mode 100644index 0000000000..cf2632777d--- /dev/null+++ b/src/app.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <link rel="icon" href="/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <title>Coolify</title>+ <link rel="dns-prefetch" href="https://cdn.coollabs.io/" />+ <link rel="preconnect" href="https://cdn.coollabs.io/" crossorigin="" />+ <link rel="stylesheet" href="https://cdn.coollabs.io/fonts/montserrat/montserrat.css" />+ <link rel="stylesheet" href="https://cdn.coollabs.io/css/microtip-0.2.2.min.css" />+ %svelte.head%+ </head>+ <body>+ <div id="svelte">%svelte.body%</div>+ </body>+</html>diff --git a/src/app.postcss b/src/app.postcssnew file mode 100644index 0000000000..a23ba9216f--- /dev/null+++ b/src/app.postcss@@ -0,0 +1,141 @@+@tailwind base;+@tailwind components;+@tailwind utilities;++html {+ height: 100%;+}+body {+ background-color: rgb(22, 22, 22);+ min-height: 100vh;+ overflow-x: hidden;+ @apply text-white;+}++:root {+ --toastBackground: rgba(41, 37, 36, 0.8);+ --toastProgressBackground: transparent;+ --toastFont: 'Inter';+}++.border-gradient {+ border-bottom: 2px solid transparent;+ border-image: linear-gradient(+ 0.25turn,+ rgba(255, 249, 34),+ rgba(255, 0, 128),+ rgba(56, 2, 155, 0)+ );+ border-image-slice: 1;+}+.border-gradient-full {+ border: 4px solid transparent;+ border-image: linear-gradient(+ 0.25turn,+ rgba(255, 249, 34),+ rgba(255, 0, 128),+ rgba(56, 2, 155, 0)+ );+ border-image-slice: 1;+}++[aria-label][role~='tooltip']::after {+ background: rgba(41, 37, 36, 0.9);+ color: white;+ font-family: 'Inter';+ font-size: 16px;+ font-weight: 600;+ white-space: normal;+}++[role~='tooltip'][data-microtip-position|='bottom']::before {+ background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E')+ no-repeat;+}++[role~='tooltip'][data-microtip-position|='top']::before {+ background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E')+ no-repeat;+}+[role~='tooltip'][data-microtip-position='right']::before {+ background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E')+ no-repeat;+}++[role~='tooltip'][data-microtip-position='left']::before {+ background: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E')+ no-repeat;+}++.main {+ width: calc(100% - 4rem);+ margin-left: 4rem;+}+._toastMsg {+ @apply text-sm font-bold !important;+}+._toastItem {+ @apply w-full border-l-2 border-green-600 !important;+}+._toastBtn {+ @apply text-xs !important;+}+._toastBtn:hover {+ @apply bg-gray-500 !important;+}+.icon {+ @apply text-white rounded p-2 transition duration-100;+}+.icon:hover {+ @apply bg-warmGray-700;+}+input {+ @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none border border-transparent !important;+}+input:hover {+ @apply bg-warmGray-700 !important;+}+textarea {+ @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none resize-none !important;+}+textarea:hover {+ @apply bg-warmGray-700 !important;+}+select {+ @apply text-sm rounded py-2 px-6 font-bold bg-warmGray-800 text-white transition duration-150 outline-none !important;+}+select:hover {+ @apply bg-warmGray-700 !important;+}+label {+ @apply text-left text-base font-bold text-warmGray-400 !important;+}+button {+ @apply outline-none !important;+}+.button {+ @apply rounded text-sm font-bold transition-all duration-100 !important;+}+.h-271 {+ min-height: 271px !important;+}+.repository-select-search .listItem .item,+.repository-select-search .empty {+ @apply text-sm py-3 font-bold bg-warmGray-800 text-white cursor-pointer border-none hover:bg-warmGray-700 !important;+}++.repository-select-search .listContainer {+ @apply bg-transparent !important;+}++.repository-select-search .clearSelect {+ @apply text-white cursor-pointer !important;+}++.repository-select-search .selectedItem {+ @apply text-white relative cursor-pointer font-bold text-sm flex items-center !important;+}+.selectContainer {+ background: transparent !important;+ @apply border-0 !important;+}diff --git a/src/components/Application/ActiveTab/General.svelte b/src/components/Application/ActiveTab/General.sveltenew file mode 100644index 0000000000..83d3d01411--- /dev/null+++ b/src/components/Application/ActiveTab/General.svelte@@ -0,0 +1,312 @@+<script>+ import { application } from '$store';+ import { onMount } from 'svelte';+ import TooltipInfo from '$components/TooltipInfo.svelte';+ let domainInput;+ const buildpacks = {+ static: {+ port: {+ active: false,+ number: 80+ },+ build: true+ },+ nodejs: {+ port: {+ active: true,+ number: 3000+ },+ build: true+ },+ vuejs: {+ port: {+ active: false,+ number: 80+ },+ build: true+ },+ nuxtjs: {+ port: {+ active: true,+ number: 3000+ },+ build: true+ },+ react: {+ port: {+ active: false,+ number: 80+ },+ build: true+ },+ nextjs: {+ port: {+ active: true,+ number: 3000+ },+ build: true+ },+ gatsby: {+ port: {+ active: true,+ number: 3000+ },+ build: true+ },+ svelte: {+ port: {+ active: false,+ number: 80+ },+ build: true+ },+ php: {+ port: {+ active: false,+ number: 80+ },+ build: false+ },+ rust: {+ port: {+ active: true,+ number: 3000+ },+ build: false+ },+ docker: {+ port: {+ active: true,+ number: 3000+ },+ build: false+ }+ };+ function selectBuildPack(event) {+ if (event.target.innerText === 'React/Preact') {+ $application.build.pack = 'react';+ } else {+ $application.build.pack = event.target.innerText.replace(/\./g, '').toLowerCase();+ }+ }+ onMount(() => {+ if(!$application.publish.domain) domainInput.focus();+ });+</script>++<div>+ <div class="grid grid-cols-1 text-sm max-w-4xl md:mx-auto mx-6 pb-16 auto-cols-max ">+ <div class="text-2xl font-bold border-gradient w-40">Build Packs</div>+ <div class="flex font-bold flex-wrap justify-center pt-10">+ <div+ class={$application.build.pack === 'static'+ ? 'buildpack bg-red-500'+ : 'buildpack hover:border-red-500'}+ on:click={selectBuildPack}+ >+ Static+ </div>+ <div+ class={$application.build.pack === 'nodejs'+ ? 'buildpack bg-emerald-600'+ : 'buildpack hover:border-emerald-600'}+ on:click={selectBuildPack}+ >+ NodeJS+ </div>+ <div+ class={$application.build.pack === 'vuejs'+ ? 'buildpack bg-green-500'+ : 'buildpack hover:border-green-500'}+ on:click={selectBuildPack}+ >+ VueJS+ </div>+ <div+ class={$application.build.pack === 'nuxtjs'+ ? 'buildpack bg-green-500'+ : 'buildpack hover:border-green-500'}+ on:click={selectBuildPack}+ >+ NuxtJS+ </div>+ <div+ class={$application.build.pack === 'react'+ ? 'buildpack bg-gradient-to-r from-blue-500 to-purple-500'+ : 'buildpack hover:border-blue-500'}+ on:click={selectBuildPack}+ >+ React/Preact+ </div>+ <div+ class={$application.build.pack === 'nextjs'+ ? 'buildpack bg-blue-500'+ : 'buildpack hover:border-blue-500'}+ on:click={selectBuildPack}+ >+ NextJS+ </div>+ <div+ class={$application.build.pack === 'gatsby'+ ? 'buildpack bg-blue-500'+ : 'buildpack hover:border-blue-500'}+ on:click={selectBuildPack}+ >+ Gatsby+ </div>+ <div+ class={$application.build.pack === 'svelte'+ ? 'buildpack bg-orange-600'+ : 'buildpack hover:border-orange-600'}+ on:click={selectBuildPack}+ >+ Svelte+ </div>+ <div+ class={$application.build.pack === 'php'+ ? 'buildpack bg-indigo-500'+ : 'buildpack hover:border-indigo-500'}+ on:click={selectBuildPack}+ >+ PHP+ </div>+ <div+ class={$application.build.pack === 'rust'+ ? 'buildpack bg-pink-500'+ : 'buildpack hover:border-pink-500'}+ on:click={selectBuildPack}+ >+ Rust+ </div>+ <div+ class={$application.build.pack === 'docker'+ ? 'buildpack bg-purple-500'+ : 'buildpack hover:border-purple-500'}+ on:click={selectBuildPack}+ >+ Docker+ </div>+ </div>+ </div>+ <div class="text-2xl font-bold border-gradient w-52">General settings</div>+ <div class="grid grid-cols-1 max-w-2xl md:mx-auto mx-6 justify-center items-center pt-10">+ <div class="grid grid-flow-col gap-2 items-center pb-6">+ <div class="grid grid-flow-row">+ <label for="Domain" class="">Domain</label>+ <input+ bind:this={domainInput}+ class="border-2"+ class:placeholder-red-500={$application.publish.domain == null ||+ $application.publish.domain == ''}+ class:border-red-500={$application.publish.domain == null ||+ $application.publish.domain == ''}+ id="Domain"+ bind:value={$application.publish.domain}+ placeholder="eg: coollabs.io (without www)"+ />+ </div>+ <div class="grid grid-flow-row">+ <label for="Path"+ >Path <TooltipInfo+ label={`Path to deploy your application on your domain. eg: /api means it will be deployed to -> https://${+ $application.publish.domain || '<yourdomain>'+ }/api`}+ /></label+ >+ <input id="Path" bind:value={$application.publish.path} placeholder="/" />+ </div>+ </div>+ <label for="Port" class:text-warmGray-800={!buildpacks[$application.build.pack].port.active}+ >Port</label+ >+ <input+ disabled={!buildpacks[$application.build.pack].port.active}+ id="Port"+ class:bg-warmGray-900={!buildpacks[$application.build.pack].port.active}+ class:text-warmGray-900={!buildpacks[$application.build.pack].port.active}+ class:placeholder-warmGray-800={!buildpacks[$application.build.pack].port.active}+ class:hover:bg-warmGray-900={!buildpacks[$application.build.pack].port.active}+ class:cursor-not-allowed={!buildpacks[$application.build.pack].port.active}+ bind:value={$application.publish.port}+ placeholder={buildpacks[$application.build.pack].port.number}+ />+ <div class="grid grid-flow-col gap-2 items-center pt-6 pb-12">+ <div class="grid grid-flow-row">+ <label for="baseDir"+ >Base Directory <TooltipInfo+ label="The directory to use as base for every command (could be useful if you have a monorepo)."+ /></label+ >+ <input id="baseDir" bind:value={$application.build.directory} placeholder="eg: sourcedir" />+ </div>+ <div class="grid grid-flow-row">+ <label for="publishDir"+ >Publish Directory <TooltipInfo+ label="The directory to deploy after running the build command. eg: dist, _site, public."+ /></label+ >+ <input+ id="publishDir"+ bind:value={$application.publish.directory}+ placeholder="eg: dist, _site, public"+ />+ </div>+ </div>+ </div>+ <div+ class="text-2xl font-bold w-40"+ class:border-gradient={buildpacks[$application.build.pack].build}+ class:text-warmGray-800={!buildpacks[$application.build.pack].build}+ >+ Commands+ </div>+ <div class=" max-w-2xl md:mx-auto mx-6 justify-center items-center pt-10 pb-32">+ <div class="grid grid-flow-col gap-2 items-center">+ <div class="grid grid-flow-row">+ <label+ for="installCommand"+ class:text-warmGray-800={!buildpacks[$application.build.pack].build}+ >Install Command <TooltipInfo+ label="Command to run for installing dependencies. eg: yarn install."+ />+ </label>++ <input+ class="mb-6"+ class:bg-warmGray-900={!buildpacks[$application.build.pack].build}+ class:text-warmGray-900={!buildpacks[$application.build.pack].build}+ class:placeholder-warmGray-800={!buildpacks[$application.build.pack].build}+ class:hover:bg-warmGray-900={!buildpacks[$application.build.pack].build}+ class:cursor-not-allowed={!buildpacks[$application.build.pack].build}+ id="installCommand"+ bind:value={$application.build.command.installation}+ placeholder="eg: yarn install"+ />+ <label+ for="buildCommand"+ class:text-warmGray-800={!buildpacks[$application.build.pack].build}+ >Build Command <TooltipInfo+ label="Command to run for building your application. If empty, no build phase initiated in the deploy process."+ /></label+ >+ <input+ class="mb-6"+ class:bg-warmGray-900={!buildpacks[$application.build.pack].build}+ class:text-warmGray-900={!buildpacks[$application.build.pack].build}+ class:placeholder-warmGray-800={!buildpacks[$application.build.pack].build}+ class:hover:bg-warmGray-900={!buildpacks[$application.build.pack].build}+ class:cursor-not-allowed={!buildpacks[$application.build.pack].build}+ id="buildCommand"+ bind:value={$application.build.command.build}+ placeholder="eg: yarn build"+ />+ </div>+ </div>+ </div>+</div>++<style lang="postcss">+ .buildpack {+ @apply px-6 py-2 mx-2 my-2 bg-warmGray-800 w-48 ease-in-out transform hover:scale-105 text-center rounded border-2 border-transparent border-dashed cursor-pointer transition duration-100;+ }+</style>diff --git a/src/components/Application/Configuration/ActiveTab/Secrets.svelte b/src/components/Application/ActiveTab/Secrets.sveltesimilarity index 98%rename from src/components/Application/Configuration/ActiveTab/Secrets.svelterename to src/components/Application/ActiveTab/Secrets.svelteindex 5e267f8f32..27ff83d06e 100644--- a/src/components/Application/Configuration/ActiveTab/Secrets.svelte+++ b/src/components/Application/ActiveTab/Secrets.svelte@@ -1,5 +1,5 @@<script>- import { application } from "@store";+ import { application } from "$store";let secret = {name: null,diff --git a/src/components/Application/Branches.svelte b/src/components/Application/Branches.sveltenew file mode 100644index 0000000000..feb25d790d--- /dev/null+++ b/src/components/Application/Branches.svelte@@ -0,0 +1,46 @@+<script>+ import { page } from '$app/stores';++ export let loading, branches;+ import { application } from '$store';+ import Select from 'svelte-select';++ const selectedValue = $page.path !== '/application/new' && $application.repository.branch;++ function handleSelect(event) {+ $application.repository.branch = null;+ setTimeout(() => {+ $application.repository.branch = event.detail.value;+ }, 1);+ }+</script>++{#if loading}+ <div class="grid grid-cols-1">+ <label for="branch">Branch</label>+ <div class="repository-select-search col-span-2">+ <Select+ containerClasses="w-full border-none bg-transparent"+ placeholder="Loading branches..."+ isDisabled+ />+ </div>+ </div>+{:else}+ <div class="grid grid-cols-1">+ <label for="branch">Branch</label>+ <div class="repository-select-search col-span-2">+ <Select+ containerClasses="w-full border-none bg-transparent"+ on:select={handleSelect}+ {selectedValue}+ isClearable={false}+ items={branches.map((b) => ({ label: b.name, value: b.name }))}+ showIndicator={$page.path === '/application/new'}+ noOptionsMessage="No branches found"+ placeholder="Select a branch"+ isDisabled={$page.path !== '/application/new'}+ />+ </div>+ </div>+{/if}diff --git a/src/components/Application/Configuration.svelte b/src/components/Application/Configuration.sveltenew file mode 100644index 0000000000..91f2d181cc--- /dev/null+++ b/src/components/Application/Configuration.svelte@@ -0,0 +1,186 @@+<script lang="ts">+ import { goto } from '$app/navigation';+ import { request } from '$lib/api/request';+ import { session } from '$app/stores';+ import { githubRepositories, application, githubInstallations } from '$store';++ import { fade } from 'svelte/transition';+ import Loading from '$components/Loading.svelte';++ import { browser } from '$app/env';+ import Branches from '$components/Application/Branches.svelte';+ import Tabs from '$components/Application/Tabs.svelte';+ import Repositories from '$components/Application/Repositories.svelte';+ import Login from '$components/Application/Login.svelte';+ let loading = {+ github: false,+ branches: false+ };+ let branches = [];+ let relogin = false;+ function dashify(str: string, options?: any) {+ if (typeof str !== 'string') return str;+ return str+ .trim()+ .replace(/\W/g, (m) => (/[À-ž]/.test(m) ? m : '-'))+ .replace(/^-+|-+$/g, '')+ .replace(/-{2,}/g, (m) => (options && options.condense ? '-' : m))+ .toLowerCase();+ }+ async function getGithubRepos(id, page) {+ return await request(+ `https://api.github.com/user/installations/${id}/repositories?per_page=100&page=${page}`,+ $session+ );+ }+ async function loadGithubRepositories(force) {+ if ($githubRepositories.length > 0 && !force) {+ $application.github.installation.id = $githubInstallations.id;+ $application.github.app.id = $githubInstallations.app_id;+ const foundRepositoryOnGithub = $githubRepositories.find(+ (r) =>+ r.full_name === `${$application.repository.organization}/${$application.repository.name}`+ );++ if (foundRepositoryOnGithub) {+ $application.repository.id = foundRepositoryOnGithub.id;+ $application.repository.organization = foundRepositoryOnGithub.owner.login;+ $application.repository.name = foundRepositoryOnGithub.name;+ }+ return;+ } else {+ loading.github = true;+ let installations = [];+ try {+ const data = await request('https://api.github.com/user/installations', $session);+ installations = data.installations;+ } catch (error) {+ relogin = true;+ console.log(error);+ return false;+ }+ if (installations.length === 0) {+ relogin = true;+ return false;+ }+ $application.github.installation.id = installations[0].id;+ $application.github.app.id = installations[0].app_id;+ $githubInstallations = installations[0];++ try {+ let page = 1;+ let userRepos = 0;+ const data = await getGithubRepos($application.github.installation.id, page);+ $githubRepositories = $githubRepositories.concat(data.repositories);+ userRepos = data.total_count;+ if (userRepos > $githubRepositories.length) {+ while (userRepos > $githubRepositories.length) {+ page = page + 1;+ const repos = await getGithubRepos($application.github.installation.id, page);+ $githubRepositories = $githubRepositories.concat(repos.repositories);+ }+ }+ const foundRepositoryOnGithub = $githubRepositories.find(+ (r) =>+ r.full_name ===+ `${$application.repository.organization}/${$application.repository.name}`+ );+ if (foundRepositoryOnGithub) {+ $application.repository.id = foundRepositoryOnGithub.id;+ await loadBranches();+ }+ } catch (error) {+ return false;+ } finally {+ loading.github = false;+ }+ }+ }+ async function loadBranches() {+ loading.branches = true;+ const selectedRepository = $githubRepositories.find((r) => r.id === $application.repository.id);++ if (selectedRepository) {+ $application.repository.organization = selectedRepository.owner.login;+ $application.repository.name = selectedRepository.name;+ }++ branches = await request(+ `https://api.github.com/repos/${$application.repository.organization}/${$application.repository.name}/branches`,+ $session+ );+ loading.branches = false;+ }++ async function modifyGithubAppConfig() {+ if (browser) {+ const left = screen.width / 2 - 1020 / 2;+ const top = screen.height / 2 - 618 / 2;+ const newWindow = open(+ `https://github.com/apps/${dashify(+ import.meta.env.VITE_GITHUB_APP_NAME+ )}/installations/new`,+ 'Install App',+ 'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' ++ top ++ ', left=' ++ left ++ ', toolbar=0, menubar=0, status=0'+ );+ const timer = setInterval(async () => {+ if (newWindow.closed) {+ clearInterval(timer);+ loading.github = true;++ if ($application.repository.name) {+ try {+ const config = await request(`/api/v1/application/config`, $session, {+ body: {+ name: $application.repository.name,+ organization: $application.repository.organization,+ branch: $application.repository.branch+ }+ });+ $application = { ...config };+ } catch (error) {+ browser && goto('/dashboard/applications', { replaceState: true });+ }+ }++ branches = [];+ $githubRepositories = [];+ await loadGithubRepositories(true);+ }+ }, 100);+ }+ }++</script>++<div in:fade={{ duration: 100 }}>+ {#if relogin}+ <Login />+ {:else}+ {#await loadGithubRepositories(false)}+ <Loading github githubLoadingText="Loading repositories..." />+ {:then}+ {#if loading.github}+ <Loading github githubLoadingText="Loading repositories..." />+ {:else}+ <div class="space-y-2 max-w-4xl mx-auto px-6" in:fade={{ duration: 100 }}>+ <Repositories+ on:loadBranches={loadBranches}+ on:modifyGithubAppConfig={modifyGithubAppConfig}+ />+ {#if $application.repository.organization}+ <Branches loading={loading.branches} {branches} />+ {/if}++ {#if $application.repository.branch}+ <Tabs />+ {/if}+ </div>+ {/if}+ {/await}+ {/if}+</div>diff --git a/src/components/Application/Configuration/ActiveTab/General.svelte b/src/components/Application/Configuration/ActiveTab/General.sveltedeleted file mode 100644index fa2d894e87..0000000000--- a/src/components/Application/Configuration/ActiveTab/General.svelte+++ /dev/null@@ -1,340 +0,0 @@-<style lang="postcss">- .buildpack {- @apply px-6 py-2 mx-2 my-2 bg-warmGray-800 w-48 ease-in-out transform hover:scale-105 text-center rounded border-2 border-transparent border-dashed cursor-pointer transition duration-100;- }-</style>--<script>- import { application } from "@store";-import { onMount } from "svelte";- import TooltipInfo from "../../../Tooltip/TooltipInfo.svelte";- let domainInput;- const buildpacks = {- static: {- port: {- active: false,- number: 80,- },- build: true,- },- nodejs: {- port: {- active: true,- number: 3000,- },- build: true,- },- vuejs: {- port: {- active: false,- number: 80,- },- build: true,- },- nuxtjs: {- port: {- active: true,- number: 3000,- },- build: true,- },- react: {- port: {- active: false,- number: 80,- },- build: true,- },- nextjs: {- port: {- active: true,- number: 3000,- },- build: true,- },- gatsby: {- port: {- active: true,- number: 3000,- },- build: true,- },- svelte: {- port: {- active: false,- number: 80,- },- build: true,- },- php: {- port: {- active: false,- number: 80,- },- build: false,- },- rust: {- port: {- active: true,- number: 3000,- },- build: false,- },- docker: {- port: {- active: true,- number: 3000,- },- build: false,- },- };- function selectBuildPack(event) {- if (event.target.innerText === "React/Preact") {- $application.build.pack = "react";- } else {- $application.build.pack = event.target.innerText- .replace(/\./g, "")- .toLowerCase();- }- }- onMount(()=> {- domainInput.focus();- })-</script>--<div>- <div- class="grid grid-cols-1 text-sm max-w-4xl md:mx-auto mx-6 pb-16 auto-cols-max "- >- <div class="text-2xl font-bold border-gradient w-40">Build Packs</div>- <div class="flex font-bold flex-wrap justify-center pt-10">- <div- class="{$application.build.pack === 'static'- ? 'buildpack bg-red-500'- : 'buildpack hover:border-red-500'}"- on:click="{selectBuildPack}"- >- Static- </div>- <div- class="{$application.build.pack === 'nodejs'- ? 'buildpack bg-emerald-600'- : 'buildpack hover:border-emerald-600'}"- on:click="{selectBuildPack}"- >- NodeJS- </div>- <div- class="{$application.build.pack === 'vuejs'- ? 'buildpack bg-green-500'- : 'buildpack hover:border-green-500'}"- on:click="{selectBuildPack}"- >- VueJS- </div>- <div- class="{$application.build.pack === 'nuxtjs'- ? 'buildpack bg-green-500'- : 'buildpack hover:border-green-500'}"- on:click="{selectBuildPack}"- >- NuxtJS- </div>- <div- class="{$application.build.pack === 'react'- ? 'buildpack bg-gradient-to-r from-blue-500 to-purple-500'- : 'buildpack hover:border-blue-500'}"- on:click="{selectBuildPack}"- >- React/Preact- </div>- <div- class="{$application.build.pack === 'nextjs'- ? 'buildpack bg-blue-500'- : 'buildpack hover:border-blue-500'}"- on:click="{selectBuildPack}"- >- NextJS- </div>- <div- class="{$application.build.pack === 'gatsby'- ? 'buildpack bg-blue-500'- : 'buildpack hover:border-blue-500'}"- on:click="{selectBuildPack}"- >- Gatsby- </div>- <div- class="{$application.build.pack === 'svelte'- ? 'buildpack bg-orange-600'- : 'buildpack hover:border-orange-600'}"- on:click="{selectBuildPack}"- >- Svelte- </div>- <div- class="{$application.build.pack === 'php'- ? 'buildpack bg-indigo-500'- : 'buildpack hover:border-indigo-500'}"- on:click="{selectBuildPack}"- >- PHP- </div>- <div- class="{$application.build.pack === 'rust'- ? 'buildpack bg-pink-500'- : 'buildpack hover:border-pink-500'}"- on:click="{selectBuildPack}"- >- Rust- </div>- <div- class="{$application.build.pack === 'docker'- ? 'buildpack bg-purple-500'- : 'buildpack hover:border-purple-500'}"- on:click="{selectBuildPack}"- >- Docker- </div>- </div>- </div>- <div class="text-2xl font-bold border-gradient w-52">General settings</div>- <div- class="grid grid-cols-1 max-w-2xl md:mx-auto mx-6 justify-center items-center pt-10"- >- <div class="grid grid-flow-col gap-2 items-center pb-6">- <div class="grid grid-flow-row">- <label for="Domain" class="">Domain</label>- <input- bind:this={domainInput}- class="border-2"- class:placeholder-red-500="{$application.publish.domain == null ||- $application.publish.domain == ''}"- class:border-red-500="{$application.publish.domain == null ||- $application.publish.domain == ''}"- id="Domain"- bind:value="{$application.publish.domain}"- placeholder="eg: coollabs.io (without www)"- />- </div>- <div class="grid grid-flow-row">- <label for="Path"- >Path <TooltipInfo- label="{`Path to deploy your application on your domain. eg: /api means it will be deployed to -> https://${- $application.publish.domain || '<yourdomain>'- }/api`}"- /></label- >- <input- id="Path"- bind:value="{$application.publish.path}"- placeholder="/"- />- </div>- </div>- <label- for="Port"- class:text-warmGray-800="{!buildpacks[$application.build.pack].port- .active}">Port</label- >- <input- disabled="{!buildpacks[$application.build.pack].port.active}"- id="Port"- class:bg-warmGray-900="{!buildpacks[$application.build.pack].port.active}"- class:text-warmGray-900="{!buildpacks[$application.build.pack].port- .active}"- class:placeholder-warmGray-800="{!buildpacks[$application.build.pack].port- .active}"- class:hover:bg-warmGray-900="{!buildpacks[$application.build.pack].port- .active}"- class:cursor-not-allowed="{!buildpacks[$application.build.pack].port- .active}"- bind:value="{$application.publish.port}"- placeholder="{buildpacks[$application.build.pack].port.number}"- />- <div class="grid grid-flow-col gap-2 items-center pt-6 pb-12">- <div class="grid grid-flow-row">- <label for="baseDir"- >Base Directory <TooltipInfo- label="The directory to use as base for every command (could be useful if you have a monorepo)."- /></label- >- <input- id="baseDir"- bind:value="{$application.build.directory}"- placeholder="eg: sourcedir"- />- </div>- <div class="grid grid-flow-row">- <label for="publishDir"- >Publish Directory <TooltipInfo- label="The directory to deploy after running the build command. eg: dist, _site, public."- /></label- >- <input- id="publishDir"- bind:value="{$application.publish.directory}"- placeholder="eg: dist, _site, public"- />- </div>- </div>- </div>- <div- class="text-2xl font-bold w-40"- class:border-gradient="{buildpacks[$application.build.pack].build}"- class:text-warmGray-800="{!buildpacks[$application.build.pack].build}"- >- Commands- </div>- <div- class=" max-w-2xl md:mx-auto mx-6 justify-center items-center pt-10 pb-32"- >- <div class="grid grid-flow-col gap-2 items-center">- <div class="grid grid-flow-row">- <label- for="installCommand"- class:text-warmGray-800="{!buildpacks[$application.build.pack].build}"- >Install Command <TooltipInfo- label="Command to run for installing dependencies. eg: yarn install."- />- </label>-- <input- class="mb-6"- class:bg-warmGray-900="{!buildpacks[$application.build.pack].build}"- class:text-warmGray-900="{!buildpacks[$application.build.pack].build}"- class:placeholder-warmGray-800="{!buildpacks[$application.build.pack]- .build}"- class:hover:bg-warmGray-900="{!buildpacks[$application.build.pack]- .build}"- class:cursor-not-allowed="{!buildpacks[$application.build.pack]- .build}"- id="installCommand"- bind:value="{$application.build.command.installation}"- placeholder="eg: yarn install"- />- <label- for="buildCommand"- class:text-warmGray-800="{!buildpacks[$application.build.pack].build}"- >Build Command <TooltipInfo- label="Command to run for building your application. If empty, no build phase initiated in the deploy process."- /></label- >- <input- class="mb-6"- class:bg-warmGray-900="{!buildpacks[$application.build.pack].build}"- class:text-warmGray-900="{!buildpacks[$application.build.pack].build}"- class:placeholder-warmGray-800="{!buildpacks[$application.build.pack]- .build}"- class:hover:bg-warmGray-900="{!buildpacks[$application.build.pack]- .build}"- class:cursor-not-allowed="{!buildpacks[$application.build.pack]- .build}"- id="buildCommand"- bind:value="{$application.build.command.build}"- placeholder="eg: yarn build"- />- </div>- </div>- </div>-</div>diff --git a/src/components/Application/Configuration/Branches.svelte b/src/components/Application/Configuration/Branches.sveltedeleted file mode 100644index 3843d68a59..0000000000--- a/src/components/Application/Configuration/Branches.svelte+++ /dev/null@@ -1,45 +0,0 @@-<script>- export let loading, branches;- import { application, activePage } from "@store";- import Select from "svelte-select";-- const selectedValue =- $activePage.application !== "new" && $application.repository.branch;-- function handleSelect(event) {- $application.repository.branch = null;- setTimeout(() => {- $application.repository.branch = event.detail.value;- }, 1);- }-</script>--{#if loading}- <div class="grid grid-cols-1">- <label for="branch">Branch</label>- <div class="repository-select-search col-span-2">- <Select- containerClasses="w-full border-none bg-transparent"- placeholder="Loading branches..."- isDisabled- />- </div>- </div>-{:else}- <div class="grid grid-cols-1">- <label for="branch">Branch</label>- <div class="repository-select-search col-span-2">- <Select- containerClasses="w-full border-none bg-transparent"- on:select="{handleSelect}"- selectedValue="{selectedValue}"- isClearable="{false}"- items="{branches.map(b => ({ label: b.name, value: b.name }))}"- showIndicator="{$activePage.new}"- noOptionsMessage="No branches found"- placeholder="Select a branch"- isDisabled="{!$activePage.new}"- />- </div>- </div>-{/if}diff --git a/src/components/Application/Configuration/Configuration.svelte b/src/components/Application/Configuration/Configuration.sveltedeleted file mode 100644index 64068bfb1e..0000000000--- a/src/components/Application/Configuration/Configuration.svelte+++ /dev/null@@ -1,263 +0,0 @@-<script>- import { redirect, isActive } from "@roxi/routify";- import { fade } from "svelte/transition";- import {- session,- application,- fetch,- initialApplication,- githubRepositories,- githubInstallations,- activePage,- } from "@store";-- import Login from "./Login.svelte";- import Loading from "../../Loading.svelte";- import Repositories from "./Repositories.svelte";- import Branches from "./Branches.svelte";- import Tabs from "./Tabs.svelte";-- let loading = {- branches: false,- github: false,- };-- let branches = [];- function dashify(str, options) {- if (typeof str !== "string") return str;- return str- .trim()- .replace(/\W/g, m => (/[À-ž]/.test(m) ? m : "-"))- .replace(/^-+|-+$/g, "")- .replace(/-{2,}/g, m => (options && options.condense ? "-" : m))- .toLowerCase();- }-- async function loadBranches() {- loading.branches = true;- if ($activePage.new) $application.repository.branch = null;- const selectedRepository = $githubRepositories.find(- r => r.id === $application.repository.id,- );-- if (selectedRepository) {- $application.repository.organization = selectedRepository.owner.login;- $application.repository.name = selectedRepository.name;- }-- branches = await $fetch(- `https://api.github.com/repos/${$application.repository.organization}/${$application.repository.name}/branches`,- );- loading.branches = false;- }-- async function getGithubRepos(id, page) {- const data = await $fetch(- `https://api.github.com/user/installations/${id}/repositories?per_page=100&page=${page}`,- );-- return data;- }-- async function loadGithub() {- if ($githubRepositories.length > 0) {- $application.github.installation.id = $githubInstallations.id;- $application.github.app.id = $githubInstallations.app_id;- const foundRepositoryOnGithub = $githubRepositories.find(- r =>- r.full_name ===- `${$application.repository.organization}/${$application.repository.name}`,- );-- if (foundRepositoryOnGithub) {- $application.repository.id = foundRepositoryOnGithub.id;- $application.repository.organization = foundRepositoryOnGithub.owner.login;- $application.repository.name = foundRepositoryOnGithub.name;- // await loadBranches();- }- return;- }- loading.github = true;- try {- const { installations } = await $fetch(- "https://api.github.com/user/installations",- );- if (installations.length === 0) {- return false;- }- $application.github.installation.id = installations[0].id;- $application.github.app.id = installations[0].app_id;- $githubInstallations = installations[0];-- let page = 1;- let userRepos = 0;- const data = await getGithubRepos(- $application.github.installation.id,- page,- );-- $githubRepositories = $githubRepositories.concat(data.repositories);- userRepos = data.total_count;-- if (userRepos > $githubRepositories.length) {- while (userRepos > $githubRepositories.length) {- page = page + 1;- const repos = await getGithubRepos(- $application.github.installation.id,- page,- );- $githubRepositories = $githubRepositories.concat(repos.repositories);- }- }- const foundRepositoryOnGithub = $githubRepositories.find(- r =>- r.full_name ===- `${$application.repository.organization}/${$application.repository.name}`,- );-- if (foundRepositoryOnGithub) {- $application.repository.id = foundRepositoryOnGithub.id;- await loadBranches();- }- } catch (error) {- return false;- } finally {- loading.github = false;- }- }- function modifyGithubAppConfig() {- const left = screen.width / 2 - 1020 / 2;- const top = screen.height / 2 - 618 / 2;- const newWindow = open(- `https://github.com/apps/${dashify(- import.meta.env.VITE_GITHUB_APP_NAME,- )}/installations/new`,- "Install App",- "resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=" +- top +- ", left=" +- left +- ", toolbar=0, menubar=0, status=0",- );- const timer = setInterval(async () => {- if (newWindow.closed) {- clearInterval(timer);- loading.github = true;- if (!$activePage.new) {- try {- const config = await $fetch(`/api/v1/config`, {- body: {- name: $application.repository.name,- organization: $application.repository.organization,- branch: $application.repository.branch,- },- });- $application = { ...config };- } catch (error) {- $redirect("/dashboard/applications");- }- } else {- $application = JSON.parse(JSON.stringify(initialApplication));- }- branches = [];- $githubRepositories = [];- await loadGithub();- }- }, 100);- }-</script>--{#if !$activePage.new}- <div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- {$application.publish.domain- ? `${$application.publish.domain}${- $application.publish.path !== "/" ? $application.publish.path : ""- }`- : "example.com"}- <a- target="_blank"- class="icon mx-2"- href="{'https://' +- $application.publish.domain +- $application.publish.path}"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"- ></path>- </svg></a- >-- <a- target="_blank"- class="icon"- href="{`https://github.com/${$application.repository.organization}/${$application.repository.name}`}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><path- d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"- ></path></svg- ></a- >- </div>- </div>-{:else if $activePage.new}- <div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- New Application- </div>- </div>-{/if}--<div in:fade="{{ duration: 100 }}">- {#if !$session.githubAppToken}- <Login />- {:else}- {#await loadGithub()}- <Loading github githubLoadingText="Loading repositories..." />- {:then}- {#if loading.github}- <Loading github githubLoadingText="Loading repositories..." />- {:else}- <div- class="space-y-2 max-w-4xl mx-auto px-6"- in:fade="{{ duration: 100 }}"- >- <Repositories- on:loadBranches="{loadBranches}"- on:modifyGithubAppConfig="{modifyGithubAppConfig}"- />- {#if $application.repository.organization}- <Branches loading="{loading.branches}" branches="{branches}" />- {/if}-- {#if $application.repository.branch}- <Tabs />- {/if}- </div>- {/if}- {/await}- {/if}-</div>diff --git a/src/components/Application/Configuration/Login.svelte b/src/components/Application/Configuration/Login.sveltedeleted file mode 100644index cb16981eac..0000000000--- a/src/components/Application/Configuration/Login.svelte+++ /dev/null@@ -1,50 +0,0 @@-<script>- import { session } from "@store";- function login() {- const left = screen.width / 2 - 1020 / 2;- const top = screen.height / 2 - 618 / 2;- const newWindow = open(- `https://github.com/login/oauth/authorize?client_id=${- import.meta.env.VITE_GITHUB_APP_CLIENTID- }`,- "Authenticate",- "resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=" +- top +- ", left=" +- left +- ", toolbar=0, menubar=0, status=0",- );- const timer = setInterval(() => {- if (newWindow.closed) {- clearInterval(timer);- const ghToken = new URL(newWindow.document.URL).searchParams.get(- "ghToken",- );- if (ghToken) {- $session.githubAppToken = ghToken;- }- }- }, 100);- }-</script>--<div class="text-center text-white">- <div class="text-2xl font-bold text-center pb-4">- Choose your Git provider- </div>- <button on:click="{login}" class="hover:scale-110 transform duration-100 transition">- <svg- class="w-16"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><path- d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"- ></path></svg- >- </button>-</div>diff --git a/src/components/Application/Configuration/Repositories.svelte b/src/components/Application/Configuration/Repositories.sveltedeleted file mode 100644index 9f9c73db2e..0000000000--- a/src/components/Application/Configuration/Repositories.svelte+++ /dev/null@@ -1,53 +0,0 @@-<script>- import { createEventDispatcher } from "svelte";- import { application, githubRepositories, activePage } from "@store";- import Select from "svelte-select";- function handleSelect(event) {- $application.build.pack = 'static'- $application.repository.id = parseInt(event.detail.value, 10);- dispatch("loadBranches");- }-- let items = $githubRepositories.map(repo => ({- label: `${repo.owner.login}/${repo.name}`,- value: repo.id.toString(),- }));-- const selectedValue =- !$activePage.new &&- `${$application.repository.organization}/${$application.repository.name}`;-- const dispatch = createEventDispatcher();- const modifyGithubAppConfig = () => dispatch("modifyGithubAppConfig");-</script>--<div class="grid grid-cols-1 pt-4">- {#if $githubRepositories.length !== 0}- <label for="repository">Organization / Repository</label>- <div class="grid grid-cols-3 ">- <div class="repository-select-search col-span-2">- <Select- isFocused="true"- containerClasses="w-full border-none bg-transparent"- on:select="{handleSelect}"- selectedValue="{selectedValue}"- isClearable="{false}"- items="{items}"- showIndicator="{$activePage.new}"- noOptionsMessage="No Repositories found"- placeholder="Select a Repository"- isDisabled="{!$activePage.new}"- />- </div>- <button- class="button col-span-1 ml-2 bg-warmGray-800 hover:bg-warmGray-700 text-white"- on:click="{modifyGithubAppConfig}">Configure on Github</button- >- </div>- {:else}- <button- class="button col-span-1 ml-2 bg-warmGray-800 hover:bg-warmGray-700 text-white py-2"- on:click="{modifyGithubAppConfig}">Add repositories on Github</button- >- {/if}-</div>diff --git a/src/components/Application/Configuration/Tabs.svelte b/src/components/Application/Configuration/Tabs.sveltedeleted file mode 100644index 4c7843936c..0000000000--- a/src/components/Application/Configuration/Tabs.svelte+++ /dev/null@@ -1,153 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- import { onMount } from "svelte";- import { toast } from "@zerodevx/svelte-toast";- import templates from "../../../utils/templates";- import { application, fetch, deployments, activePage } from "@store";- import General from "./ActiveTab/General.svelte";- import Secrets from "./ActiveTab/Secrets.svelte";- import Loading from "../../Loading.svelte";-- let activeTab = {- general: true,- buildStep: false,- secrets: false,- };- function activateTab(tab) {- if (activeTab.hasOwnProperty(tab)) {- activeTab = {- general: false,- buildStep: false,- secrets: false,- };- activeTab[tab] = true;- }- }- async function load() {- const found = $deployments?.applications?.deployed.find(deployment => {- if (- deployment.configuration.repository.organization ===- $application.repository.organization &&- deployment.configuration.repository.name ===- $application.repository.name &&- deployment.configuration.repository.branch ===- $application.repository.branch- ) {- return deployment;- }- });- if (found) {- $application = { ...found.configuration };- if ($activePage.new) {- $activePage.new = false;- toast.push(- "This repository & branch is already defined. Redirecting...",- );- $redirect(`/application/:organization/:name/:branch/configuration`, {- name: $application.repository.name,- organization: $application.repository.organization,- branch: $application.repository.branch,- });- }- return;- }- if (!$activePage.new) {- const config = await $fetch(`/api/v1/config`, {- body: {- name: $application.repository.name,- organization: $application.repository.organization,- branch: $application.repository.branch,- },- });- $application = { ...config };- } else {- try {- const dir = await $fetch(- `https://api.github.com/repos/${$application.repository.organization}/${$application.repository.name}/contents/?ref=${$application.repository.branch}`,- );- const packageJson = dir.find(- f => f.type === "file" && f.name === "package.json",- );- const Dockerfile = dir.find(- f => f.type === "file" && f.name === "Dockerfile",- );- const CargoToml = dir.find(- f => f.type === "file" && f.name === "Cargo.toml",- );-- if (packageJson) {- const { content } = await $fetch(packageJson.git_url);- const packageJsonContent = JSON.parse(atob(content));- const checkPackageJSONContents = dep => {- return (- packageJsonContent?.dependencies?.hasOwnProperty(dep) ||- packageJsonContent?.devDependencies?.hasOwnProperty(dep)- );- };- Object.keys(templates).map(dep => {- if (checkPackageJSONContents(dep)) {- const config = templates[dep];- $application.build.pack = config.pack;- if (config.installation)- $application.build.command.installation = config.installation;- if (config.port) $application.publish.port = config.port;- if (config.directory)- $application.publish.directory = config.directory;-- if (- packageJsonContent.scripts.hasOwnProperty("build") &&- config.build- ) {- $application.build.command.build = config.build;- }- toast.push(`${config.name} detected. Default values set.`);- }- });- } else if (CargoToml) {- $application.build.pack = "rust";- toast.push(`Rust language detected. Default values set.`);- } else if (Dockerfile) {- $application.build.pack = "docker";- toast.push("Custom Dockerfile found. Build pack set to docker.");- }- } catch (error) {- // Nothing detected- }- }- }-</script>--{#await load()}- <Loading github githubLoadingText="Scanning repository..." />-{:then}- <div class="block text-center py-8">- <nav- class="flex space-x-4 justify-center font-bold text-md text-white"- aria-label="Tabs"- >- <div- on:click="{() => activateTab('general')}"- class:text-green-500="{activeTab.general}"- class="px-3 py-2 cursor-pointer hover:bg-warmGray-700 rounded-lg transition duration-100"- >- General- </div>- <div- on:click="{() => activateTab('secrets')}"- class:text-green-500="{activeTab.secrets}"- class="px-3 py-2 cursor-pointer hover:bg-warmGray-700 rounded-lg transition duration-100"- >- Secrets- </div>- </nav>- </div>- <div class="max-w-4xl mx-auto">- <div class="h-full">- {#if activeTab.general}- <General />- {:else if activeTab.secrets}- <Secrets />- {/if}- </div>- </div>-{/await}\ No newline at end of filediff --git a/src/components/Application/Login.svelte b/src/components/Application/Login.sveltenew file mode 100644index 0000000000..38646373ae--- /dev/null+++ b/src/components/Application/Login.svelte@@ -0,0 +1,42 @@+<script>+ function login() {+ const left = screen.width / 2 - 1020 / 2;+ const top = screen.height / 2 - 618 / 2;+ const newWindow = open(+ `https://github.com/login/oauth/authorize?client_id=${+ import.meta.env.VITE_GITHUB_APP_CLIENTID+ }`,+ 'Authenticate',+ 'resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=' ++ top ++ ', left=' ++ left ++ ', toolbar=0, menubar=0, status=0'+ );+ const timer = setInterval(() => {+ if (newWindow.closed) {+ clearInterval(timer);+ location.reload()+ }+ }, 100);+ }+</script>++<div class="text-center text-white">+ <div class="text-2xl font-bold text-center pb-4">Choose your Git provider</div>+ <button on:click={login} class="hover:scale-110 transform duration-100 transition">+ <svg+ class="w-16"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><path+ d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"+ /></svg+ >+ </button>+</div>diff --git a/src/components/Application/Navbar.svelte b/src/components/Application/Navbar.svelteindex da18885037..deb70a44ee 100644--- a/src/components/Application/Navbar.svelte+++ b/src/components/Application/Navbar.svelte@@ -1,195 +1,178 @@<script>- import { params, goto, redirect } from "@roxi/routify";- import {- application,- fetch,- initialApplication,- initConf,- activePage,- } from "@store";- import { onDestroy } from "svelte";- import { toast } from "@zerodevx/svelte-toast";- import Tooltip from "../../components/Tooltip/Tooltip.svelte";+ import { application, initialApplication, initConf } from '$store';+ import { onDestroy } from 'svelte';+ import { toast } from '@zerodevx/svelte-toast';+ import Tooltip from '$components/Tooltip.svelte';+ import { request } from '$lib/api/request';+ import { page, session } from '$app/stores';+ import { goto } from '$app/navigation';+ import { browser } from '$app/env';+ async function removeApplication() {+ await request(`/api/v1/application/remove`, $session, {+ body: {+ organization: $application.repository.organization,+ name: $application.repository.name,+ branch: $application.repository.branch+ }+ });- $application.repository.organization = $params.organization;- $application.repository.name = $params.name;- $application.repository.branch = $params.branch;+ browser && toast.push('Application removed.');+ $application = JSON.parse(JSON.stringify(initialApplication));+ browser && goto(`/dashboard/applications`, { replaceState: true });+ }- async function removeApplication() {- await $fetch(`/api/v1/application/remove`, {- body: {- organization: $params.organization,- name: $params.name,- branch: $params.branch,- },- });+ onDestroy(() => {+ $application = JSON.parse(JSON.stringify(initialApplication));+ });- toast.push("Application removed.");- $application = JSON.parse(JSON.stringify(initialApplication));- $redirect(`/dashboard/applications`);- }-- onDestroy(() => {- $application = JSON.parse(JSON.stringify(initialApplication));- });-- async function deploy() {- try {- toast.push("Checking configuration.");- await $fetch(`/api/v1/application/check`, {- body: $application,- });- const { nickname, name, deployId } = await $fetch(- `/api/v1/application/deploy`,- {- body: $application,- },- );- $application.general.nickname = nickname;- $application.build.container.name = name;- $application.general.deployId = deployId;- $initConf = JSON.parse(JSON.stringify($application));- toast.push("Application deployment queued.");- $redirect(- `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/logs/${$application.general.deployId}`,- );- } catch (error) {- console.log(error);- toast.push(error.error || error || "Ooops something went wrong.");- }- }+ async function deploy() {+ try {+ browser && toast.push('Checking configuration.');+ await request(`/api/v1/application/check`, $session, {+ body: $application+ });+ const { nickname, name, deployId } = await request(`/api/v1/application/deploy`, $session, {+ body: $application+ });+ $application.general.nickname = nickname;+ $application.build.container.name = name;+ $application.general.deployId = deployId;+ $initConf = JSON.parse(JSON.stringify($application));+ if (browser) {+ toast.push('Application deployment queued.');+ goto(+ `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/logs/${$application.general.deployId}`,+ { replaceState: true }+ );+ }+ } catch (error) {+ // console.log(error);+ // toast.push(error.error || error || 'Ooops something went wrong.');+ }+ }</script>-<nav- class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4 z-50"->- <Tooltip position="bottom" label="Deploy">- <button- disabled="{$application.publish.domain === '' ||- $application.publish.domain === null}"- class:cursor-not-allowed="{$application.publish.domain === '' ||- $application.publish.domain === null}"- class:hover:bg-green-500="{$application.publish.domain}"- class:bg-green-600="{$application.publish.domain}"- class:hover:bg-transparent="{$activePage.new}"- class:text-warmGray-700="{$application.publish.domain === '' ||- $application.publish.domain === null}"- class="icon"- on:click="{deploy}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><polyline points="16 16 12 12 8 16"></polyline><line- x1="12"- y1="12"- x2="12"- y2="21"></line><path- d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"- ></path><polyline points="16 16 12 12 8 16"></polyline></svg- >- </button>- </Tooltip>- <Tooltip position="bottom" label="Delete">- <button- disabled="{$application.publish.domain === '' ||- $application.publish.domain === null ||- $activePage.new}"- class:cursor-not-allowed="{$application.publish.domain === '' ||- $application.publish.domain === null ||- $activePage.new}"- class:hover:text-red-500="{$application.publish.domain &&- !$activePage.new}"- class:hover:bg-warmGray-700="{$application.publish.domain &&- !$activePage.new}"- class:hover:bg-transparent="{$activePage.new}"- class:text-warmGray-700="{$application.publish.domain === '' ||- $application.publish.domain === null ||- $activePage.new}"- class="icon"- on:click="{removeApplication}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"- ></path>- </svg>- </button>- </Tooltip>- <div class="border border-warmGray-700 h-8"></div>- <Tooltip position="bottom" label="Logs">- <button- class="icon"- class:text-warmGray-700="{$activePage.new}"- disabled="{$activePage.new}"- class:hover:text-blue-400="{!$activePage.new}"- class:hover:bg-transparent="{$activePage.new}"- class:cursor-not-allowed="{$activePage.new}"- class:text-blue-400="{$activePage.application === 'logs'}"- class:bg-warmGray-700="{$activePage.application === 'logs'}"- on:click="{() =>- $goto(- `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/logs`,- )}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"- ></path>- </svg>- </button>- </Tooltip>- <Tooltip position="bottom-left" label="Configuration">- <button- class="icon hover:text-yellow-400"- disabled="{$activePage.new}"- class:text-yellow-400="{$activePage.application === 'configuration' ||- $activePage.new}"- class:bg-warmGray-700="{$activePage.application === 'configuration' ||- $activePage.new}"- on:click="{() =>- $goto(- `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/configuration`,- )}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"- ></path>- </svg>- </button>- </Tooltip>+<nav class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4 z-50">+ <Tooltip position="bottom" label="Deploy">+ <button+ disabled={$application.publish.domain === '' || $application.publish.domain === null}+ class:cursor-not-allowed={$application.publish.domain === '' ||+ $application.publish.domain === null}+ class:hover:bg-green-500={$application.publish.domain}+ class:bg-green-600={$application.publish.domain}+ class:hover:bg-transparent={!$application.publish.domain && $page.path === '/application/new'}+ class:text-warmGray-700={$application.publish.domain === '' ||+ $application.publish.domain === null}+ class="icon"+ on:click={deploy}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><polyline points="16 16 12 12 8 16" /><line x1="12" y1="12" x2="12" y2="21" /><path+ d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"+ /><polyline points="16 16 12 12 8 16" /></svg+ >+ </button>+ </Tooltip>+ <Tooltip position="bottom" label="Delete">+ <button+ disabled={$application.publish.domain === '' ||+ $application.publish.domain === null ||+ $page.path === '/application/new'}+ class:cursor-not-allowed={$application.publish.domain === '' ||+ $application.publish.domain === null ||+ $page.path === '/application/new'}+ class:hover:text-red-500={$application.publish.domain && $page.path !== '/application/new'}+ class:hover:bg-warmGray-700={$application.publish.domain && $page.path !== '/application/new'}+ class:hover:bg-transparent={$page.path === '/application/new'}+ class:text-warmGray-700={$application.publish.domain === '' ||+ $application.publish.domain === null ||+ $page.path === '/application/new'}+ class="icon"+ on:click={removeApplication}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"+ />+ </svg>+ </button>+ </Tooltip>+ <div class="border border-warmGray-700 h-8" />+ <Tooltip position="bottom" label="Logs">+ <button+ class="icon"+ class:text-warmGray-700={$page.path === '/application/new'}+ disabled={$page.path === '/application/new'}+ class:hover:text-blue-400={$page.path !== '/application/new'}+ class:hover:bg-transparent={$page.path === '/application/new'}+ class:cursor-not-allowed={$page.path === '/application/new'}+ class:text-blue-400={/logs\/*/.test($page.path)}+ class:bg-warmGray-700={/logs\/*/.test($page.path)}+ on:click={() =>+ goto(+ `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/logs`+ )}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"+ />+ </svg>+ </button>+ </Tooltip>+ <Tooltip position="bottom-left" label="Configuration">+ <button+ class="icon hover:text-yellow-400"+ disabled={$page.path === '/application/new'}+ class:text-yellow-400={$page.path.endsWith('configuration') ||+ $page.path === '/application/new'}+ class:bg-warmGray-700={$page.path.endsWith('configuration') ||+ $page.path === '/application/new'}+ on:click={() =>+ goto(+ `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/configuration`+ )}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"+ />+ </svg>+ </button>+ </Tooltip></nav>diff --git a/src/components/Application/Repositories.svelte b/src/components/Application/Repositories.sveltenew file mode 100644index 0000000000..4f8d4fd0a0--- /dev/null+++ b/src/components/Application/Repositories.svelte@@ -0,0 +1,54 @@+<script>+ import { createEventDispatcher } from 'svelte';+ import { application, githubRepositories } from '$store';+ import Select from 'svelte-select';+ import { page } from '$app/stores';+ function handleSelect(event) {+ $application.build.pack = 'static';+ $application.repository.id = parseInt(event.detail.value, 10);+ $application.repository.branch = null+ dispatch('loadBranches');+ }+ const path = $page.path === '/application/new';+ let items = $githubRepositories.map((repo) => ({+ label: `${repo.owner.login}/${repo.name}`,+ value: repo.id.toString()+ }));++ const selectedValue =+ !path && `${$application.repository.organization}/${$application.repository.name}`;++ const dispatch = createEventDispatcher();+ const modifyGithubAppConfig = () => dispatch('modifyGithubAppConfig');+</script>++<div class="grid grid-cols-1 pt-4">+ {#if $githubRepositories.length !== 0}+ <label for="repository">Organization / Repository</label>+ <div class="grid grid-cols-3 ">+ <div class="repository-select-search col-span-2">+ <Select+ isFocused="{true}"+ containerClasses="w-full border-none bg-transparent"+ on:select={handleSelect}+ {selectedValue}+ isClearable={false}+ {items}+ showIndicator={path}+ noOptionsMessage="No Repositories found"+ placeholder="Select a Repository"+ isDisabled={!path}+ />+ </div>+ <button+ class="button col-span-1 ml-2 bg-warmGray-800 hover:bg-warmGray-700 text-white"+ on:click={modifyGithubAppConfig}>Configure on Github</button+ >+ </div>+ {:else}+ <button+ class="button col-span-1 ml-2 bg-warmGray-800 hover:bg-warmGray-700 text-white py-2"+ on:click={modifyGithubAppConfig}>Add repositories on Github</button+ >+ {/if}+</div>diff --git a/src/components/Application/Tabs.svelte b/src/components/Application/Tabs.sveltenew file mode 100644index 0000000000..80b94e7f76--- /dev/null+++ b/src/components/Application/Tabs.svelte@@ -0,0 +1,138 @@+<script>+ import { toast } from '@zerodevx/svelte-toast';+ import templates from '$lib/api/applications/templates';+ import { application, dashboard } from '$store';+ import General from '$components/Application/ActiveTab/General.svelte';+ import Secrets from '$components/Application/ActiveTab/Secrets.svelte';+ import Loading from '$components/Loading.svelte';+ import { goto } from '$app/navigation';+ import { page, session } from '$app/stores';+ import { request } from '$lib/api/request';+ import { browser } from '$app/env';++ let activeTab = {+ general: true,+ buildStep: false,+ secrets: false+ };+ function activateTab(tab) {+ if (activeTab.hasOwnProperty(tab)) {+ activeTab = {+ general: false,+ buildStep: false,+ secrets: false+ };+ activeTab[tab] = true;+ }+ }+ async function load() {+ const found = $dashboard?.applications?.deployed.find((deployment) => {+ if (+ deployment.configuration.repository.organization === $application.repository.organization &&+ deployment.configuration.repository.name === $application.repository.name &&+ deployment.configuration.repository.branch === $application.repository.branch+ ) {+ return deployment;+ }+ });+ if (found) {+ $application = { ...found.configuration };+ if ($page.path === '/application/new') {+ if (browser) {+ toast.push('This repository & branch is already defined. Redirecting...');+ goto(+ `/application/${$application.repository.organization}/${$application.repository.name}/${$application.repository.branch}/configuration`,+ { replaceState: true }+ );+ }+ }+ return;+ }+ if ($page.path !== '/application/new') {+ const config = await request(`/api/v1/application/config`, $session, {+ body: {+ name: $application.repository.name,+ organization: $application.repository.organization,+ branch: $application.repository.branch+ }+ });+ $application = { ...config };+ } else {+ try {+ const dir = await request(+ `https://api.github.com/repos/${$application.repository.organization}/${$application.repository.name}/contents/?ref=${$application.repository.branch}`,+ $session+ );+ const packageJson = dir.find((f) => f.type === 'file' && f.name === 'package.json');+ const Dockerfile = dir.find((f) => f.type === 'file' && f.name === 'Dockerfile');+ const CargoToml = dir.find((f) => f.type === 'file' && f.name === 'Cargo.toml');++ if (packageJson) {+ const { content } = await request(packageJson.git_url, $session);+ const packageJsonContent = JSON.parse(atob(content));+ const checkPackageJSONContents = (dep) => {+ return (+ packageJsonContent?.dependencies?.hasOwnProperty(dep) ||+ packageJsonContent?.devDependencies?.hasOwnProperty(dep)+ );+ };+ Object.keys(templates).map((dep) => {+ if (checkPackageJSONContents(dep)) {+ const config = templates[dep];+ $application.build.pack = config.pack;+ if (config.installation)+ $application.build.command.installation = config.installation;+ if (config.port) $application.publish.port = config.port;+ if (config.directory) $application.publish.directory = config.directory;++ if (packageJsonContent.scripts.hasOwnProperty('build') && config.build) {+ $application.build.command.build = config.build;+ }+ browser && toast.push(`${config.name} detected. Default values set.`);+ }+ });+ } else if (CargoToml) {+ $application.build.pack = 'rust';+ browser && toast.push(`Rust language detected. Default values set.`);+ } else if (Dockerfile) {+ $application.build.pack = 'docker';+ browser && toast.push('Custom Dockerfile found. Build pack set to docker.');+ }+ } catch (error) {+ // Nothing detected+ }+ }+ }+</script>++{#await load()}+ <Loading github githubLoadingText="Scanning repository..." />+{:then}+ <div class="block text-center py-8">+ <nav class="flex space-x-4 justify-center font-bold text-md text-white" aria-label="Tabs">+ <div+ on:click={() => activateTab('general')}+ class:text-green-500={activeTab.general}+ class="px-3 py-2 cursor-pointer hover:bg-warmGray-700 rounded-lg transition duration-100"+ >+ General+ </div>+ <div+ on:click={() => activateTab('secrets')}+ class:text-green-500={activeTab.secrets}+ class="px-3 py-2 cursor-pointer hover:bg-warmGray-700 rounded-lg transition duration-100"+ >+ Secrets+ </div>+ </nav>+ </div>+ <div class="max-w-4xl mx-auto">+ <div class="h-full">+ {#if activeTab.general}+ <General />+ {:else if activeTab.secrets}+ <Secrets />+ {/if}+ </div>+ </div>+{/await}diff --git a/src/components/Database/Configuration.svelte b/src/components/Database/Configuration.sveltenew file mode 100644index 0000000000..44ea021d4c--- /dev/null+++ b/src/components/Database/Configuration.svelte@@ -0,0 +1,109 @@+<script>+ import { fade } from 'svelte/transition';+ import { toast } from '@zerodevx/svelte-toast';+ import MongoDb from './SVGs/MongoDb.svelte';+ import Postgresql from './SVGs/Postgresql.svelte';+ import Mysql from './SVGs/Mysql.svelte';+ import CouchDb from './SVGs/CouchDb.svelte';+ import { page, session } from '$app/stores';+ import { goto } from '$app/navigation';+ import { request } from '$lib/api/request';+ import { browser } from '$app/env';++ let type;+ let defaultDatabaseName;++ async function deploy() {+ try {+ await request(`/api/v1/databases/deploy`, $session, {+ body: {+ type,+ defaultDatabaseName+ }+ });++ if (browser) {+ toast.push('Database deployment queued.');+ goto(`/dashboard/databases`, { replaceState: true });+ }+ } catch (error) {+ console.log(error);+ }+ }+</script>++<div class="text-center space-y-2 max-w-4xl mx-auto px-6" in:fade={{ duration: 100 }}>+ {#if $page.path === '/database/new'}+ <div class="flex justify-center space-x-4 font-bold pb-6">+ <div+ class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-green-600 p-2 rounded bg-warmGray-800 w-32"+ class:border-green-600={type === 'mongodb'}+ on:click={() => (type = 'mongodb')}+ >+ <div class="flex items-center justify-center my-2">+ <MongoDb customClass="w-6" />+ </div>+ <div class="text-white">MongoDB</div>+ </div>+ <div+ class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-red-600 p-2 rounded bg-warmGray-800 w-32"+ class:border-red-600={type === 'couchdb'}+ on:click={() => (type = 'couchdb')}+ >+ <div class="flex items-center justify-center my-2">+ <CouchDb customClass="w-12 text-red-600 fill-current" />+ </div>+ <div class="text-white">Couchdb</div>+ </div>+ <div+ class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-blue-600 p-2 rounded bg-warmGray-800 w-32"+ class:border-blue-600={type === 'postgresql'}+ on:click={() => (type = 'postgresql')}+ >+ <div class="flex items-center justify-center my-2">+ <Postgresql customClass="w-12" />+ </div>+ <div class="text-white">PostgreSQL</div>+ </div>+ <div+ class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-orange-600 p-2 rounded bg-warmGray-800 w-32"+ class:border-orange-600={type === 'mysql'}+ on:click={() => (type = 'mysql')}+ >+ <div class="flex items-center justify-center">+ <Mysql customClass="w-10" />+ </div>+ <div class="text-white">MySQL</div>+ </div>++ <!-- <button+ class="button bg-gray-500 p-2 text-white hover:bg-yellow-500 cursor-pointer w-32"+ on:click="{() => (type = 'clickhouse')}"+ class:bg-yellow-500="{type === 'clickhouse'}"+ >+ Clickhouse+ </button> -->+ </div>+ {#if type}+ <div class="flex justify-center space-x-4 items-center">+ <label for="defaultDB">Default database</label>+ <input id="defaultDB" class="w-64" placeholder="random" bind:value={defaultDatabaseName} />++ <button+ class:bg-green-600={type === 'mongodb'}+ class:hover:bg-green-500={type === 'mongodb'}+ class:bg-blue-600={type === 'postgresql'}+ class:hover:bg-blue-500={type === 'postgresql'}+ class:bg-orange-600={type === 'mysql'}+ class:hover:bg-orange-500={type === 'mysql'}+ class:bg-red-600={type === 'couchdb'}+ class:hover:bg-red-500={type === 'couchdb'}+ class:bg-yellow-500={type === 'clickhouse'}+ class:hover:bg-yellow-400={type === 'clickhouse'}+ class="button p-2 w-32 text-white"+ on:click={deploy}>Deploy</button+ >+ </div>+ {/if}+ {/if}+</div>diff --git a/src/components/Databases/SVGs/Clickhouse.svelte b/src/components/Database/SVGs/Clickhouse.sveltesimilarity index 100%rename from src/components/Databases/SVGs/Clickhouse.svelterename to src/components/Database/SVGs/Clickhouse.sveltediff --git a/src/components/Databases/SVGs/CouchDb.svelte b/src/components/Database/SVGs/CouchDb.sveltesimilarity index 100%rename from src/components/Databases/SVGs/CouchDb.svelterename to src/components/Database/SVGs/CouchDb.sveltediff --git a/src/components/Databases/SVGs/MongoDb.svelte b/src/components/Database/SVGs/MongoDb.sveltesimilarity index 100%rename from src/components/Databases/SVGs/MongoDb.svelterename to src/components/Database/SVGs/MongoDb.sveltediff --git a/src/components/Databases/SVGs/Mysql.svelte b/src/components/Database/SVGs/Mysql.sveltesimilarity index 100%rename from src/components/Databases/SVGs/Mysql.svelterename to src/components/Database/SVGs/Mysql.sveltediff --git a/src/components/Databases/SVGs/Postgresql.svelte b/src/components/Database/SVGs/Postgresql.sveltesimilarity index 100%rename from src/components/Databases/SVGs/Postgresql.svelterename to src/components/Database/SVGs/Postgresql.sveltediff --git a/src/components/Databases/Configuration/Configuration.svelte b/src/components/Databases/Configuration/Configuration.sveltedeleted file mode 100644index a4c0e7f872..0000000000--- a/src/components/Databases/Configuration/Configuration.svelte+++ /dev/null@@ -1,113 +0,0 @@-<script>- import { fetch, dbInprogress } from "@store";- import { isActive, redirect } from "@roxi/routify/runtime";- import { fade } from "svelte/transition";- import { toast } from "@zerodevx/svelte-toast";- import MongoDb from "../SVGs/MongoDb.svelte";- import Postgresql from "../SVGs/Postgresql.svelte";- import Mysql from "../SVGs/Mysql.svelte";- import CouchDb from "../SVGs/CouchDb.svelte";-- let type;- let defaultDatabaseName;-- async function deploy() {- try {- await $fetch(`/api/v1/databases/deploy`, {- body: {- type,- defaultDatabaseName,- },- });- $dbInprogress = true;- toast.push("Database deployment queued.");- $redirect(`/dashboard/databases`);- } catch (error) {- console.log(error);- }- }-</script>--<div- class="text-center space-y-2 max-w-4xl mx-auto px-6"- in:fade="{{ duration: 100 }}"->- {#if $isActive("/database/new")}- <div class="flex justify-center space-x-4 font-bold pb-6">- <div- class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-green-600 p-2 rounded bg-warmGray-800 w-32"- class:border-green-600="{type === 'mongodb'}"- on:click="{() => (type = 'mongodb')}"- >- <div class="flex items-center justify-center my-2">- <MongoDb customClass="w-6" />- </div>- <div class="text-white">MongoDB</div>- </div>- <div- class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-red-600 p-2 rounded bg-warmGray-800 w-32"- class:border-red-600="{type === 'couchdb'}"- on:click="{() => (type = 'couchdb')}"- >- <div class="flex items-center justify-center my-2">- <CouchDb customClass="w-12 text-red-600 fill-current" />- </div>- <div class="text-white">Couchdb</div>- </div>- <div- class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-blue-600 p-2 rounded bg-warmGray-800 w-32"- class:border-blue-600="{type === 'postgresql'}"- on:click="{() => (type = 'postgresql')}"- >- <div class="flex items-center justify-center my-2">- <Postgresql customClass="w-12" />- </div>- <div class="text-white">PostgreSQL</div>- </div>- <div- class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-orange-600 p-2 rounded bg-warmGray-800 w-32"- class:border-orange-600="{type === 'mysql'}"- on:click="{() => (type = 'mysql')}"- >- <div class="flex items-center justify-center">- <Mysql customClass="w-10" />- </div>- <div class="text-white">MySQL</div>- </div>-- <!-- <button- class="button bg-gray-500 p-2 text-white hover:bg-yellow-500 cursor-pointer w-32"- on:click="{() => (type = 'clickhouse')}"- class:bg-yellow-500="{type === 'clickhouse'}"- >- Clickhouse- </button> -->- </div>- {#if type}- <div class="flex justify-center space-x-4 items-center">- <label for="defaultDB">Default database</label>- <input- id="defaultDB"- class="w-64"- placeholder="random"- bind:value="{defaultDatabaseName}"- />-- <button- class:bg-green-600="{type === 'mongodb'}"- class:hover:bg-green-500="{type === 'mongodb'}"- class:bg-blue-600="{type === 'postgresql'}"- class:hover:bg-blue-500="{type === 'postgresql'}"- class:bg-orange-600="{type === 'mysql'}"- class:hover:bg-orange-500="{type === 'mysql'}"- class:bg-red-600="{type === 'couchdb'}"- class:hover:bg-red-500="{type === 'couchdb'}"- class:bg-yellow-500="{type === 'clickhouse'}"- class:hover:bg-yellow-400="{type === 'clickhouse'}"- class="button p-2 w-32 text-white"- on:click="{deploy}">Deploy</button- >- </div>- {/if}- {/if}-</div>diff --git a/src/components/Loading.svelte b/src/components/Loading.svelteindex 4e1e909ec3..dac63811fc 100644--- a/src/components/Loading.svelte+++ b/src/components/Loading.svelte@@ -1,79 +1,80 @@<style lang="postcss">- .loader {- width: 8px;- height: 40px;- border-radius: 4px;- display: block;- margin: 20px auto;- position: relative;- background: currentColor;- color: #fff;- box-sizing: border-box;- animation: animloader 0.3s 0.3s linear infinite alternate;- }-- .loader::after,- .loader::before {- content: "";- width: 8px;- height: 40px;- border-radius: 4px;- background: currentColor;- position: absolute;- top: 50%;- transform: translateY(-50%);- left: 20px;- box-sizing: border-box;- animation: animloader 0.3s 0.45s linear infinite alternate;- }- .loader::before {- left: -20px;- animation-delay: 0s;- }-- @keyframes animloader {- 0% {- height: 48px;+ .loader {+ width: 8px;+ height: 40px;+ border-radius: 4px;+ display: block;+ margin: 20px auto;+ position: relative;+ background: currentColor;+ color: #fff;+ box-sizing: border-box;+ animation: animloader 0.3s 0.3s linear infinite alternate;}- 100% {- height: 4px;++ .loader::after,+ .loader::before {+ content: "";+ width: 8px;+ height: 40px;+ border-radius: 4px;+ background: currentColor;+ position: absolute;+ top: 50%;+ transform: translateY(-50%);+ left: 20px;+ box-sizing: border-box;+ animation: animloader 0.3s 0.45s linear infinite alternate;}- }-</style>--<script>- export let github = false;- export let githubLoadingText = "Loading GitHub...";- export let fullscreen = true;-</script>--{#if fullscreen}- {#if github}- <div class="fixed left-0 top-0 flex flex-wrap content-center h-full w-full">- <div class="main flex justify-center items-center">- <div class="w-64">- <svg- class=" w-28 animate-bounce mx-auto"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><path- d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"- ></path></svg- >- <div class="text-xl font-bold text-center">- {githubLoadingText}+ .loader::before {+ left: -20px;+ animation-delay: 0s;+ }++ @keyframes animloader {+ 0% {+ height: 48px;+ }+ 100% {+ height: 4px;+ }+ }+ </style>++ <script>+ export let github = false;+ export let githubLoadingText = "Loading GitHub...";+ export let fullscreen = true;+ </script>++ {#if fullscreen}+ {#if github}+ <div class="fixed left-0 top-0 flex flex-wrap content-center h-full w-full">+ <div class="main flex justify-center items-center">+ <div class="w-64">+ <svg+ class=" w-28 animate-bounce mx-auto"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><path+ d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"+ ></path></svg+ >+ <div class="text-xl font-bold text-center">+ {githubLoadingText}+ </div></div></div></div>- </div>- {:else}- <div class="main fixed left-0 top-0 flex flex-wrap content-center h-full">- <span class=" loader"></span>- </div>+ {:else}+ <div class="main fixed left-0 top-0 flex flex-wrap content-center h-full">+ <span class=" loader"></span>+ </div>+ {/if}{/if}-{/if}+\ No newline at end of filediff --git a/src/components/Service/Plausible.svelte b/src/components/Service/Plausible.sveltenew file mode 100644index 0000000000..97e40bad46--- /dev/null+++ b/src/components/Service/Plausible.svelte@@ -0,0 +1,87 @@+<script>+ import { fade } from 'svelte/transition';+ import { toast } from '@zerodevx/svelte-toast';+ import Loading from '../Loading.svelte';+ import Tooltip from '$components/Tooltip.svelte';+ import { request } from '$lib/api/request';+ import { page, session } from '$app/stores';+ import PasswordField from '$components/PasswordField.svelte';+import { browser } from '$app/env';+ export let service;+ let loading = false;+ async function activate() {+ try {+ loading = true;+ await request(`/api/v1/services/deploy/${$page.params.name}/activate`, $session, {+ method: 'PATCH',+ body: {}+ });+ browser && toast.push(`All users are activated for Plausible.`);+ } catch (error) {+ console.log(error);+ browser && toast.push(`Ooops, there was an error activating users for Plausible?!`);+ } finally {+ loading = false;+ }+ }+</script>++{#if loading}+ <Loading />+{:else}+ <div class="text-left max-w-5xl mx-auto px-6" in:fade={{ duration: 100 }}>+ <div class="pb-2 pt-5 space-y-4">+ <div class="flex space-x-5 items-center">+ <div class="text-2xl font-bold border-gradient">General</div>+ <div class="flex-1" />+ <Tooltip+ position="bottom"+ size="large"+ label="Activate all users in Plausible database, so you can login without the email verification."+ >+ <button class="button bg-blue-500 hover:bg-blue-400 px-2" on:click={activate}+ >Activate All Users</button+ >+ </Tooltip>+ </div>++ <div class="flex items-center pt-4">+ <div class="font-bold w-64 text-warmGray-400">Domain</div>+ <input class="w-full" value={service.config.baseURL} disabled />+ </div>+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Email address</div>+ <input class="w-full" value={service.config.email} disabled />+ </div>+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Username</div>+ <input class="w-full" value={service.config.userName} disabled />+ </div>+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Password</div>+ <PasswordField value={service.config.userPassword} />+ </div>+ <div class="text-2xl font-bold pt-4 border-gradient w-32">PostgreSQL</div>+ <div class="flex items-center pt-4">+ <div class="font-bold w-64 text-warmGray-400">Username</div>+ <input+ class="w-full"+ value={service.config.generateEnvsPostgres.POSTGRESQL_USERNAME}+ disabled+ />+ </div>+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Password</div>+ <PasswordField value={service.config.generateEnvsPostgres.POSTGRESQL_PASSWORD} />+ </div>+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Database</div>+ <input+ class="w-full"+ value={service.config.generateEnvsPostgres.POSTGRESQL_DATABASE}+ disabled+ />+ </div>+ </div>+ </div>+{/if}diff --git a/src/components/Services/Plausible.svelte b/src/components/Services/Plausible.sveltedeleted file mode 100644index f1189a6b33..0000000000--- a/src/components/Services/Plausible.svelte+++ /dev/null@@ -1,82 +0,0 @@-<script>- import { fetch } from "@store";- import { params } from "@roxi/routify/runtime";- import { fade } from "svelte/transition";- import { toast } from "@zerodevx/svelte-toast";- import Loading from "../Loading.svelte";- import TooltipInfo from "../Tooltip/TooltipInfo.svelte";- import PasswordField from "../PasswordField.svelte";- import Tooltip from "../Tooltip/Tooltip.svelte";- export let service;-- $: name = $params.name;- let loading = false;- async function activate() {- try {- loading = true;- await $fetch(`/api/v1/services/deploy/${name}/activate`, {- method: "PATCH",- body: {},- });- toast.push(`All users are activated for Plausible.`);- } catch (error) {- console.log(error);- toast.push(`Ooops, there was an error activating users for Plausible?!`);- } finally {- loading = false;- }- }-</script>--{#if loading}- <Loading />-{:else}- <div class="text-left max-w-5xl mx-auto px-6" in:fade="{{ duration: 100 }}">- <div class="pb-2 pt-5 space-y-4">- <div class="flex space-x-5 items-center">- <div class="text-2xl font-bold border-gradient">General</div>- <div class="flex-1"></div>- <Tooltip- position="bottom"- size="large"- label="Activate all users in Plausible database, so you can login without the email verification."- >- <button- class="button bg-blue-500 hover:bg-blue-400 px-2"- on:click="{activate}">Activate All Users</button- >- </Tooltip>- </div>-- <div class="flex items-center pt-4">- <div class="font-bold w-64 text-warmGray-400">Domain</div>- <input class="w-full" value="{service.config.baseURL}" disabled />- </div>- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Email address</div>- <input class="w-full" value="{service.config.email}" disabled />- </div>- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Username</div>- <input class="w-full" value="{service.config.userName}" disabled />- </div>- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Password</div>- <PasswordField value="{service.config.userPassword}" />- </div>- <div class="text-2xl font-bold pt-4 border-gradient w-32">PostgreSQL</div>- <div class="flex items-center pt-4">- <div class="font-bold w-64 text-warmGray-400">Username</div>- <input class="w-full" value="{service.config.generateEnvsPostgres.POSTGRESQL_USERNAME}" disabled />- </div>- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Password</div>- <PasswordField value="{service.config.generateEnvsPostgres.POSTGRESQL_PASSWORD}" />- </div>- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Database</div>- <input class="w-full" value="{service.config.generateEnvsPostgres.POSTGRESQL_DATABASE}" disabled />- </div>- </div>- </div>-{/if}diff --git a/src/components/Tooltip.svelte b/src/components/Tooltip.sveltenew file mode 100644index 0000000000..f4942709d1--- /dev/null+++ b/src/components/Tooltip.svelte@@ -0,0 +1,15 @@+<script>+ export let position = "bottom";+ export let label;+ export let size = "fit";+ </script>++ <span+ aria-label="{label}"+ data-microtip-position="{position}"+ data-microtip-size="{size}"+ role="tooltip"+ >+ <slot></slot>+ </span>+\ No newline at end of filediff --git a/src/components/Tooltip/Tooltip.svelte b/src/components/Tooltip/Tooltip.sveltedeleted file mode 100644index 006b75dffc..0000000000--- a/src/components/Tooltip/Tooltip.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script>- export let position = "bottom";- export let label;- export let size = "fit";-</script>--<span- aria-label="{label}"- data-microtip-position="{position}"- data-microtip-size="{size}"- role="tooltip"->-<slot></slot>-</span>diff --git a/src/components/Tooltip/TooltipInfo.svelte b/src/components/TooltipInfo.sveltesimilarity index 100%rename from src/components/Tooltip/TooltipInfo.svelterename to src/components/TooltipInfo.sveltediff --git a/src/global.d.ts b/src/global.d.tsnew file mode 100644index 0000000000..39ed4217f2--- /dev/null+++ b/src/global.d.ts@@ -0,0 +1,115 @@+/// <reference types="@sveltejs/kit" />+/// <reference types="svelte" />+/// <reference types="vite/client" />++export type DateTimeFormatOptions = {+ localeMatcher?: 'lookup' | 'best fit';+ weekday?: 'long' | 'short' | 'narrow';+ era?: 'long' | 'short' | 'narrow';+ year?: 'numeric' | '2-digit';+ month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';+ day?: 'numeric' | '2-digit';+ hour?: 'numeric' | '2-digit';+ minute?: 'numeric' | '2-digit';+ second?: 'numeric' | '2-digit';+ timeZoneName?: 'long' | 'short';+ formatMatcher?: 'basic' | 'best fit';+ hour12?: boolean;+ timeZone?: string;+};+export type Application = {+ github: {+ installation: {+ id: number;+ };+ app: {+ id: number;+ };+ };+ repository: {+ id: number;+ organization: string;+ name: string;+ branch: string;+ };+ general: {+ deployId: string;+ nickname: string;+ workdir: string;+ };+ build: {+ pack: string;+ directory: string;+ command: {+ build: string | null;+ installation: string;+ };+ container: {+ name: string;+ tag: string;+ baseSHA: string;+ };+ };+ publish: {+ directory: string;+ domain: string;+ path: string;+ port: number;+ secrets: Array<Record<string, unknown>>;+ };+};+export type Database = {+ config:+ | {+ general: {+ deployId: string;+ nickname: string;+ workdir: string;+ type: string;+ };+ database: {+ usernames: Array;+ passwords: Array;+ defaultDatabaseName: string;+ };+ deploy: {+ name: string;+ };+ }+ | Record<string, unknown>;+ envs: Array;+};+export type Dashboard = {+ databases: {+ deployed:+ | [+ {+ configuration: Database;+ }+ ]+ | [];+ };+ services: {+ deployed:+ | [+ {+ configuration: any;+ }+ ]+ | [];+ };+ applications: {+ deployed:+ | [+ {+ configuration: Application;+ UpdatedAt: any;+ }+ ]+ | [];+ };+};+export type GithubInstallations = {+ id: number;+ app_id: number;+};diff --git a/src/hooks/index.ts b/src/hooks/index.tsnew file mode 100644index 0000000000..5e2077680e--- /dev/null+++ b/src/hooks/index.ts@@ -0,0 +1,80 @@+import dotEnvExtended from 'dotenv-extended';+dotEnvExtended.load();+import { publicPages } from '$lib/consts';+import mongoose from 'mongoose';+import { verifyUserId } from '$lib/api/common';+import { initializeSession } from 'svelte-kit-cookie-session';++process.on('SIGINT', function () {+ mongoose.connection.close(function () {+ console.log('Mongoose default connection disconnected through app termination');+ process.exit(0);+ });+});++async function connectMongoDB() {+ const { MONGODB_USER, MONGODB_PASSWORD, MONGODB_HOST, MONGODB_PORT, MONGODB_DB } = process.env;+ try {+ if (process.env.NODE_ENV === 'production') {+ await mongoose.connect(+ `mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${MONGODB_HOST}:${MONGODB_PORT}/${MONGODB_DB}?authSource=${MONGODB_DB}&readPreference=primary&ssl=false`,+ { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false }+ );+ } else {+ await mongoose.connect(+ 'mongodb://supercooldbuser:developmentPassword4db@localhost:27017/coolify?&readPreference=primary&ssl=false',+ { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false }+ );+ }+ console.log('Connected to mongodb.');+ } catch (error) {+ console.log(error);+ }+}++if (mongoose.connection.readyState !== 1) connectMongoDB();++export async function handle({ request, render }) {+ const { SECRETS_ENCRYPTION_KEY } = process.env;+ const session = initializeSession(request.headers, {+ secret: SECRETS_ENCRYPTION_KEY,+ cookie: { path: '/' }+ });+ request.locals.session = session;+ if (session?.data?.coolToken) {+ try {+ await verifyUserId(session.data.coolToken);+ request.locals.session = session;+ } catch (error) {+ request.locals.session.destroy = true;+ }+ }+ const response = await render(request);+ if (!session['set-cookie']) {+ if (!session?.data?.coolToken && !publicPages.includes(request.path)) {+ return {+ status: 301,+ headers: {+ location: '/'+ }+ };+ }+ return response;+ }+ return {+ ...response,+ headers: {+ ...response.headers,+ ...session+ }+ };+}+export function getSession(request) {+ const { data } = request.locals.session;+ return {+ isLoggedIn: data && Object.keys(data).length !== 0 ? true : false,+ expires: data.expires,+ coolToken: data.coolToken,+ ghToken: data.ghToken+ };+}diff --git a/src/index.css b/src/index.cssdeleted file mode 100644index 68f14a23a9..0000000000--- a/src/index.css+++ /dev/null@@ -1,53 +0,0 @@-@import "tailwindcss/base.css";-@import "tailwindcss/components.css";-@import "tailwindcss/utilities.css";--html {- height: 100%;-}-body {- background-color: rgb(22, 22, 22);- min-height: 100vh;- overflow-x: hidden;-}--:root {- --toastBackground: rgba(41, 37, 36, 0.8);- --toastProgressBackground: transparent;- --toastFont: 'Inter';-}--.border-gradient {- border-bottom: 2px solid transparent;- border-image: linear-gradient(0.25turn, rgba(255, 249, 34), rgba(255, 0, 128), rgba(56, 2, 155, 0));- border-image-slice: 1;-}-.border-gradient-full {- border: 4px solid transparent;- border-image: linear-gradient(0.25turn, rgba(255, 249, 34), rgba(255, 0, 128), rgba(56, 2, 155, 0));- border-image-slice: 1;-}--[aria-label][role~="tooltip"]::after {- background: rgba(41, 37, 36, 0.9);- color: white;- font-family: 'Inter';- font-size: 16px;- font-weight: 600;- white-space: normal;-}--[role~="tooltip"][data-microtip-position|="bottom"]::before {- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;-}--[role~="tooltip"][data-microtip-position|="top"]::before {- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;-}-[role~="tooltip"][data-microtip-position="right"]::before {- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;-}--[role~="tooltip"][data-microtip-position="left"]::before {- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2841,%2037,%2036,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;-}\ No newline at end of filediff --git a/src/index.js b/src/index.jsdeleted file mode 100644index 3dce485c3b..0000000000--- a/src/index.js+++ /dev/null@@ -1,8 +0,0 @@-import App from './App.svelte'-import './index.css'--const app = new App({- target: document.body-})--export default appdiff --git a/src/lib/api/applications/buildContainer.ts b/src/lib/api/applications/buildContainer.tsnew file mode 100644index 0000000000..aad916aec5--- /dev/null+++ b/src/lib/api/applications/buildContainer.ts@@ -0,0 +1,29 @@+import Deployment from '$models/Logs/Deployment';+import { saveAppLog } from './logging';+import * as packs from './packs';++export default async function (configuration) {+ const { id, organization, name, branch } = configuration.repository;+ const { domain } = configuration.publish;+ const deployId = configuration.general.deployId;+ const execute = packs[configuration.build.pack];+ if (execute) {+ await Deployment.findOneAndUpdate(+ { repoId: id, branch, deployId, organization, name, domain },+ { repoId: id, branch, deployId, organization, name, domain, progress: 'inprogress' }+ );+ await saveAppLog('### Building application.', configuration);+ await execute(configuration);+ await saveAppLog('### Building done.', configuration);+ } else {+ try {+ await Deployment.findOneAndUpdate(+ { repoId: id, branch, deployId, organization, name, domain },+ { repoId: id, branch, deployId, organization, name, domain, progress: 'failed' }+ );+ } catch (error) {+ // Hmm.+ }+ throw new Error('No buildpack found.');+ }+}diff --git a/src/lib/api/applications/cleanup.ts b/src/lib/api/applications/cleanup.tsnew file mode 100644index 0000000000..28a3fd6be3--- /dev/null+++ b/src/lib/api/applications/cleanup.ts@@ -0,0 +1,45 @@+import { docker } from '$lib/api/docker';+import { execShellAsync } from '../common';++export async function deleteSameDeployments(configuration) {+ await (+ await docker.engine.listServices()+ )+ .filter((r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')+ .map(async (s) => {+ const running = JSON.parse(s.Spec.Labels.configuration);+ if (+ running.repository.id === configuration.repository.id &&+ running.repository.branch === configuration.repository.branch+ ) {+ await execShellAsync(`docker stack rm ${s.Spec.Labels['com.docker.stack.namespace']}`);+ }+ });+}++export async function purgeImagesContainers(configuration, deleteAll = false) {+ const { name, tag } = configuration.build.container;+ await execShellAsync('docker container prune -f');+ if (deleteAll) {+ const IDsToDelete = (+ await execShellAsync(`docker images ls --filter=reference='${name}' --format '{{json .ID }}'`)+ )+ .trim()+ .replace(/"/g, '')+ .split('\n');+ if (IDsToDelete.length > 0)+ await execShellAsync(`docker rmi -f ${IDsToDelete.toString().replace(',', ' ')}`);+ } else {+ const IDsToDelete = (+ await execShellAsync(+ `docker images ls --filter=reference='${name}' --filter=before='${name}:${tag}' --format '{{json .ID }}'`+ )+ )+ .trim()+ .replace(/"/g, '')+ .split('\n');+ if (IDsToDelete.length > 1)+ await execShellAsync(`docker rmi -f ${IDsToDelete.toString().replace(',', ' ')}`);+ }+ await execShellAsync('docker image prune -f');+}diff --git a/src/lib/api/applications/cloneRepository.ts b/src/lib/api/applications/cloneRepository.tsnew file mode 100644index 0000000000..5c9b6bda72--- /dev/null+++ b/src/lib/api/applications/cloneRepository.ts@@ -0,0 +1,48 @@+import jsonwebtoken from 'jsonwebtoken';+import { execShellAsync } from '../common';++export default async function (configuration) {+ try {+ const { GITHUB_APP_PRIVATE_KEY } = process.env;+ const { workdir } = configuration.general;+ const { organization, name, branch } = configuration.repository;+ const github = configuration.github;+ if (!github.installation.id || !github.app.id) {+ throw new Error('Github installation ID is invalid.');+ }+ const githubPrivateKey = GITHUB_APP_PRIVATE_KEY.replace(/\\n/g, '\n').replace(/"/g, '');++ const payload = {+ iat: Math.round(new Date().getTime() / 1000),+ exp: Math.round(new Date().getTime() / 1000 + 60),+ iss: parseInt(github.app.id)+ };++ const jwtToken = jsonwebtoken.sign(payload, githubPrivateKey, {+ algorithm: 'RS256'+ });++ const { token } = await (+ await fetch(+ `https://api.github.com/app/installations/${github.installation.id}/access_tokens`,+ {+ method: 'POST',+ headers: {+ Authorization: 'Bearer ' + jwtToken,+ Accept: 'application/vnd.github.machine-man-preview+json'+ }+ }+ )+ ).json();+ await execShellAsync(+ `mkdir -p ${workdir} && git clone -q -b ${branch} https://x-access-token:${token}@github.com/${organization}/${name}.git ${workdir}/`+ );+ configuration.build.container.tag = (+ await execShellAsync(`cd ${configuration.general.workdir}/ && git rev-parse HEAD`)+ )+ .replace('\n', '')+ .slice(0, 7);+ } catch (error) {+ console.log(error);+ }+}diff --git a/src/lib/api/applications/common.ts b/src/lib/api/applications/common.tsnew file mode 100644index 0000000000..543e6c3a53--- /dev/null+++ b/src/lib/api/applications/common.ts@@ -0,0 +1,18 @@+export const baseServiceConfiguration = {+ replicas: 1,+ restart_policy: {+ condition: 'any',+ max_attempts: 6+ },+ update_config: {+ parallelism: 1,+ delay: '10s',+ order: 'start-first'+ },+ rollback_config: {+ parallelism: 1,+ delay: '10s',+ order: 'start-first',+ failure_action: 'rollback'+ }+};diff --git a/src/lib/api/applications/configuration.ts b/src/lib/api/applications/configuration.tsnew file mode 100644index 0000000000..0d70619449--- /dev/null+++ b/src/lib/api/applications/configuration.ts@@ -0,0 +1,156 @@+import cuid from 'cuid';+import crypto from 'crypto';+import { uniqueNamesGenerator, adjectives, colors, animals } from 'unique-names-generator';+import { docker } from '$lib/api/docker';+import { baseServiceConfiguration } from './common';+import { execShellAsync } from '../common';++function getUniq() {+ return uniqueNamesGenerator({ dictionaries: [adjectives, animals, colors], length: 2 });+}++export function setDefaultConfiguration(configuration) {+ const nickname = getUniq();+ const deployId = cuid();++ const shaBase = JSON.stringify({ repository: configuration.repository });+ const sha256 = crypto.createHash('sha256').update(shaBase).digest('hex');++ configuration.build.container.name = sha256.slice(0, 15);++ configuration.general.nickname = nickname;+ configuration.general.deployId = deployId;+ configuration.general.workdir = `/tmp/${deployId}`;++ if (!configuration.publish.path) configuration.publish.path = '/';+ if (!configuration.publish.port) {+ if (+ configuration.build.pack === 'nodejs' ||+ configuration.build.pack === 'vuejs' ||+ configuration.build.pack === 'nuxtjs' ||+ configuration.build.pack === 'rust' ||+ configuration.build.pack === 'nextjs'+ ) {+ configuration.publish.port = 3000;+ } else {+ configuration.publish.port = 80;+ }+ }+ if (!configuration.build.directory) configuration.build.directory = '';+ if (configuration.build.directory.startsWith('/'))+ configuration.build.directory = configuration.build.directory.replace('/', '');++ if (!configuration.publish.directory) configuration.publish.directory = '';+ if (configuration.publish.directory.startsWith('/'))+ configuration.publish.directory = configuration.publish.directory.replace('/', '');++ if (configuration.build.pack === 'static' || configuration.build.pack === 'nodejs') {+ if (!configuration.build.command.installation)+ configuration.build.command.installation = 'yarn install';+ }++ configuration.build.container.baseSHA = crypto+ .createHash('sha256')+ .update(JSON.stringify(baseServiceConfiguration))+ .digest('hex');+ configuration.baseServiceConfiguration = baseServiceConfiguration;++ return configuration;+}++export async function precheckDeployment({ services, configuration }) {+ let foundService = false;+ let configChanged = false;+ let imageChanged = false;++ let forceUpdate = false;++ for (const service of services) {+ const running = JSON.parse(service.Spec.Labels.configuration);+ if (running) {+ if (+ running.repository.id === configuration.repository.id &&+ running.repository.branch === configuration.repository.branch+ ) {+ // Base service configuration changed+ if (+ !running.build.container.baseSHA ||+ running.build.container.baseSHA !== configuration.build.container.baseSHA+ ) {+ forceUpdate = true;+ }+ // If the deployment is in error state, forceUpdate+ const state = await execShellAsync(+ `docker stack ps ${running.build.container.name} --format '{{ json . }}'`+ );+ const isError = state+ .split('\n')+ .filter((n) => n)+ .map((s) => JSON.parse(s))+ .filter(+ (n) =>+ n.DesiredState !== 'Running' && n.Image.split(':')[1] === running.build.container.tag+ );+ if (isError.length > 0) forceUpdate = true;+ foundService = true;++ const runningWithoutContainer = JSON.parse(JSON.stringify(running));+ delete runningWithoutContainer.build.container;++ const configurationWithoutContainer = JSON.parse(JSON.stringify(configuration));+ delete configurationWithoutContainer.build.container;++ // If only the configuration changed+ if (+ JSON.stringify(runningWithoutContainer.build) !==+ JSON.stringify(configurationWithoutContainer.build) ||+ JSON.stringify(runningWithoutContainer.publish) !==+ JSON.stringify(configurationWithoutContainer.publish)+ )+ configChanged = true;+ // If only the image changed+ if (running.build.container.tag !== configuration.build.container.tag) imageChanged = true;+ // If build pack changed, forceUpdate the service+ if (running.build.pack !== configuration.build.pack) forceUpdate = true;+ }+ }+ }+ if (forceUpdate) {+ imageChanged = false;+ configChanged = false;+ }+ return {+ foundService,+ imageChanged,+ configChanged,+ forceUpdate+ };+}++export async function updateServiceLabels(configuration) {+ // In case of any failure during deployment, still update the current configuration.+ const services = (await docker.engine.listServices()).filter(+ (r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application'+ );+ const found = services.find((s) => {+ const config = JSON.parse(s.Spec.Labels.configuration);+ if (+ config.repository.id === configuration.repository.id &&+ config.repository.branch === configuration.repository.branch+ ) {+ return config;+ }+ return null;+ });+ if (found) {+ const { ID } = found;+ const Labels = { ...JSON.parse(found.Spec.Labels.configuration), ...configuration };+ await execShellAsync(+ `docker service update --label-add configuration='${JSON.stringify(+ Labels+ )}' --label-add com.docker.stack.image='${configuration.build.container.name}:${+ configuration.build.container.tag+ }' ${ID}`+ );+ }+}diff --git a/src/lib/api/applications/copyFiles.ts b/src/lib/api/applications/copyFiles.tsnew file mode 100644index 0000000000..7a6d024248--- /dev/null+++ b/src/lib/api/applications/copyFiles.ts@@ -0,0 +1,69 @@+import { promises as fs } from 'fs';+export default async function (configuration) {+ const staticDeployments = ['react', 'vuejs', 'static', 'svelte', 'gatsby'];+ try {+ // TODO: Write full .dockerignore for all deployments!!+ if (configuration.build.pack === 'php') {+ await fs.writeFile(+ `${configuration.general.workdir}/.htaccess`,+ `+ RewriteEngine On+ RewriteBase /+ RewriteCond %{REQUEST_FILENAME} !-d+ RewriteCond %{REQUEST_FILENAME} !-f+ RewriteRule ^(.+)$ index.php [QSA,L]+ `+ );+ }+ // await fs.writeFile(`${configuration.general.workdir}/.dockerignore`, 'node_modules')+ if (staticDeployments.includes(configuration.build.pack)) {+ await fs.writeFile(+ `${configuration.general.workdir}/nginx.conf`,+ `user nginx;+ worker_processes auto;++ error_log /var/log/nginx/error.log warn;+ pid /var/run/nginx.pid;++ events {+ worker_connections 1024;+ }++ http {+ include /etc/nginx/mime.types;++ access_log off;+ sendfile on;+ #tcp_nopush on;+ keepalive_timeout 65;++ server {+ listen 80;+ server_name localhost;++ location / {+ root /usr/share/nginx/html;+ index index.html;+ try_files $uri $uri/index.html $uri/ /index.html =404;+ }++ error_page 404 /50x.html;++ # redirect server error pages to the static page /50x.html+ #+ error_page 500 502 503 504 /50x.html;+ location = /50x.html {+ root /usr/share/nginx/html;+ }++ }++ }+ `+ );+ }+ } catch (error) {+ console.log(error);+ throw new Error(error);+ }+}diff --git a/src/lib/api/applications/deploy.ts b/src/lib/api/applications/deploy.tsnew file mode 100644index 0000000000..774d9894e9--- /dev/null+++ b/src/lib/api/applications/deploy.ts@@ -0,0 +1,76 @@+import { docker } from '$lib/api/docker';+import { saveAppLog } from './logging';+import { promises as fs } from 'fs';+import { deleteSameDeployments } from './cleanup';+import yaml from 'js-yaml';+import { execShellAsync } from '../common';++export default async function (configuration, imageChanged) {+ const generateEnvs = {};+ for (const secret of configuration.publish.secrets) {+ generateEnvs[secret.name] = secret.value;+ }+ const containerName = configuration.build.container.name;++ // Only save SHA256 of it in the configuration label+ const baseServiceConfiguration = configuration.baseServiceConfiguration;+ delete configuration.baseServiceConfiguration;++ const stack = {+ version: '3.8',+ services: {+ [containerName]: {+ image: `${configuration.build.container.name}:${configuration.build.container.tag}`,+ networks: [`${docker.network}`],+ environment: generateEnvs,+ deploy: {+ ...baseServiceConfiguration,+ labels: [+ 'managedBy=coolify',+ 'type=application',+ 'configuration=' + JSON.stringify(configuration),+ 'traefik.enable=true',+ 'traefik.http.services.' ++ configuration.build.container.name ++ `.loadbalancer.server.port=${configuration.publish.port}`,+ 'traefik.http.routers.' + configuration.build.container.name + '.entrypoints=websecure',+ 'traefik.http.routers.' ++ configuration.build.container.name ++ '.rule=Host(`' ++ configuration.publish.domain ++ '`) && PathPrefix(`' ++ configuration.publish.path ++ '`)',+ 'traefik.http.routers.' ++ configuration.build.container.name ++ '.tls.certresolver=letsencrypt',+ 'traefik.http.routers.' ++ configuration.build.container.name ++ '.middlewares=global-compress'+ ]+ }+ }+ },+ networks: {+ [`${docker.network}`]: {+ external: true+ }+ }+ };+ await saveAppLog('### Publishing.', configuration);+ await fs.writeFile(`${configuration.general.workdir}/stack.yml`, yaml.dump(stack));+ if (imageChanged) {+ // console.log('image changed')+ await execShellAsync(+ `docker service update --image ${configuration.build.container.name}:${configuration.build.container.tag} ${configuration.build.container.name}_${configuration.build.container.name}`+ );+ } else {+ // console.log('new deployment or force deployment or config changed')+ await deleteSameDeployments(configuration);+ await execShellAsync(+ `cat ${configuration.general.workdir}/stack.yml | docker stack deploy --prune -c - ${containerName}`+ );+ }++ await saveAppLog('### Published done!', configuration);+}diff --git a/src/lib/api/applications/logging.ts b/src/lib/api/applications/logging.tsnew file mode 100644index 0000000000..10f7aac1c2--- /dev/null+++ b/src/lib/api/applications/logging.ts@@ -0,0 +1,58 @@+import Settings from '$models/Settings';+import ServerLog from '$models/Logs/Server';+import ApplicationLog from '$models/Logs/Application';+import dayjs from 'dayjs';+import { version } from '../../../../package.json';++function generateTimestamp() {+ return `${dayjs().format('YYYY-MM-DD HH:mm:ss.SSS')} `;+}+const patterns = [+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'+].join('|');++export async function saveAppLog(event, configuration, isError?: boolean) {+ try {+ const deployId = configuration.general.deployId;+ const repoId = configuration.repository.id;+ const branch = configuration.repository.branch;+ if (isError) {+ const clearedEvent =+ '[ERROR 😱] ' ++ generateTimestamp() ++ event.replace(new RegExp(patterns, 'g'), '').replace(/(\r\n|\n|\r)/gm, '');+ await new ApplicationLog({ repoId, branch, deployId, event: clearedEvent }).save();+ } else {+ if (event && event !== '\n') {+ const clearedEvent =+ '[INFO] ' ++ generateTimestamp() ++ event.replace(new RegExp(patterns, 'g'), '').replace(/(\r\n|\n|\r)/gm, '');+ await new ApplicationLog({ repoId, branch, deployId, event: clearedEvent }).save();+ }+ }+ } catch (error) {+ console.log(error);+ return error;+ }+}++export async function saveServerLog(error) {+ const settings = await Settings.findOne({ applicationName: 'coolify' });+ const payload = {+ message: error.message,+ stack: error.stack,+ type: error.type || 'spaghetticode',+ version+ };++ const found = await ServerLog.find(payload);+ if (found.length === 0 && error.message) await new ServerLog(payload).save();+ if (settings && settings.sendErrors && process.env.NODE_ENV === 'production') {+ await fetch('https://errors.coollabs.io/api/error', {+ method: 'POST',+ body: JSON.stringify({ ...payload })+ });+ }+}diff --git a/src/lib/api/applications/packs/docker/index.ts b/src/lib/api/applications/packs/docker/index.tsnew file mode 100644index 0000000000..e3d9f01e3d--- /dev/null+++ b/src/lib/api/applications/packs/docker/index.ts@@ -0,0 +1,17 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';++export default async function (configuration) {+ const path = `${configuration.general.workdir}/${+ configuration.build.directory ? configuration.build.directory : ''+ }`;+ if (fs.stat(`${path}/Dockerfile`)) {+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: path },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+ } else {+ throw new Error('No custom dockerfile found.');+ }+}diff --git a/src/lib/api/applications/packs/gatsby/index.ts b/src/lib/api/applications/packs/gatsby/index.tsnew file mode 100644index 0000000000..9cb109979d--- /dev/null+++ b/src/lib/api/applications/packs/gatsby/index.ts@@ -0,0 +1,28 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';++// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishStaticDocker = (configuration) => {+ return [+ 'FROM nginx:stable-alpine',+ 'COPY nginx.conf /etc/nginx/nginx.conf',+ 'WORKDIR /usr/share/nginx/html',+ `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,+ 'EXPOSE 80',+ 'CMD ["nginx", "-g", "daemon off;"]'+ ].join('\n');+};++export default async function (configuration) {+ await buildImage(configuration, true);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishStaticDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/helpers.ts b/src/lib/api/applications/packs/helpers.tsnew file mode 100644index 0000000000..80d54179ec--- /dev/null+++ b/src/lib/api/applications/packs/helpers.ts@@ -0,0 +1,30 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';++const buildImageNodeDocker = (configuration) => {+ return [+ 'FROM node:lts',+ 'WORKDIR /usr/src/app',+ `COPY ${configuration.build.directory}/package*.json ./`,+ configuration.build.command.installation && `RUN ${configuration.build.command.installation}`,+ `COPY ./${configuration.build.directory} ./`,+ `RUN ${configuration.build.command.build}`+ ].join('\n');+};+export async function buildImage(configuration, cacheBuild?: boolean) {+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ buildImageNodeDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ {+ t: `${configuration.build.container.name}:${+ cacheBuild+ ? `${configuration.build.container.tag}-cache`+ : configuration.build.container.tag+ }`+ }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/index.ts b/src/lib/api/applications/packs/index.tsnew file mode 100644index 0000000000..1741fa7216--- /dev/null+++ b/src/lib/api/applications/packs/index.ts@@ -0,0 +1,25 @@+import vuejs from './vuejs';+import svelte from './svelte';+import Static from './static';+import rust from './rust';+import react from './react';+import php from './php';+import nuxtjs from './nuxtjs';+import nodejs from './nodejs';+import nextjs from './nextjs';+import gatsby from './gatsby';+import docker from './docker';++export {+ vuejs,+ svelte,+ Static as static,+ rust,+ react,+ php,+ nuxtjs,+ nodejs,+ nextjs,+ gatsby,+ docker+};diff --git a/src/lib/api/applications/packs/nextjs/index.ts b/src/lib/api/applications/packs/nextjs/index.tsnew file mode 100644index 0000000000..af6821c02a--- /dev/null+++ b/src/lib/api/applications/packs/nextjs/index.ts@@ -0,0 +1,30 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';+// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,+const publishNodejsDocker = (configuration) => {+ return [+ 'FROM node:lts',+ 'WORKDIR /usr/src/app',+ configuration.build.command.build+ ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`+ : `+ COPY ${configuration.build.directory}/package*.json ./+ RUN ${configuration.build.command.installation}+ COPY ./${configuration.build.directory} ./`,+ `EXPOSE ${configuration.publish.port}`,+ 'CMD [ "yarn", "start" ]'+ ].join('\n');+};+export default async function (configuration) {+ await buildImage(configuration);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishNodejsDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/nodejs/index.ts b/src/lib/api/applications/packs/nodejs/index.tsnew file mode 100644index 0000000000..8001921ea0--- /dev/null+++ b/src/lib/api/applications/packs/nodejs/index.ts@@ -0,0 +1,31 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';+// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,+const publishNodejsDocker = (configuration) => {+ return [+ 'FROM node:lts',+ 'WORKDIR /usr/src/app',+ configuration.build.command.build+ ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`+ : `+ COPY ${configuration.build.directory}/package*.json ./+ RUN ${configuration.build.command.installation}+ COPY ./${configuration.build.directory} ./`,+ `EXPOSE ${configuration.publish.port}`,+ 'CMD [ "yarn", "start" ]'+ ].join('\n');+};++export default async function (configuration) {+ if (configuration.build.command.build) await buildImage(configuration);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishNodejsDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/nuxtjs/index.ts b/src/lib/api/applications/packs/nuxtjs/index.tsnew file mode 100644index 0000000000..eee103ca1d--- /dev/null+++ b/src/lib/api/applications/packs/nuxtjs/index.ts@@ -0,0 +1,31 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';+// `HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost:${configuration.publish.port}${configuration.publish.path} || exit 1`,+const publishNodejsDocker = (configuration) => {+ return [+ 'FROM node:lts',+ 'WORKDIR /usr/src/app',+ configuration.build.command.build+ ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag} /usr/src/app/${configuration.publish.directory} ./`+ : `+ COPY ${configuration.build.directory}/package*.json ./+ RUN ${configuration.build.command.installation}+ COPY ./${configuration.build.directory} ./`,+ `EXPOSE ${configuration.publish.port}`,+ 'CMD [ "yarn", "start" ]'+ ].join('\n');+};++export default async function (configuration) {+ await buildImage(configuration);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishNodejsDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/php/index.ts b/src/lib/api/applications/packs/php/index.tsnew file mode 100644index 0000000000..5bd55bb811--- /dev/null+++ b/src/lib/api/applications/packs/php/index.ts@@ -0,0 +1,25 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishPHPDocker = (configuration) => {+ return [+ 'FROM php:apache',+ 'RUN a2enmod rewrite',+ 'WORKDIR /usr/src/app',+ `COPY ./${configuration.build.directory} /var/www/html`,+ 'EXPOSE 80',+ ' CMD ["apache2-foreground"]'+ ].join('\n');+};++export default async function (configuration) {+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishPHPDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/react/index.ts b/src/lib/api/applications/packs/react/index.tsnew file mode 100644index 0000000000..9cb109979d--- /dev/null+++ b/src/lib/api/applications/packs/react/index.ts@@ -0,0 +1,28 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';++// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishStaticDocker = (configuration) => {+ return [+ 'FROM nginx:stable-alpine',+ 'COPY nginx.conf /etc/nginx/nginx.conf',+ 'WORKDIR /usr/share/nginx/html',+ `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,+ 'EXPOSE 80',+ 'CMD ["nginx", "-g", "daemon off;"]'+ ].join('\n');+};++export default async function (configuration) {+ await buildImage(configuration, true);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishStaticDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/rust/index.ts b/src/lib/api/applications/packs/rust/index.tsnew file mode 100644index 0000000000..c11a9db328--- /dev/null+++ b/src/lib/api/applications/packs/rust/index.ts@@ -0,0 +1,66 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import TOML from '@iarna/toml';+import { execShellAsync } from '$lib/api/common';++const publishRustDocker = (configuration, custom) => {+ return [+ 'FROM rust:latest',+ 'WORKDIR /app',+ `COPY --from=${configuration.build.container.name}:cache /app/target target`,+ `COPY --from=${configuration.build.container.name}:cache /usr/local/cargo /usr/local/cargo`,+ 'COPY . .',+ `RUN cargo build --release --bin ${custom.name}`,+ 'FROM debian:buster-slim',+ 'WORKDIR /app',+ 'RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libcurl4 ca-certificates && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*',+ 'RUN update-ca-certificates',+ `COPY --from=${configuration.build.container.name}:cache /app/target/release/${custom.name} ${custom.name}`,+ `EXPOSE ${configuration.publish.port}`,+ `CMD ["/app/${custom.name}"]`+ ].join('\n');+};++const cacheRustDocker = (configuration, custom) => {+ return [+ `FROM rust:latest AS planner-${configuration.build.container.name}`,+ 'WORKDIR /app',+ 'RUN cargo install cargo-chef',+ 'COPY . .',+ 'RUN cargo chef prepare --recipe-path recipe.json',+ 'FROM rust:latest',+ 'WORKDIR /app',+ 'RUN cargo install cargo-chef',+ `COPY --from=planner-${configuration.build.container.name} /app/recipe.json recipe.json`,+ 'RUN cargo chef cook --release --recipe-path recipe.json'+ ].join('\n');+};++export default async function (configuration) {+ const cargoToml = await execShellAsync(`cat ${configuration.general.workdir}/Cargo.toml`);+ const parsedToml = TOML.parse(cargoToml);+ const custom = {+ name: parsedToml.package.name+ };+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ cacheRustDocker(configuration, custom)+ );++ let stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:cache` }+ );+ await streamEvents(stream, configuration);++ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishRustDocker(configuration, custom)+ );++ stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/static/index.ts b/src/lib/api/applications/packs/static/index.tsnew file mode 100644index 0000000000..5f4d5c302e--- /dev/null+++ b/src/lib/api/applications/packs/static/index.ts@@ -0,0 +1,30 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';++// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishStaticDocker = (configuration) => {+ return [+ 'FROM nginx:stable-alpine',+ 'COPY nginx.conf /etc/nginx/nginx.conf',+ 'WORKDIR /usr/share/nginx/html',+ configuration.build.command.build+ ? `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`+ : `COPY ./${configuration.build.directory} ./`,+ 'EXPOSE 80',+ 'CMD ["nginx", "-g", "daemon off;"]'+ ].join('\n');+};++export default async function (configuration) {+ if (configuration.build.command.build) await buildImage(configuration, true);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishStaticDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/svelte/index.ts b/src/lib/api/applications/packs/svelte/index.tsnew file mode 100644index 0000000000..9cb109979d--- /dev/null+++ b/src/lib/api/applications/packs/svelte/index.ts@@ -0,0 +1,28 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';++// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishStaticDocker = (configuration) => {+ return [+ 'FROM nginx:stable-alpine',+ 'COPY nginx.conf /etc/nginx/nginx.conf',+ 'WORKDIR /usr/share/nginx/html',+ `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,+ 'EXPOSE 80',+ 'CMD ["nginx", "-g", "daemon off;"]'+ ].join('\n');+};++export default async function (configuration) {+ await buildImage(configuration, true);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishStaticDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/packs/vuejs/index.ts b/src/lib/api/applications/packs/vuejs/index.tsnew file mode 100644index 0000000000..d0f688a9af--- /dev/null+++ b/src/lib/api/applications/packs/vuejs/index.ts@@ -0,0 +1,28 @@+import { docker, streamEvents } from '$lib/api/docker';+import { promises as fs } from 'fs';+import { buildImage } from '../helpers';++// 'HEALTHCHECK --timeout=10s --start-period=10s --interval=5s CMD curl -I -s -f http://localhost/ || exit 1',+const publishStaticDocker = (configuration) => {+ return [+ 'FROM nginx:stable-alpine',+ 'COPY nginx.conf /etc/nginx/nginx.conf',+ 'WORKDIR /usr/share/nginx/html',+ `COPY --from=${configuration.build.container.name}:${configuration.build.container.tag}-cache /usr/src/app/${configuration.publish.directory} ./`,+ 'EXPOSE 80',+ 'CMD ["nginx", "-g", "daemon off;"]'+ ].join('\n');+};++export default async function (configuration) {+ await buildImage(configuration, true);+ await fs.writeFile(+ `${configuration.general.workdir}/Dockerfile`,+ publishStaticDocker(configuration)+ );+ const stream = await docker.engine.buildImage(+ { src: ['.'], context: configuration.general.workdir },+ { t: `${configuration.build.container.name}:${configuration.build.container.tag}` }+ );+ await streamEvents(stream, configuration);+}diff --git a/src/lib/api/applications/queueAndBuild.ts b/src/lib/api/applications/queueAndBuild.tsnew file mode 100644index 0000000000..a8a3ed892a--- /dev/null+++ b/src/lib/api/applications/queueAndBuild.ts@@ -0,0 +1,31 @@+import Deployment from '$models/Logs/Deployment';+import dayjs from 'dayjs';+import buildContainer from './buildContainer';+import { updateServiceLabels } from './configuration';+import copyFiles from './copyFiles';+import deploy from './deploy';+import { saveAppLog } from './logging';++export default async function (configuration, imageChanged) {+ const { id, organization, name, branch } = configuration.repository;+ const { domain } = configuration.publish;+ const { deployId, nickname } = configuration.general;+ await new Deployment({+ repoId: id,+ branch,+ deployId,+ domain,+ organization,+ name,+ nickname+ }).save();+ await saveAppLog(`${dayjs().format('YYYY-MM-DD HH:mm:ss.SSS')} Queued.`, configuration);+ await copyFiles(configuration);+ await buildContainer(configuration);+ await deploy(configuration, imageChanged);+ await Deployment.findOneAndUpdate(+ { repoId: id, branch, deployId, organization, name, domain },+ { repoId: id, branch, deployId, organization, name, domain, progress: 'done' }+ );+ await updateServiceLabels(configuration);+}diff --git a/src/lib/api/applications/templates.ts b/src/lib/api/applications/templates.tsnew file mode 100644index 0000000000..41de3b756f--- /dev/null+++ b/src/lib/api/applications/templates.ts@@ -0,0 +1,57 @@+const defaultBuildAndDeploy = {+ installation: 'yarn install',+ build: 'yarn build'+};++const templates = {+ svelte: {+ pack: 'svelte',+ ...defaultBuildAndDeploy,+ directory: 'public',+ name: 'Svelte'+ },+ next: {+ pack: 'nextjs',+ ...defaultBuildAndDeploy,+ port: 3000,+ name: 'NextJS'+ },+ nuxt: {+ pack: 'nuxtjs',+ ...defaultBuildAndDeploy,+ port: 3000,+ name: 'NuxtJS'+ },+ 'react-scripts': {+ pack: 'react',+ ...defaultBuildAndDeploy,+ directory: 'build',+ name: 'React'+ },+ 'parcel-bundler': {+ pack: 'static',+ ...defaultBuildAndDeploy,+ directory: 'dist',+ name: 'Parcel'+ },+ '@vue/cli-service': {+ pack: 'vuejs',+ ...defaultBuildAndDeploy,+ directory: 'dist',+ name: 'Vue'+ },+ gatsby: {+ pack: 'gatsby',+ ...defaultBuildAndDeploy,+ directory: 'public',+ name: 'Gatsby'+ },+ 'preact-cli': {+ pack: 'react',+ ...defaultBuildAndDeploy,+ directory: 'build',+ name: 'Preact'+ }+};++export default templates;diff --git a/src/lib/api/common.ts b/src/lib/api/common.tsnew file mode 100644index 0000000000..1b077bd64f--- /dev/null+++ b/src/lib/api/common.ts@@ -0,0 +1,44 @@+import shell from 'shelljs';+import User from '$models/User';+import jsonwebtoken from 'jsonwebtoken';++export function execShellAsync(cmd, opts = {}) {+ try {+ return new Promise(function (resolve, reject) {+ shell.config.silent = true;+ shell.exec(cmd, opts, function (code, stdout, stderr) {+ if (code !== 0) return reject(new Error(stderr));+ return resolve(stdout);+ });+ });+ } catch (error) {+ return new Error('Oops');+ }+}+export function cleanupTmp(dir) {+ if (dir !== '/') shell.rm('-fr', dir);+}++export async function verifyUserId(token) {+ const { JWT_SIGN_KEY } = process.env;+ try {+ const verify = jsonwebtoken.verify(token, JWT_SIGN_KEY);+ const found = await User.findOne({ uid: verify.jti });+ if (found) {+ return Promise.resolve(true);+ } else {+ return Promise.reject(false);+ }+ } catch (error) {+ console.log(error);+ return Promise.reject(false);+ }+}++export function delay(t) {+ return new Promise(function (resolve) {+ setTimeout(function () {+ resolve('OK');+ }, t);+ });+}diff --git a/src/lib/api/docker.ts b/src/lib/api/docker.tsnew file mode 100644index 0000000000..0c623e590b--- /dev/null+++ b/src/lib/api/docker.ts@@ -0,0 +1,27 @@+import Dockerode from 'dockerode';+import { saveAppLog } from './applications/logging';++const { DOCKER_ENGINE, DOCKER_NETWORK } = process.env;+export const docker = {+ engine: new Dockerode({+ socketPath: DOCKER_ENGINE+ }),+ network: DOCKER_NETWORK+};+export async function streamEvents(stream, configuration) {+ await new Promise((resolve, reject) => {+ docker.engine.modem.followProgress(stream, onFinished, onProgress);+ function onFinished(err, res) {+ if (err) reject(err);+ resolve(res);+ }+ function onProgress(event) {+ if (event.error) {+ saveAppLog(event.error, configuration, true);+ reject(event.error);+ } else if (event.stream) {+ saveAppLog(event.stream, configuration);+ }+ }+ });+}diff --git a/src/lib/api/request.ts b/src/lib/api/request.tsnew file mode 100644index 0000000000..108fdbf9b4--- /dev/null+++ b/src/lib/api/request.ts@@ -0,0 +1,102 @@+import { toast } from '@zerodevx/svelte-toast';+import { browser } from '$app/env';++export async function request(+ url,+ session,+ {+ method,+ body,+ customHeaders+ }: {+ url?: string;+ session?: any;+ fetch?: any;+ method?: string;+ body?: any;+ customHeaders?: Record<string, unknown>;+ } = {}+) {+ let fetch;+ if (browser) {+ fetch = window.fetch;+ } else {+ fetch = session.fetch;+ }+ let headers = { 'content-type': 'application/json; charset=UTF-8' };+ if (method === 'DELETE') {+ delete headers['content-type'];+ }+ const isGithub = url.match(/api.github.com/);+ if (isGithub) {+ headers = Object.assign(headers, {+ Authorization: `token ${session.ghToken}`+ });+ }+ const config: any = {+ method: method || (body ? 'POST' : 'GET'),+ cache: isGithub ? 'no-cache' : 'default',+ headers: {+ ...headers,+ ...customHeaders+ }+ };+ if (body) {+ config.body = JSON.stringify(body);+ }+ const response = await fetch(url, config);+ if (response.status >= 200 && response.status <= 299) {+ if (response.headers.get('content-type').match(/application\/json/)) {+ const json = await response.json();+ if (json?.success === false) {+ browser && json.showToast !== false && toast.push(json.message);+ return Promise.reject({+ status: response.status,+ error: json.message+ });+ }+ return json;+ } else if (response.headers.get('content-type').match(/text\/plain/)) {+ return await response.text();+ } else if (response.headers.get('content-type').match(/multipart\/form-data/)) {+ return await response.formData();+ } else {+ console.log(response);+ if (response.headers.get('content-disposition')) {+ const blob = await response.blob();+ console.log(blob);+ const link = document.createElement('a');+ link.href = URL.createObjectURL(blob);+ link.download = response.headers.get('content-disposition').split('=')[1] || 'backup.gz';+ link.target = '_blank';+ link.setAttribute('type', 'hidden');+ document.body.appendChild(link);+ link.click();+ link.remove();+ return;+ }+ return await response.blob();+ }+ } else {+ if (response.status === 401) {+ browser && toast.push('Unauthorized');+ return Promise.reject({+ status: response.status,+ error: 'Unauthorized'+ });+ } else if (response.status >= 500) {+ const error = (await response.json()).error;+ browser && toast.push(error);+ return Promise.reject({+ status: response.status,+ error: error || 'Oops, something is not okay. Are you okay?'+ });+ } else {+ browser && toast.push(response.statusText);+ return Promise.reject({+ status: response.status,+ error: response.statusText+ });+ }+ }+}diff --git a/src/lib/consts.ts b/src/lib/consts.tsnew file mode 100644index 0000000000..de4694694d--- /dev/null+++ b/src/lib/consts.ts@@ -0,0 +1 @@+export const publicPages = ['/', '/api/v1/login/github/app', '/api/v1/webhooks/deploy', '/success'];diff --git a/src/models/Logs/Application.ts b/src/models/Logs/Application.tsnew file mode 100644index 0000000000..7e8291dadf--- /dev/null+++ b/src/models/Logs/Application.ts@@ -0,0 +1,11 @@+import mongoose from 'mongoose';+const { Schema } = mongoose;++const ApplicationLogsSchema = new Schema({+ deployId: { type: String, required: true },+ event: { type: String, required: true }+});++ApplicationLogsSchema.set('timestamps', true);++export default mongoose.model('logs-application', ApplicationLogsSchema);diff --git a/src/models/Logs/Deployment.ts b/src/models/Logs/Deployment.tsnew file mode 100644index 0000000000..34d5df654e--- /dev/null+++ b/src/models/Logs/Deployment.ts@@ -0,0 +1,17 @@+import mongoose from 'mongoose';+const { Schema } = mongoose;++const DeploymentSchema = new Schema({+ deployId: { type: String, required: true },+ nickname: { type: String, required: true },+ repoId: { type: Number, required: true },+ organization: { type: String, required: true },+ name: { type: String, required: true },+ branch: { type: String, required: true },+ domain: { type: String, required: true },+ progress: { type: String, require: true, default: 'queued' }+});++DeploymentSchema.set('timestamps', true);++export default mongoose.model('deployment', DeploymentSchema);diff --git a/src/models/Logs/Server.ts b/src/models/Logs/Server.tsnew file mode 100644index 0000000000..0c949b4d8b--- /dev/null+++ b/src/models/Logs/Server.ts@@ -0,0 +1,23 @@+import mongoose from 'mongoose';+import { version } from '../../../package.json';+const { Schema, Document } = mongoose;++// export interface ILogsServer extends Document {+// version: string;+// type: string;+// message: string;+// stack: string;+// seen: Boolean;+// }++const LogsServerSchema = new Schema({+ version: { type: String, default: version },+ type: { type: String, required: true },+ message: { type: String, required: true },+ stack: { type: String },+ seen: { type: Boolean, default: false }+});++LogsServerSchema.set('timestamps', { createdAt: 'createdAt', updatedAt: false });++export default mongoose.model('logs-server', LogsServerSchema);diff --git a/src/models/Settings.ts b/src/models/Settings.tsnew file mode 100644index 0000000000..63686c9804--- /dev/null+++ b/src/models/Settings.ts@@ -0,0 +1,17 @@+import mongoose from 'mongoose';+const { Schema } = mongoose;+export interface ISettings extends Document {+ applicationName: string;+ allowRegistration: string;+ sendErrors: boolean;+}++const SettingsSchema = new Schema({+ applicationName: { type: String, required: true, default: 'coolify' },+ allowRegistration: { type: Boolean, required: true, default: false },+ sendErrors: { type: Boolean, required: true, default: true }+});++SettingsSchema.set('timestamps', true);++export default mongoose.model('settings', SettingsSchema);diff --git a/src/models/User.ts b/src/models/User.tsnew file mode 100644index 0000000000..818aa4946f--- /dev/null+++ b/src/models/User.ts@@ -0,0 +1,17 @@+import mongoose from 'mongoose';+const { Schema } = mongoose;+export interface IUser extends Document {+ email: string;+ avatar?: string;+ uid: string;+}++const UserSchema = new Schema({+ email: { type: String, required: true, unique: true },+ avatar: { type: String },+ uid: { type: String, required: true }+});++UserSchema.set('timestamps', true);++export default mongoose.model('user', UserSchema);diff --git a/src/pages/_fallback.svelte b/src/pages/_fallback.sveltedeleted file mode 100644index 6d8ba0f642..0000000000--- a/src/pages/_fallback.svelte+++ /dev/null@@ -1,11 +0,0 @@-<script>- import { url } from "@roxi/routify/runtime";-</script>--<div class="text-center text-white pt-10">- <div class="text-6xl font-bold tracking-tight py-3 text-center">- 404- </div>- <div class="pt-2 py-3 font-bold text-xl">Ah you lost. Don't worry. I'm here for you!</div>- <a class="font-bold hover:underline text-2xl" href="{$url('/dashboard')}">Go back</a>-</div>diff --git a/src/pages/_layout.svelte b/src/pages/_layout.sveltedeleted file mode 100644index e49e7f5d82..0000000000--- a/src/pages/_layout.svelte+++ /dev/null@@ -1,354 +0,0 @@-<style lang="postcss">- .min-w-4rem {- min-width: 4rem;- }-</style>--<script>- import { goto, route, isChangingPage } from "@roxi/routify/runtime";- import { loggedIn, session, fetch, deployments, activePage } from "@store";- import { toast } from "@zerodevx/svelte-toast";- import { onMount } from "svelte";- import compareVersions from "compare-versions";- import packageJson from "../../package.json";- import Tooltip from "../components/Tooltip/Tooltip.svelte";-- let upgradeAvailable = false;- let upgradeDisabled = false;- let upgradeDone = false;- let latest = {};- let showAck = false;- const branch =- process.env.NODE_ENV === "production" &&- window.location.hostname !== "test.andrasbacsai.dev"- ? "main"- : "next";-- $: if ($isChangingPage) {- const path = window.location.pathname;- if (path === "/dashboard/applications" || path.match(/\/application/)) {- $activePage.mainmenu = "applications";- } else if (path === "/dashboard/databases" || path.match(/\/database/)) {- $activePage.mainmenu = "databases";- } else if (path === "/dashboard/services" || path.match(/\/service/)) {- $activePage.mainmenu = "services";- } else if (path === "/settings") {- $activePage.mainmenu = "settings";- } else {- $activePage.mainmenu = null;- }-- if (path.match(/\/application\/.*\/logs/)) {- $activePage.application = "logs";- $activePage.new = false;- } else if (path === "/application/new") {- $activePage.application = "configuration";- $activePage.new = true;- } else if (path.match(/\/application\/.*\/configuration/)) {- $activePage.application = "configuration";- $activePage.new = false;- } else {- $activePage.application = null;- }- }- onMount(async () => {- if ($session.token) {- upgradeAvailable = await checkUpgrade();- if (!localStorage.getItem("automaticErrorReportsAck")) {- showAck = true;- if (latest?.coolify[branch]?.settings?.sendErrors) {- const settings = {- sendErrors: true,- };- await $fetch("/api/v1/settings", {- body: {- ...settings,- },- headers: {- Authorization: `Bearer ${$session.token}`,- },- });- }- }- }- });- function ackError() {- localStorage.setItem("automaticErrorReportsAck", "true");- showAck = false;- }- async function verifyToken() {- if ($session.token) {- try {- await $fetch("/api/v1/verify", {- headers: {- Authorization: `Bearer ${$session.token}`,- },- });- $deployments = await $fetch(`/api/v1/dashboard`);- } catch (e) {- toast.push("Unauthorized.");- logout();- }- }- }-- if (!$loggedIn) {- logout();- $goto("/index");- }-- function logout() {- localStorage.removeItem("token");- $session.token = null;- $session.githubAppToken = null;- $goto("/");- }- function reloadInAMin() {- setTimeout(() => {- location.reload();- }, 30000);- }- async function upgrade() {- try {- upgradeDisabled = true;- await $fetch(`/api/v1/upgrade`);- upgradeDone = true;- } catch (error) {- toast.push(- "Something happened during update. Ooops. Automatic error reporting will happen soon.",- );- }- }- async function checkUpgrade() {- latest = await window- .fetch(`https://get.coollabs.io/version.json`, {- cache: "no-cache",- })- .then(r => r.json());-- return compareVersions(- latest.coolify[branch].version,- packageJson.version,- ) === 1- ? true- : false;- }-</script>--{#await verifyToken() then notUsed}- {#if showAck}- <div- class="p-2 fixed top-0 right-0 z-50 w-64 m-2 rounded border-gradient-full bg-black"- >- <div class="text-white text-xs space-y-2 text-justify font-medium">- <div>- We implemented an automatic error reporting feature, which is enabled- by default.- </div>- <div>- Why? Because we would like to hunt down bugs faster and easier.- </div>- <div class="py-5">- If you do not like it, you can turn it off in the <button- class="underline font-bold"- on:click="{$goto('/settings')}">Settings menu</button- >.- </div>- <button- class="button p-2 bg-warmGray-800 w-full text-center hover:bg-warmGray-700"- on:click="{ackError}">OK</button- >- </div>- </div>- {/if}- {#if $route.path !== "/index"}- <nav- class="w-16 bg-warmGray-800 text-white top-0 left-0 fixed min-w-4rem min-h-screen"- >- <div- class="flex flex-col w-full h-screen items-center transition-all duration-100"- class:border-green-500="{$activePage.mainmenu === 'applications'}"- class:border-purple-500="{$activePage.mainmenu === 'databases'}"- >- <img class="w-10 pt-4 pb-4" src="/favicon.png" alt="coolLabs logo" />- <Tooltip position="right" label="Applications">- <div- class="p-2 hover:bg-warmGray-700 rounded hover:text-green-500 mt-4 transition-all duration-100 cursor-pointer"- on:click="{() => $goto('/dashboard/applications')}"- class:text-green-500="{$activePage.mainmenu === 'applications'}"- class:bg-warmGray-700="{$activePage.mainmenu === 'applications'}"- >- <svg- class="w-8"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><rect x="4" y="4" width="16" height="16" rx="2" ry="2"- ></rect><rect x="9" y="9" width="6" height="6"></rect><line- x1="9"- y1="1"- x2="9"- y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line- x1="9"- y1="20"- x2="9"- y2="23"></line><line x1="15" y1="20" x2="15" y2="23"- ></line><line x1="20" y1="9" x2="23" y2="9"></line><line- x1="20"- y1="14"- x2="23"- y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line- x1="1"- y1="14"- x2="4"- y2="14"></line></svg- >- </div>- </Tooltip>- <Tooltip position="right" label="Databases">- <div- class="p-2 hover:bg-warmGray-700 rounded hover:text-purple-500 my-4 transition-all duration-100 cursor-pointer"- on:click="{() => $goto('/dashboard/databases')}"- class:text-purple-500="{$activePage.mainmenu === 'databases'}"- class:bg-warmGray-700="{$activePage.mainmenu === 'databases'}"- >- <svg- class="w-8"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"- ></path>- </svg>- </div>- </Tooltip>- <Tooltip position="right" label="Services">- <div- class="p-2 hover:bg-warmGray-700 rounded hover:text-blue-500 transition-all duration-100 cursor-pointer"- on:click="{() => $goto('/dashboard/services')}"- class:text-blue-500="{$activePage.mainmenu === 'services'}"- class:bg-warmGray-700="{$activePage.mainmenu === 'services'}"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-8"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"- ></path>- </svg>- </div>- </Tooltip>- <div class="flex-1"></div>- <Tooltip position="right" label="Settings">- <button- class="p-2 hover:bg-warmGray-700 rounded hover:text-yellow-500 transition-all duration-100 cursor-pointer"- class:text-yellow-500="{$activePage.mainmenu === 'settings'}"- class:bg-warmGray-700="{$activePage.mainmenu === 'settings'}"- on:click="{() => $goto('/settings')}"- >- <svg- class="w-8"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"- ></path>- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>- </svg>- </button>- </Tooltip>- <Tooltip position="right" label="Logout">- <button- class="p-2 hover:bg-warmGray-700 rounded hover:text-red-500 my-4 transition-all duration-100 cursor-pointer"- on:click="{logout}"- >- <svg- class="w-7"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- ><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"- ></path><polyline points="16 17 21 12 16 7"></polyline><line- x1="21"- y1="12"- x2="9"- y2="12"></line></svg- >- </button>- </Tooltip>- <div- class="cursor-pointer text-xs font-bold text-warmGray-400 py-2 hover:bg-warmGray-700 w-full text-center"- >- {packageJson.version}- </div>- </div>- </nav>- {/if}- {#if upgradeAvailable}- <footer- class="fixed bottom-0 right-0 p-4 px-6 w-auto rounded-tl text-white hover:scale-110 transform transition duration-100"- >- <div class="flex items-center">- <div></div>- <div class="flex-1"></div>- {#if !upgradeDisabled}- <button- class="bg-gradient-to-r from-purple-500 via-pink-500 to-red-500 text-xs font-bold rounded px-2 py-2"- disabled="{upgradeDisabled}"- on:click="{upgrade}"- >New version available, <br />click here to upgrade!</button- >- {:else if upgradeDone}- <button- use:reloadInAMin- class="font-bold text-xs rounded px-2 cursor-not-allowed"- disabled="{upgradeDisabled}"- >Upgrade done. 🎉 Automatically reloading in 30s.</button- >- {:else}- <button- class="opacity-50 tracking-tight font-bold text-xs rounded px-2 cursor-not-allowed"- disabled="{upgradeDisabled}"- >Upgrading. It could take a while, please wait...</button- >- {/if}- </div>- </footer>- {/if}- <main class:main="{$route.path !== '/index'}">- <slot />- </main>-{:catch test}- {$goto("/index")}-{/await}diff --git a/src/pages/application/[organization]/[name]/[branch]/configuration.svelte b/src/pages/application/[organization]/[name]/[branch]/configuration.sveltedeleted file mode 100644index 48bcc3ca6c..0000000000--- a/src/pages/application/[organization]/[name]/[branch]/configuration.svelte+++ /dev/null@@ -1,5 +0,0 @@-<script>- import Configuration from "../../../../../components/Application/Configuration/Configuration.svelte";-</script>--<Configuration />diff --git a/src/pages/application/[organization]/[name]/[branch]/index.svelte b/src/pages/application/[organization]/[name]/[branch]/index.sveltedeleted file mode 100644index d17f7bec5f..0000000000--- a/src/pages/application/[organization]/[name]/[branch]/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { params, redirect } from "@roxi/routify";- $redirect(`/application/${$params.organization}/${$params.name}/${$params.branch}/configuration`);-</script>diff --git a/src/pages/application/[organization]/[name]/[branch]/logs/[deployId].svelte b/src/pages/application/[organization]/[name]/[branch]/logs/[deployId].sveltedeleted file mode 100644index 591b28afcd..0000000000--- a/src/pages/application/[organization]/[name]/[branch]/logs/[deployId].svelte+++ /dev/null@@ -1,62 +0,0 @@-<script>- import { params, redirect } from "@roxi/routify";- import { onDestroy, onMount } from "svelte";- import { fade } from "svelte/transition";- import { fetch } from "@store";- import Loading from "../../../../../../components/Loading.svelte";-- let loadLogsInterval;- let logs = [];-- onMount(() => {- loadLogsInterval = setInterval(() => {- loadLogs();- }, 500);- });-- async function loadLogs() {- try {- const { events, progress } = await $fetch(- `/api/v1/application/deploy/logs/${$params.deployId}`,- );- logs = [...events];- if (progress === "done" || progress === "failed") {- clearInterval(loadLogsInterval);- }- } catch(error) {- $redirect('/dashboard')- }-- }- onDestroy(() => {- clearInterval(loadLogsInterval);- });-</script>--<div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- in:fade="{{ duration: 100 }}"->- <div>Deployment log</div>-</div>-{#await loadLogs()}- <Loading />-{:then}- <div- class="text-center px-6"- in:fade="{{ duration: 100 }}"- >- <div in:fade="{{ duration: 100 }}">- <pre- class="leading-4 text-left text-sm font-semibold tracking-tighter rounded-lg bg-black p-6 whitespace-pre-wrap">- {#if logs.length > 0}- {#each logs as log}- {log + '\n'}- {/each}- {:else}- It's starting soon.- {/if}- </pre>- </div>- </div>-{/await}diff --git a/src/pages/application/[organization]/[name]/[branch]/logs/index.svelte b/src/pages/application/[organization]/[name]/[branch]/logs/index.sveltedeleted file mode 100644index 42a91340e4..0000000000--- a/src/pages/application/[organization]/[name]/[branch]/logs/index.svelte+++ /dev/null@@ -1,140 +0,0 @@-<style lang="postcss">- .w-300 {- width: 300px !important;- }-</style>--<script>- import { fetch, application, dateOptions } from "@store";- import { fade } from "svelte/transition";- import { goto } from "@roxi/routify";- import { onDestroy, onMount } from "svelte";-- import Loading from "../../../../../../components/Loading.svelte";-- let loadDeploymentsInterval = null;- let loadLogsInterval = null;- let deployments = [];- let logs = [];- let page = 1;-- onMount(async () => {- loadApplicationLogs();- loadLogsInterval = setInterval(() => {- loadApplicationLogs();- }, 3000);- loadDeploymentsInterval = setInterval(() => {- loadDeploymentLogs();- }, 1000);- });- onDestroy(() => {- clearInterval(loadDeploymentsInterval);- clearInterval(loadLogsInterval);- });- async function loadMoreDeploymentLogs() {- page = page + 1;- await loadDeploymentLogs();- }- async function loadDeploymentLogs() {- deployments = await $fetch(- `/api/v1/application/deploy/logs?repoId=${$application.repository.id}&branch=${$application.repository.branch}&page=${page}`,- );- }- async function loadApplicationLogs() {- logs = (- await $fetch(- `/api/v1/application/logs?name=${$application.build.container.name}`,- )- ).logs;- }-</script>--<div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- in:fade="{{ duration: 100 }}"->- <div>Logs</div>-</div>-{#await loadDeploymentLogs()}- <Loading />-{:then}- <div- class="text-center px-6"- in:fade="{{ duration: 100 }}"- >- <div class="flex pt-2 space-x-4 w-full">- <div class="w-full">- <div class="font-bold text-left pb-2 text-xl">Application logs</div>- {#if logs.length === 0}- <div class="text-xs font-semibold tracking-tighter">Waiting for the logs...</div>- {:else}- <pre- class="leading-4 text-left text-sm font-semibold tracking-tighter rounded-lg bg-black p-6 whitespace-pre-wrap w-full">- {#each logs as log}- {log + '\n'}- {/each}- </pre>- {/if}- </div>- <div>- <div class="font-bold text-left pb-2 text-xl w-300">- Deployment logs- </div>- {#if deployments.length > 0}- {#each deployments as deployment}- <div- in:fade="{{ duration: 100 }}"- class="flex space-x-4 text-md py-4 hover:shadow mx-auto cursor-pointer transition-all duration-100 border-l-4 border-transparent rounded hover:bg-warmGray-700"- class:hover:border-green-500="{deployment.progress === 'done'}"- class:border-yellow-300="{deployment.progress !== 'done' &&- deployment.progress !== 'failed'}"- class:bg-warmGray-800="{deployment.progress !== 'done' &&- deployment.progress !== 'failed'}"- class:hover:bg-red-200="{deployment.progress === 'failed'}"- class:hover:border-red-500="{deployment.progress === 'failed'}"- on:click="{() => $goto(`./${deployment.deployId}`)}"- >- <div- class="font-bold text-sm px-3 flex justify-center items-center"- >- {deployment.branch}- </div>- <div class="flex-1"></div>- <div class="px-3 w-48">- <div- class="text-xs"- title="{new Intl.DateTimeFormat(- 'default',- $dateOptions,- ).format(new Date(deployment.createdAt))}"- >- {deployment.since}- </div>- {#if deployment.progress === "done"}- <div class="text-xs">- Deployed in <span class="font-bold">{deployment.took}s</span- >- </div>- {:else if deployment.progress === "failed"}- <div class="text-xs text-red-500">Failed</div>- {:else}- <div class="text-xs">Deploying...</div>- {/if}- </div>- </div>- {/each}- <button- class="text-xs bg-green-600 hover:bg-green-500 p-1 rounded text-white px-2 font-medium my-6"- on:click="{loadMoreDeploymentLogs}">Show more</button- >- {:else}- <div class="text-left text-sm tracking-tight">- No deployments found- </div>- {/if}- </div>- </div>- </div>-{:catch}- <div class="text-center font-bold tracking-tight text-xl">No logs found</div>-{/await}diff --git a/src/pages/application/[organization]/[name]/[branch]/overview.svelte b/src/pages/application/[organization]/[name]/[branch]/overview.sveltedeleted file mode 100644index 992438afe0..0000000000--- a/src/pages/application/[organization]/[name]/[branch]/overview.svelte+++ /dev/null@@ -1,30 +0,0 @@-<script>- import { application } from "@store";- import Configuration from "../../../../../components/Application/Configuration/Configuration.svelte";-</script>--<div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- Overview of- <a- target="_blank"- class="hover:underline cursor-pointer px-2"- href="{'https://' +- $application.publish.domain +- $application.publish.path}">{$application.publish.domain}</a- >- <a- target="_blank"- class="icon"- href="{`https://github.com/${$application.repository.organization}/${$application.repository.name}`}"- >- <svg class="w-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/></svg></a- >-- </div>-</div>---<Configuration />diff --git a/src/pages/application/[organization]/[name]/index.svelte b/src/pages/application/[organization]/[name]/index.sveltedeleted file mode 100644index 69f34470d2..0000000000--- a/src/pages/application/[organization]/[name]/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/applications");-</script>diff --git a/src/pages/application/[organization]/index.svelte b/src/pages/application/[organization]/index.sveltedeleted file mode 100644index 69f34470d2..0000000000--- a/src/pages/application/[organization]/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/applications");-</script>diff --git a/src/pages/application/_layout.svelte b/src/pages/application/_layout.sveltedeleted file mode 100644index cac22ce5af..0000000000--- a/src/pages/application/_layout.svelte+++ /dev/null@@ -1,75 +0,0 @@-<script>- import { params, redirect } from "@roxi/routify";- import {- application,- fetch,- initialApplication,- initConf,- deployments,- activePage,- } from "@store";- import { onDestroy } from "svelte";- import Loading from "../../components/Loading.svelte";- import { toast } from "@zerodevx/svelte-toast";- import Navbar from "../../components/Application/Navbar.svelte";-- $application.repository.organization = $params.organization;- $application.repository.name = $params.name;- $application.repository.branch = $params.branch;-- async function setConfiguration() {- try {- const config = await $fetch(`/api/v1/config`, {- body: {- name: $application.repository.name,- organization: $application.repository.organization,- branch: $application.repository.branch,- },- });- $application = { ...config };- $initConf = JSON.parse(JSON.stringify($application));- } catch (error) {- toast.push("Configuration not found.");- $redirect("/dashboard/applications");- }- }- async function loadConfiguration() {- if (!$activePage.new) {- if ($deployments.length === 0) {- await setConfiguration();- } else {- const found = $deployments.applications.deployed.find(app => {- const { organization, name, branch } = app.configuration;- if (- organization === $application.repository.organization &&- name === $application.repository.name &&- branch === $application.repository.branch- ) {- return app;- }- });- if (found) {- $application = { ...found.configuration };- $initConf = JSON.parse(JSON.stringify($application));- } else {- await setConfiguration();- }- }- } else {- $application = JSON.parse(JSON.stringify(initialApplication));- }- }-- onDestroy(() => {- $application = JSON.parse(JSON.stringify(initialApplication));- });-</script>--{#await loadConfiguration()}- <Loading />-{:then}- <Navbar />- <div class="text-white">- <slot />- </div>-{/await}diff --git a/src/pages/application/index.svelte b/src/pages/application/index.sveltedeleted file mode 100644index 69f34470d2..0000000000--- a/src/pages/application/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/applications");-</script>diff --git a/src/pages/application/new.svelte b/src/pages/application/new.sveltedeleted file mode 100644index 9517ccadb0..0000000000--- a/src/pages/application/new.svelte+++ /dev/null@@ -1,5 +0,0 @@-<script>- import Configuration from "../../components/Application/Configuration/Configuration.svelte";-</script>--<Configuration />diff --git a/src/pages/dashboard/_layout.svelte b/src/pages/dashboard/_layout.sveltedeleted file mode 100644index e64ba72235..0000000000--- a/src/pages/dashboard/_layout.svelte+++ /dev/null@@ -1,30 +0,0 @@-<script>- import { fetch, deployments } from "@store";- import { onDestroy, onMount } from "svelte";- import { toast } from "@zerodevx/svelte-toast";- let loadDashboardInterval = null;-- async function loadDashboard() {- try {- $deployments = await $fetch(`/api/v1/dashboard`);- } catch (error) {- toast.push(error?.error || error);- }- }-- onMount(() => {- loadDashboard();- loadDashboardInterval = setInterval(() => {- loadDashboard();- }, 2000);- });-- onDestroy(() => {- clearInterval(loadDashboardInterval);- });--</script>--<div class="min-h-full text-white">- <slot />-</div>diff --git a/src/pages/dashboard/applications.svelte b/src/pages/dashboard/applications.sveltedeleted file mode 100644index 58da198700..0000000000--- a/src/pages/dashboard/applications.svelte+++ /dev/null@@ -1,295 +0,0 @@-<script>- import { deployments, dateOptions } from "@store";- import { fade } from "svelte/transition";- import { goto } from "@roxi/routify/runtime";-- function switchTo(application) {- const { branch, name, organization } = application;- $goto(`/application/:organization/:name/:branch/configuration`, {- name,- organization,- branch,- });- }-</script>--<div- in:fade="{{ duration: 100 }}"- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"->- <div>Applications</div>- <button- class="icon p-1 ml-4 bg-green-500 hover:bg-green-400"- on:click="{() => $goto('/application/new')}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>- </svg>- </button>-</div>-<div in:fade="{{ duration: 100 }}">- {#if $deployments.applications?.deployed.length > 0}- <div class="px-4 mx-auto py-5 z-auto">- <div class="flex items-center justify-center flex-wrap">- {#each $deployments.applications.deployed as application}- <div class="px-4 pb-4">- <div- class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-green-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"- on:click="{() =>- switchTo({- branch:- application.configuration.repository.branch,- name: application.configuration.repository.name,- organization:- application.configuration.repository- .organization,- })}"- >- <div class="flex items-center">- {#if application.configuration.build.pack === "static"}- <svg- class="text-white w-10 h-10 absolute top-0 left-0 -m-4"- viewBox="0 0 32 32"- fill="none"- xmlns="http://www.w3.org/2000/svg"- ><g clip-path="url(#HTML5_Clip0_4)"- ><path- d="M30.216 0L27.6454 28.7967L16.0907 32L4.56783 28.8012L2 0H30.216Z"- fill="#E44D26"></path><path- d="M16.108 29.5515L25.4447 26.963L27.6415 2.35497H16.108V29.5515Z"- fill="#F16529"></path><path- d="M11.1109 9.4197H16.108V5.88731H7.25053L7.33509 6.83499L8.20327 16.5692H16.108V13.0369H11.4338L11.1109 9.4197Z"- fill="#EBEBEB"></path><path- d="M11.907 18.3354H8.36111L8.856 23.8818L16.0917 25.8904L16.108 25.8859V22.2108L16.0925 22.2149L12.1585 21.1527L11.907 18.3354Z"- fill="#EBEBEB"></path><path- d="M16.0958 16.5692H20.4455L20.0354 21.1504L16.0958 22.2138V25.8887L23.3373 23.8817L23.3904 23.285L24.2205 13.9855L24.3067 13.0369H16.0958V16.5692Z"- fill="white"></path><path- d="M16.0958 9.41105V9.41969H24.6281L24.6989 8.62572L24.8599 6.83499L24.9444 5.88731H16.0958V9.41105Z"- fill="white"></path></g- ><defs- ><clipPath id="HTML5_Clip0_4"- ><rect width="32" height="32" fill="white"- ></rect></clipPath- ></defs- ></svg- >- {:else if application.configuration.build.pack === "react"}- <svg- class="text-blue-500 w-10 h-10 absolute top-0 left-0 -m-4"- viewBox="0 0 128 128"- >- <g fill="#61DAFB"- ><circle cx="64" cy="64" r="11.4"></circle><path- d="M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3-12.5 4.8-19.3 11.4-19.3 18.8s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8zm-14.8-30.5c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9zm-11.2 59.3c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4-2.2-3.2-4.2-6.4-6-9.6-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4 2.2 3.2 4.2 6.4 6 9.6 1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10zm8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2zm-25.6 27.1c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2 2.3 0 4.6-.1 6.9-.2-2.2 2.9-4.5 5.7-6.9 8.3zm-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zm25.6-27.1c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zm-54.5-16.2c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zm-24.7 29c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5-13.8-4-22.1-10-22.1-15.6zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zm60.8-20.3c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z"- ></path></g- >- </svg>- {:else if application.configuration.build.pack === "gatsby"}- <svg class="w-10 h-10 absolute top-0 left-0 -m-4" viewBox="0 0 128 128">- <path fill="#64328B" d="M64,0C28.7,0,0,28.7,0,64v0c0,35.3,28.7,64,64,64s64-28.7,64-64v0C128,28.7,99.3,0,64,0z M13.2,64L64,114.8 C35.9,114.8,13.2,92.1,13.2,64z M75.4,113.5l-60.9-61C19.7,30,39.9,13.2,64,13.2c16.6,0,31.3,7.9,40.5,20.2l-7.5,7.2 C89.7,30.2,77.7,23.5,64,23.5c-17.6,0-32.5,11.2-38.1,26.8C33.1,57,75.4,98.8,78.1,102c12.7-4.7,22.3-15.5,25.4-28.9H81.9v-9.4 l33,0.2C114.8,88.2,98,108.4,75.4,113.5z"></path>- </svg>- {:else if application.configuration.build.pack === "nuxtjs"}- <svg class="w-10 h-10 absolute top-0 left-0 -m-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">- <g fill-rule="nonzero" transform="translate(0 50)" fill="none">- <path d="M227.92099 83.45116l-13.6889 24.10141-46.8148-82.44693L23.7037 278.17052h97.3037c0 13.31084 10.61252 24.10142 23.70371 24.10142H23.70371c-8.46771 0-16.29145-4.59601-20.5246-12.05272-4.23315-7.4567-4.23272-16.64312.00114-24.0994L146.89383 13.05492c4.23415-7.45738 12.0596-12.05138 20.5284-12.05138 8.46878 0 16.29423 4.594 20.52839 12.05138l39.97037 70.39623z" fill="#00C58E"/>- <path d="M331.6642 266.11981l-90.05432-158.56724-13.6889-24.10141-13.68888 24.10141-90.04445 158.56724c-4.23385 7.45629-4.23428 16.64271-.00113 24.09941 4.23314 7.4567 12.05689 12.05272 20.5246 12.05272h166.4c8.46946 0 16.29644-4.591 20.532-12.04837 4.23555-7.45736 4.23606-16.64592.00132-24.10376h.01976zM144.7111 278.17052L227.921 131.65399l83.19012 146.51653h-166.4z" fill="#FFF"/>- <path d="M396.04938 290.22123c-4.23344 7.45557-12.05656 12.0507-20.52345 12.0507H311.1111c13.0912 0 23.7037-10.79057 23.7037-24.10141h40.66173L260.09877 74.98553l-18.4889 32.56704L227.921 83.45116l11.65432-20.51634c4.23416-7.45738 12.0596-12.05138 20.5284-12.05138 8.46879 0 16.29423 4.594 20.52839 12.05138l115.41728 203.185c4.23426 7.457 4.23426 16.6444 0 24.1014z" fill="#108775"/>- </g>- </svg>- {:else if application.configuration.build.pack === "svelte"}- <svg- class="w-10 h-10 absolute top-0 left-0 -m-4"- version="1.1"- id="Layer_1"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- x="0px"- y="0px"- viewBox="0 0 98.1 118"- style="enable-background:new 0 0 98.1 118;"- xml:space="preserve"- >- <path- fill="#FF3E00"- d="M91.8,15.6C80.9-0.1,59.2-4.7,43.6,5.2L16.1,22.8C8.6,27.5,3.4,35.2,1.9,43.9c-1.3,7.3-0.2,14.8,3.3,21.3 c-2.4,3.6-4,7.6-4.7,11.8c-1.6,8.9,0.5,18.1,5.7,25.4c11,15.7,32.6,20.3,48.2,10.4l27.5-17.5c7.5-4.7,12.7-12.4,14.2-21.1 c1.3-7.3,0.2-14.8-3.3-21.3c2.4-3.6,4-7.6,4.7-11.8C99.2,32.1,97.1,22.9,91.8,15.6"- ></path>- <path- fill="#FFFFFF"- d="M40.9,103.9c-8.9,2.3-18.2-1.2-23.4-8.7c-3.2-4.4-4.4-9.9-3.5-15.3c0.2-0.9,0.4-1.7,0.6-2.6l0.5-1.6l1.4,1 c3.3,2.4,6.9,4.2,10.8,5.4l1,0.3l-0.1,1c-0.1,1.4,0.3,2.9,1.1,4.1c1.6,2.3,4.4,3.4,7.1,2.7c0.6-0.2,1.2-0.4,1.7-0.7L65.5,72 c1.4-0.9,2.3-2.2,2.6-3.8c0.3-1.6-0.1-3.3-1-4.6c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7l-10.5,6.7 c-1.7,1.1-3.6,1.9-5.6,2.4c-8.9,2.3-18.2-1.2-23.4-8.7c-3.1-4.4-4.4-9.9-3.4-15.3c0.9-5.2,4.1-9.9,8.6-12.7l27.5-17.5 c1.7-1.1,3.6-1.9,5.6-2.5c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.2,0.9-0.4,1.7-0.7,2.6l-0.5,1.6l-1.4-1 c-3.3-2.4-6.9-4.2-10.8-5.4l-1-0.3l0.1-1c0.1-1.4-0.3-2.9-1.1-4.1c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7L32.4,46.1 c-1.4,0.9-2.3,2.2-2.6,3.8s0.1,3.3,1,4.6c1.6,2.3,4.4,3.3,7.1,2.6c0.6-0.2,1.2-0.4,1.7-0.7l10.5-6.7c1.7-1.1,3.6-1.9,5.6-2.5 c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.9,5.2-4.1,9.9-8.6,12.7l-27.5,17.5C44.8,102.5,42.9,103.3,40.9,103.9"- ></path>- </svg>- {:else if application.configuration.build.pack === "vuejs"}- <svg- class="text-green-500 w-10 h-10 absolute top-0 left-0 -m-4"- viewBox="0 0 128 128"- >- <path- d="m-2.3125e-8 8.9337 49.854 0.1586 14.167 24.47 14.432-24.47 49.547-0.1577-63.834 110.14zm126.98 0.6374-24.36 0.0207-38.476 66.052-38.453-66.052-24.749-0.0194 63.211 107.89zm-25.149-0.008-22.745 0.16758l-15.053 24.647-14.817-24.647-22.794-0.1679 37.731 64.476zM25.997 9.3929l23.002 0.0087M25.997 9.3929l23.002 0.0087"- fill="none"></path><path- d="m25.997 9.3929 23.002 0.0087l15.036 24.958 14.983-24.956 22.982-0.0057-37.85 65.655z"- fill="#35495e"></path><path- d="m0.91068 9.5686 25.066-0.1711 38.151 65.658 37.852-65.654 25.11 0.0263-62.966 108.06z"- fill="#41b883"></path>- </svg>- {:else if application.configuration.build.pack === "nextjs"}- <svg- class="text-blue-500 w-10 h-10 absolute top-0 left-0 -m-4 fill-current"- viewBox="0 0 128 128"- >- <path- d="M64 0C28.7 0 0 28.7 0 64s28.7 64 64 64c11.2 0 21.7-2.9 30.8-7.9L48.4 55.3v36.6h-6.8V41.8h6.8l50.5 75.8C116.4 106.2 128 86.5 128 64c0-35.3-28.7-64-64-64zm22.1 84.6l-7.5-11.3V41.8h7.5v42.8z"- ></path>- </svg>- {:else if application.configuration.build.pack === "nodejs"}- <svg- class="text-green-400 w-10 h-10 absolute top-0 left-0 -m-4"- xmlns="http://www.w3.org/2000/svg"- aria-hidden="true"- focusable="false"- data-prefix="fab"- data-icon="node-js"- role="img"- viewBox="0 0 448 512"- ><path- fill="currentColor"- d="M224 508c-6.7 0-13.5-1.8-19.4-5.2l-61.7-36.5c-9.2-5.2-4.7-7-1.7-8 12.3-4.3 14.8-5.2 27.9-12.7 1.4-.8 3.2-.5 4.6.4l47.4 28.1c1.7 1 4.1 1 5.7 0l184.7-106.6c1.7-1 2.8-3 2.8-5V149.3c0-2.1-1.1-4-2.9-5.1L226.8 37.7c-1.7-1-4-1-5.7 0L36.6 144.3c-1.8 1-2.9 3-2.9 5.1v213.1c0 2 1.1 4 2.9 4.9l50.6 29.2c27.5 13.7 44.3-2.4 44.3-18.7V167.5c0-3 2.4-5.3 5.4-5.3h23.4c2.9 0 5.4 2.3 5.4 5.3V378c0 36.6-20 57.6-54.7 57.6-10.7 0-19.1 0-42.5-11.6l-48.4-27.9C8.1 389.2.7 376.3.7 362.4V149.3c0-13.8 7.4-26.8 19.4-33.7L204.6 9c11.7-6.6 27.2-6.6 38.8 0l184.7 106.7c12 6.9 19.4 19.8 19.4 33.7v213.1c0 13.8-7.4 26.7-19.4 33.7L243.4 502.8c-5.9 3.4-12.6 5.2-19.4 5.2zm149.1-210.1c0-39.9-27-50.5-83.7-58-57.4-7.6-63.2-11.5-63.2-24.9 0-11.1 4.9-25.9 47.4-25.9 37.9 0 51.9 8.2 57.7 33.8.5 2.4 2.7 4.2 5.2 4.2h24c1.5 0 2.9-.6 3.9-1.7s1.5-2.6 1.4-4.1c-3.7-44.1-33-64.6-92.2-64.6-52.7 0-84.1 22.2-84.1 59.5 0 40.4 31.3 51.6 81.8 56.6 60.5 5.9 65.2 14.8 65.2 26.7 0 20.6-16.6 29.4-55.5 29.4-48.9 0-59.6-12.3-63.2-36.6-.4-2.6-2.6-4.5-5.3-4.5h-23.9c-3 0-5.3 2.4-5.3 5.3 0 31.1 16.9 68.2 97.8 68.2 58.4-.1 92-23.2 92-63.4z"- ></path>- </svg>- {:else if application.configuration.build.pack === "php"}- <svg- viewBox="0 0 128 128"- class="text-white w-14 h-14 absolute top-0 left-0 -m-6"- >- <path- fill="#6181B6"- d="M64 33.039c-33.74 0-61.094 13.862-61.094 30.961s27.354 30.961 61.094 30.961 61.094-13.862 61.094-30.961-27.354-30.961-61.094-30.961zm-15.897 36.993c-1.458 1.364-3.077 1.927-4.86 2.507-1.783.581-4.052.461-6.811.461h-6.253l-1.733 10h-7.301l6.515-34h14.04c4.224 0 7.305 1.215 9.242 3.432 1.937 2.217 2.519 5.364 1.747 9.337-.319 1.637-.856 3.159-1.614 4.515-.759 1.357-1.75 2.624-2.972 3.748zm21.311 2.968l2.881-14.42c.328-1.688.208-2.942-.361-3.555-.57-.614-1.782-1.025-3.635-1.025h-5.79l-3.731 19h-7.244l6.515-33h7.244l-1.732 9h6.453c4.061 0 6.861.815 8.402 2.231s2.003 3.356 1.387 6.528l-3.031 15.241h-7.358zm40.259-11.178c-.318 1.637-.856 3.133-1.613 4.488-.758 1.357-1.748 2.598-2.971 3.722-1.458 1.364-3.078 1.927-4.86 2.507-1.782.581-4.053.461-6.812.461h-6.253l-1.732 10h-7.301l6.514-34h14.041c4.224 0 7.305 1.215 9.241 3.432 1.935 2.217 2.518 5.418 1.746 9.39zM95.919 54h-5.001l-2.727 14h4.442c2.942 0 5.136-.29 6.576-1.4 1.442-1.108 2.413-2.828 2.918-5.421.484-2.491.264-4.434-.66-5.458-.925-1.024-2.774-1.721-5.548-1.721zM38.934 54h-5.002l-2.727 14h4.441c2.943 0 5.136-.29 6.577-1.4 1.441-1.108 2.413-2.828 2.917-5.421.484-2.491.264-4.434-.66-5.458s-2.772-1.721-5.546-1.721z"- ></path>- </svg>- {:else if application.configuration.build.pack === "docker"}- <svg- viewBox="0 0 128 128"- class="w-16 h-16 absolute top-0 left-0 -m-8"- >- <g- ><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#3A4D54"- d="M73.8 50.8h11.3v11.5h5.7c2.6 0 5.3-.5 7.8-1.3 1.2-.4 2.6-1 3.8-1.7-1.6-2.1-2.4-4.7-2.6-7.3-.3-3.5.4-8.1 2.8-10.8l1.2-1.4 1.4 1.1c3.6 2.9 6.5 6.8 7.1 11.4 4.3-1.3 9.3-1 13.1 1.2l1.5.9-.8 1.6c-3.2 6.2-9.9 8.2-16.4 7.8-9.8 24.3-31 35.8-56.8 35.8-13.3 0-25.5-5-32.5-16.8l-.1-.2-1-2.1c-2.4-5.2-3.1-10.9-2.6-16.6l.2-1.7h9.6v-11.4h11.3v-11.2h22.5v-11.3h13.5v22.5z"- ></path><path- fill="#00AADA"- d="M110.4 55.1c.8-5.9-3.6-10.5-6.4-12.7-3.1 3.6-3.6 13.2 1.3 17.2-2.8 2.4-8.5 4.7-14.5 4.7h-72.2c-.6 6.2.5 11.9 3 16.8l.8 1.5c.5.9 1.1 1.7 1.7 2.6 3 .2 5.7.3 8.2.2 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5 1.1-8.3 1.3h-.6000000000000001c-1.3.1-2.7.1-4.2.1-1.6 0-3.1 0-4.9-.1 6 6.8 15.4 10.8 27.2 10.8 25 0 46.2-11.1 55.5-35.9 6.7.7 13.1-1 16-6.7-4.5-2.7-10.5-1.8-13.9-.1z"- ></path><path- fill="#28B8EB"- d="M110.4 55.1c.8-5.9-3.6-10.5-6.4-12.7-3.1 3.6-3.6 13.2 1.3 17.2-2.8 2.4-8.5 4.7-14.5 4.7h-68c-.3 9.5 3.2 16.7 9.5 21 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.5 1.4l-.1-.1c8.5 4.4 20.8 4.3 35-1.1 15.8-6.1 30.6-17.7 40.9-30.9-.2.1-.4.1-.5.2z"- ></path><path- fill="#028BB8"- d="M18.7 71.8c.4 3.3 1.4 6.4 2.9 9.3l.8 1.5c.5.9 1.1 1.7 1.7 2.6 3 .2 5.7.3 8.2.2 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.5 1.4h-.4c-1.3.1-2.7.1-4.1.1-1.6 0-3.2 0-4.9-.1 6 6.8 15.5 10.8 27.3 10.8 21.4 0 40-8.1 50.8-26h-85.1v-.1z"- ></path><path- fill="#019BC6"- d="M23.5 71.8c1.3 5.8 4.3 10.4 8.8 13.5 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.6 1.4 8.5 4.4 20.8 4.3 34.9-1.1 8.5-3.3 16.8-8.2 24.2-14.1h-70.6z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#00ACD3"- d="M28.4 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zM39.6 41.5h9.8v9.8h-9.8v-9.8zm.9.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#23C2EE"- d="M39.6 52.7h9.8v9.8h-9.8v-9.8zm.9.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#00ACD3"- d="M50.9 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#23C2EE"- d="M50.9 41.5h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zM62.2 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#00ACD3"- d="M62.2 41.5h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#23C2EE"- d="M62.2 30.2h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#00ACD3"- d="M73.5 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#D4EEF1"- d="M48.8 78.3c1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7"- ></path><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#3A4D54"- d="M48.8 79.1c.2 0 .5 0 .7.1-.2.1-.4.4-.4.7 0 .4.4.8.8.8.3 0 .6-.2.7-.4.1.2.1.5.1.7 0 1.1-.9 1.9-1.9 1.9-1.1 0-1.9-.9-1.9-1.9 0-1 .8-1.9 1.9-1.9M1.1 72.8h125.4c-2.7-.7-8.6-1.6-7.7-5.2-5 5.7-16.9 4-20 1.2-3.4 4.9-23 3-24.3-.8-4.2 5-17.3 5-21.5 0-1.4 3.8-21 5.7-24.3.8-3 2.8-15 4.5-20-1.2 1.1 3.5-4.9 4.5-7.6 5.2"- ></path><path- fill="#BFDBE0"- d="M56 97.8c-6.7-3.2-10.3-7.5-12.4-12.2-2.5.7-5.5 1.2-8.9 1.4-1.3.1-2.7.1-4.1.1-1.7 0-3.4 0-5.2-.1 6 6 13.6 10.7 27.5 10.8h3.1z"- ></path><path- fill="#D4EEF1"- d="M46.1 89.9c-.9-1.3-1.8-2.8-2.5-4.3-2.5.7-5.5 1.2-8.9 1.4 2.3 1.2 5.7 2.4 11.4 2.9z"- ></path></g- >- </svg>- {:else if application.configuration.build.pack === "rust"}- <svg- class="w-14 h-14 absolute top-0 left-0 -m-6"- viewBox="0 0 128 128"- >- <path- d="M62.271 10.880 C 62.082 10.990,61.289 12.128,60.508 13.409 C 58.548 16.626,58.526 16.628,55.893 13.857 C 54.180 12.055,53.766 11.725,53.214 11.729 C 52.855 11.731,52.402 11.853,52.206 12.000 C 52.011 12.147,51.458 13.317,50.978 14.600 C 49.879 17.539,49.826 17.634,49.217 17.751 C 48.842 17.822,48.120 17.420,46.389 16.177 C 45.111 15.258,43.857 14.507,43.603 14.507 C 42.549 14.507,42.252 15.083,41.750 18.100 C 41.112 21.936,41.134 21.923,37.676 20.352 C 36.280 19.719,34.956 19.200,34.733 19.200 C 34.510 19.200,34.087 19.440,33.794 19.733 C 33.262 20.266,33.261 20.268,33.406 23.201 L 33.552 26.137 32.997 26.434 C 32.505 26.697,32.166 26.665,29.988 26.150 C 27.145 25.479,26.545 25.497,25.969 26.272 L 25.548 26.838 26.113 29.259 C 26.423 30.590,26.722 31.872,26.778 32.107 C 26.833 32.341,26.738 32.716,26.566 32.939 C 26.282 33.306,25.980 33.339,23.349 33.299 C 18.896 33.229,18.643 33.611,20.483 37.627 C 21.068 38.902,21.547 40.060,21.547 40.199 C 21.547 40.933,20.962 41.200,18.449 41.610 C 17.043 41.839,15.821 42.027,15.733 42.027 C 15.645 42.027,15.381 42.219,15.147 42.453 C 14.382 43.218,14.599 43.936,16.334 46.385 C 18.495 49.435,18.491 49.446,14.921 50.812 C 10.861 52.365,10.779 52.748,13.870 55.680 C 16.749 58.410,16.752 58.370,13.493 60.419 C 11.024 61.970,10.986 62.007,10.923 62.848 C 10.847 63.871,10.865 63.889,13.813 65.690 C 16.728 67.470,16.728 67.524,13.867 70.231 C 10.790 73.141,10.885 73.566,14.948 75.099 C 18.498 76.438,18.503 76.454,16.338 79.504 C 15.111 81.233,14.720 81.953,14.720 82.487 C 14.720 83.486,15.240 83.741,18.347 84.263 C 20.964 84.704,21.547 84.963,21.547 85.685 C 21.547 85.833,21.067 87.001,20.480 88.279 C 18.654 92.256,18.862 92.587,23.184 92.587 C 27.209 92.587,27.102 92.464,26.235 96.094 C 25.581 98.830,25.571 99.354,26.163 99.945 C 26.616 100.399,27.470 100.348,30.141 99.709 C 32.181 99.222,32.539 99.188,33.012 99.441 L 33.552 99.730 33.406 102.665 C 33.261 105.599,33.262 105.601,33.794 106.134 C 34.087 106.427,34.516 106.667,34.746 106.667 C 34.976 106.667,36.300 106.151,37.689 105.520 C 41.136 103.955,41.114 103.942,41.750 107.766 C 42.254 110.797,42.548 111.360,43.624 111.360 C 43.891 111.360,45.118 110.640,46.352 109.760 C 48.519 108.214,49.081 107.972,49.658 108.339 C 49.807 108.433,50.385 109.703,50.942 111.161 C 51.761 113.305,52.061 113.863,52.517 114.081 C 53.385 114.497,53.922 114.163,55.962 111.941 C 58.425 109.258,58.526 109.271,60.537 112.530 C 62.758 116.128,63.333 116.120,65.610 112.457 C 67.572 109.301,67.549 109.303,70.201 112.073 C 71.962 113.911,72.337 114.204,72.931 114.204 C 73.310 114.204,73.763 114.062,73.936 113.888 C 74.110 113.714,74.686 112.429,75.216 111.033 C 75.746 109.636,76.295 108.420,76.437 108.330 C 76.998 107.973,77.579 108.224,79.743 109.760 C 81.017 110.665,82.216 111.360,82.501 111.360 C 83.559 111.360,83.941 110.609,84.381 107.657 C 84.757 105.140,84.833 104.899,85.328 104.648 C 85.815 104.401,86.107 104.484,88.391 105.521 C 89.780 106.151,91.104 106.667,91.334 106.667 C 91.564 106.667,92.000 106.420,92.301 106.118 L 92.850 105.570 92.699 102.755 C 92.555 100.067,92.568 99.923,92.997 99.535 C 93.438 99.136,93.483 99.138,95.949 99.701 C 98.935 100.383,99.492 100.401,100.053 99.840 C 100.601 99.292,100.595 99.172,99.845 96.009 C 99.004 92.461,98.891 92.587,102.933 92.587 C 105.688 92.587,105.995 92.548,106.346 92.161 C 106.932 91.513,106.793 90.771,105.614 88.258 C 105.019 86.992,104.536 85.840,104.540 85.698 C 104.560 84.951,105.147 84.696,107.860 84.255 C 109.520 83.986,110.762 83.674,110.987 83.471 C 111.741 82.790,111.464 81.904,109.743 79.491 C 107.586 76.467,107.595 76.438,111.049 75.165 C 115.185 73.641,115.303 73.133,112.208 70.192 C 109.341 67.468,109.340 67.483,112.480 65.555 C 116.276 63.225,116.282 62.700,112.547 60.382 C 109.335 58.389,109.337 58.417,112.216 55.683 C 115.304 52.749,115.220 52.365,111.159 50.812 C 107.575 49.441,107.564 49.407,109.742 46.418 C 111.039 44.638,111.360 44.047,111.360 43.437 C 111.360 42.371,110.882 42.132,107.738 41.624 C 105.111 41.200,104.533 40.942,104.533 40.195 C 104.533 40.053,105.013 38.910,105.600 37.653 C 106.749 35.192,106.910 34.207,106.260 33.618 C 105.911 33.302,105.443 33.257,102.939 33.298 C 100.319 33.342,99.984 33.305,99.621 32.940 C 99.224 32.541,99.228 32.485,99.848 29.898 C 100.608 26.728,100.611 26.651,99.986 26.064 C 99.352 25.468,98.956 25.478,96.045 26.163 C 93.924 26.663,93.573 26.696,93.091 26.438 L 92.544 26.145 92.695 23.219 L 92.847 20.294 92.300 19.747 C 91.999 19.446,91.572 19.200,91.350 19.200 C 91.129 19.200,89.812 19.723,88.424 20.361 C 86.106 21.428,85.857 21.499,85.356 21.237 C 84.856 20.975,84.773 20.717,84.346 18.110 C 83.853 15.094,83.548 14.507,82.477 14.507 C 82.223 14.507,80.964 15.262,79.679 16.185 C 77.569 17.701,77.286 17.844,76.760 17.661 C 76.325 17.509,76.072 17.178,75.763 16.355 C 75.534 15.749,75.096 14.581,74.788 13.760 C 74.166 12.104,73.819 11.733,72.887 11.733 C 72.367 11.733,71.896 12.107,70.208 13.860 C 67.555 16.616,67.545 16.615,65.594 13.415 C 64.814 12.136,63.999 10.994,63.782 10.878 C 63.294 10.616,62.720 10.617,62.271 10.880 M64.689 20.515 C 67.000 22.160,65.771 26.027,62.937 26.027 C 60.187 26.027,58.802 22.714,60.766 20.833 C 61.874 19.771,63.463 19.642,64.689 20.515 M61.783 30.729 C 63.298 31.305,63.920 30.959,67.379 27.625 L 69.978 25.119 71.078 25.265 C 74.528 25.723,81.390 28.737,85.333 31.526 C 88.956 34.090,93.771 39.312,95.823 42.903 L 96.262 43.672 94.318 48.052 C 93.248 50.461,92.373 52.685,92.373 52.996 C 92.373 53.713,92.843 54.847,93.296 55.222 C 93.487 55.381,95.302 56.255,97.329 57.164 L 101.013 58.818 101.158 59.755 C 101.345 60.976,101.370 63.975,101.200 64.827 L 101.067 65.493 98.964 65.493 C 96.525 65.493,96.713 65.275,96.581 68.267 C 96.485 70.436,95.961 71.635,94.769 72.411 C 92.827 73.678,89.620 73.448,88.260 71.945 C 88.051 71.714,87.645 70.553,87.357 69.364 C 86.516 65.891,85.386 63.941,83.116 62.044 C 82.399 61.445,81.813 60.886,81.813 60.801 C 81.813 60.717,82.601 60.053,83.565 59.328 C 87.075 56.682,89.093 53.602,89.315 50.551 C 89.738 44.732,85.102 39.308,78.206 37.550 C 76.571 37.133,75.873 37.120,55.646 37.120 C 44.166 37.120,34.773 37.045,34.773 36.954 C 34.773 36.739,37.324 34.263,38.827 33.021 C 42.954 29.609,48.315 26.924,53.867 25.490 L 55.787 24.993 58.515 27.759 C 60.016 29.280,61.487 30.616,61.783 30.729 M27.432 48.526 C 28.689 49.349,29.204 51.417,28.462 52.660 C 27.314 54.584,24.406 54.665,23.257 52.805 C 21.586 50.103,24.804 46.804,27.432 48.526 M101.482 48.631 C 104.770 50.636,102.222 55.568,98.702 54.011 C 96.352 52.971,96.277 49.759,98.575 48.587 C 99.534 48.098,100.636 48.115,101.482 48.631 M37.120 60.907 L 37.120 73.173 31.698 73.173 L 26.276 73.173 25.846 71.307 C 25.000 67.632,24.644 63.830,24.857 60.716 L 25.006 58.528 28.734 56.856 C 31.073 55.808,32.577 55.009,32.771 54.712 C 33.619 53.419,33.538 52.495,32.348 49.867 L 31.792 48.640 34.456 48.640 L 37.120 48.640 37.120 60.907 M68.340 49.174 C 70.662 49.778,71.889 51.007,71.892 52.730 C 71.894 53.995,71.267 54.789,69.712 55.491 C 68.611 55.989,68.436 56.001,61.493 56.069 L 54.400 56.137 54.400 52.495 L 54.400 48.853 60.755 48.853 C 65.719 48.853,67.380 48.923,68.340 49.174 M65.944 66.776 C 67.095 67.096,68.456 68.096,69.154 69.135 C 69.887 70.227,70.316 71.647,71.332 76.351 C 72.190 80.327,72.742 81.627,74.288 83.319 C 76.203 85.414,75.759 85.333,85.325 85.333 C 89.906 85.333,93.653 85.406,93.653 85.496 C 93.653 85.657,90.498 89.387,90.362 89.387 C 90.323 89.387,88.675 89.042,86.700 88.620 C 81.123 87.429,80.922 87.569,79.642 93.546 L 78.819 97.386 78.076 97.752 C 76.836 98.364,72.806 99.624,70.717 100.054 C 67.265 100.764,63.508 101.004,60.206 100.725 C 54.577 100.248,47.123 98.064,46.832 96.805 C 46.770 96.538,46.395 94.810,46.000 92.964 C 45.604 91.118,45.123 89.367,44.931 89.073 C 44.008 87.665,43.037 87.578,38.767 88.523 C 37.150 88.881,35.739 89.173,35.631 89.173 C 35.428 89.173,32.427 85.703,32.427 85.469 C 32.427 85.396,39.555 85.311,48.267 85.281 L 64.107 85.227 64.164 79.600 C 64.204 75.627,64.149 73.886,63.977 73.680 C 63.785 73.448,62.763 73.387,59.067 73.387 L 54.400 73.387 54.400 69.973 L 54.400 66.560 59.787 66.561 C 62.749 66.562,65.520 66.659,65.944 66.776 M41.536 92.365 C 44.055 93.900,42.847 97.922,39.868 97.919 C 36.813 97.917,35.681 93.932,38.284 92.344 C 39.145 91.819,40.658 91.829,41.536 92.365 M87.662 92.533 C 88.897 93.438,89.308 95.321,88.543 96.575 C 86.534 99.870,81.510 97.251,83.188 93.784 C 84.013 92.081,86.206 91.467,87.662 92.533 "- stroke="none"- fill="rgb(239, 68, 68)"- fill-rule="evenodd"></path>- </svg>- {/if}- <div class="flex flex-col justify-center items-center w-full">- <div- class="text-base font-bold text-center w-full text-white pb-6"- >- {application.configuration.publish- .domain}{application.configuration.publish- .path !== "/"- ? application.configuration.publish.path- : ""}- </div>- <div- class="text-xs font-bold text-center w-full text-warmGray-300 group-hover:text-white"- >- Last deployment<br />- {new Intl.DateTimeFormat("default", $dateOptions).format(- new Date(application.UpdatedAt),- )}- </div>- </div>- </div>- </div>- </div>- {/each}- </div>- </div>- {:else}- <div class="text-2xl font-bold text-center">No applications found</div>- {/if}-</div>diff --git a/src/pages/dashboard/databases.svelte b/src/pages/dashboard/databases.sveltedeleted file mode 100644index 09a35b693a..0000000000--- a/src/pages/dashboard/databases.svelte+++ /dev/null@@ -1,156 +0,0 @@-<style lang="postcss">- .gradient-border {- --border-width: 2px;- position: relative;- display: flex;- justify-content: center;- width: 208px;- height: 126px;- background: #222;- border-radius: 0.75rem;- }- .gradient-border::after {- position: absolute;- content: "";- top: calc(-1 * var(--border-width));- left: calc(-1 * var(--border-width));- z-index: -1;- width: calc(100% + var(--border-width) * 2);- height: calc(100% + var(--border-width) * 2);- background: linear-gradient(- 60deg,- hsl(224, 85%, 66%),- hsl(269, 85%, 66%),- hsl(314, 85%, 66%),- hsl(359, 85%, 66%),- hsl(44, 85%, 66%),- hsl(89, 85%, 66%),- hsl(134, 85%, 66%),- hsl(179, 85%, 66%)- );- background-size: 300% 300%;- background-position: 0 50%;- border-radius: calc(2 * var(--border-width));- animation: moveGradient 1s alternate infinite;- }-- @keyframes moveGradient {- 50% {- background-position: 100% 50%;- }- }-</style>--<script>- import { deployments, dbInprogress } from "@store";- import { fade } from "svelte/transition";- import { goto } from "@roxi/routify/runtime";- import MongoDb from "../../components/Databases/SVGs/MongoDb.svelte";- import Postgresql from "../../components/Databases/SVGs/Postgresql.svelte";- import Mysql from "../../components/Databases/SVGs/Mysql.svelte";- import CouchDb from "../../components/Databases/SVGs/CouchDb.svelte";- import Clickhouse from "../../components/Databases/SVGs/Clickhouse.svelte";- const initialNumberOfDBs = $deployments.databases?.deployed.length;- $: if ($deployments.databases?.deployed.length) {- if (initialNumberOfDBs !== $deployments.databases?.deployed.length) {- $dbInprogress = false;- }- }-</script>--<div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"->- <div in:fade="{{ duration: 100 }}">Databases</div>- <button- class="icon p-1 ml-4 bg-purple-500 hover:bg-purple-400"- on:click="{() => $goto('/database/new')}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>- </svg>- </button>-</div>-<div in:fade="{{ duration: 100 }}">- {#if $deployments.databases?.deployed.length > 0}- <div class="px-4 mx-auto py-5">- <div class="flex items-center justify-center flex-wrap">- {#each $deployments.databases.deployed as database}- <div- in:fade="{{ duration: 200 }}"- class="px-4 pb-4"- on:click="{() =>- $goto(- `/database/${database.configuration.general.deployId}/configuration`,- )}"- >- <div- class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-purple-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"- >- <div class="flex items-center">- {#if database.configuration.general.type == "mongodb"}- <MongoDb customClass="w-10 h-10 absolute top-0 left-0 -m-4" />- {:else if database.configuration.general.type == "postgresql"}- <Postgresql- customClass="w-10 h-10 absolute top-0 left-0 -m-4"- />- {:else if database.configuration.general.type == "mysql"}- <Mysql customClass="w-10 h-10 absolute top-0 left-0 -m-4" />- {:else if database.configuration.general.type == "couchdb"}- <CouchDb- customClass="w-10 h-10 fill-current text-red-600 absolute top-0 left-0 -m-4"- />- {:else if database.configuration.general.type == "clickhouse"}- <Clickhouse- customClass="w-10 h-10 fill-current text-red-600 absolute top-0 left-0 -m-4"- />- {/if}- <div class="text-center w-full">- <div- class="text-base font-bold text-white group-hover:text-white"- >- {database.configuration.general.nickname}- </div>- <div class="text-xs font-bold text-warmGray-300 ">- ({database.configuration.general.type})- </div>- </div>- </div>- </div>- </div>- {/each}- {#if $dbInprogress}- <div class=" px-4 pb-4">- <div- class="gradient-border text-xs font-bold text-warmGray-300 pt-6"- >- Working...- </div>- </div>- {/if}- </div>- </div>- {:else if $dbInprogress}- <div class="px-4 mx-auto py-5">- <div class="flex items-center justify-center flex-wrap">- <div class=" px-4 pb-4">- <div class="gradient-border text-xs font-bold text-warmGray-300 pt-6">- Working...- </div>- </div>- </div>- </div>- {:else}- <div class="text-2xl font-bold text-center">No databases found</div>- {/if}-</div>diff --git a/src/pages/dashboard/index.svelte b/src/pages/dashboard/index.sveltedeleted file mode 100644index 69f34470d2..0000000000--- a/src/pages/dashboard/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/applications");-</script>diff --git a/src/pages/dashboard/services.svelte b/src/pages/dashboard/services.sveltedeleted file mode 100644index b79b3f9287..0000000000--- a/src/pages/dashboard/services.svelte+++ /dev/null@@ -1,74 +0,0 @@-<script>- import { deployments, dateOptions } from "@store";- import { fade } from "svelte/transition";- import { goto } from "@roxi/routify/runtime";-- function switchTo(application) {- const { branch, name, organization } = application;- $goto(`/application/:organization/:name/:branch`, {- name,- organization,- branch,- });- }-</script>--<div- in:fade="{{ duration: 100 }}"- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"->- <div>Services</div>- <button- class="icon p-1 ml-4 bg-blue-500 hover:bg-blue-400"- on:click="{() => $goto('/service/new')}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>- </svg>- </button>-</div>-<div in:fade="{{ duration: 100 }}">- {#if $deployments?.services?.deployed.length > 0}- <div class="px-4 mx-auto py-5">- <div class="flex items-center justify-center flex-wrap">- {#each $deployments?.services?.deployed as service}- <div- in:fade="{{ duration: 200 }}"- class="px-4 pb-4"- on:click="{() =>- $goto(`/service/${service.serviceName}/configuration`)}"- >- <div- class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-blue-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"- >- <div class="flex items-center">- {#if service.serviceName == "plausible"}- <div>- <img- alt="plausible logo"- class="w-10 absolute top-0 left-0 -m-6"- src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"- />- <div class="text-white font-bold">Plausible Analytics</div>- </div>- {/if}- </div>- </div>- </div>- {/each}- </div>- </div>- {:else}- <div class="text-2xl font-bold text-center">No services found</div>- {/if}-</div>diff --git a/src/pages/database/[name]/configuration.svelte b/src/pages/database/[name]/configuration.sveltedeleted file mode 100644index 158c079376..0000000000--- a/src/pages/database/[name]/configuration.svelte+++ /dev/null@@ -1,87 +0,0 @@-<script>- import { fetch, database } from "@store";- import { redirect, params } from "@roxi/routify/runtime";- import { toast } from "@zerodevx/svelte-toast";- import { fade } from "svelte/transition";-- import CouchDb from "../../../components/Databases/SVGs/CouchDb.svelte";- import MongoDb from "../../../components/Databases/SVGs/MongoDb.svelte";- import Mysql from "../../../components/Databases/SVGs/Mysql.svelte";- import Postgresql from "../../../components/Databases/SVGs/Postgresql.svelte";- import Loading from "../../../components/Loading.svelte";- import PasswordField from "../../../components/PasswordField.svelte";-- $: name = $params.name;-- async function loadDatabaseConfig() {- if (name) {- try {- $database = await $fetch(`/api/v1/databases/${name}`);- } catch (error) {- toast.push(`Cannot find database ${name}`);- $redirect(`/dashboard/databases`);- }- }- }-</script>--{#await loadDatabaseConfig()}- <Loading />-{:then}- <div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- <div>{$database.config.general.nickname}</div>- <div class="px-4">- {#if $database.config.general.type === "mongodb"}- <MongoDb customClass="w-8 h-8" />- {:else if $database.config.general.type === "postgresql"}- <Postgresql customClass="w-8 h-8" />- {:else if $database.config.general.type === "mysql"}- <Mysql customClass="w-8 h-8" />- {:else if $database.config.general.type === "couchdb"}- <CouchDb customClass="w-8 h-8 fill-current text-red-600" />- {/if}- </div>- </div>- </div>- <div class="text-left max-w-6xl mx-auto px-6" in:fade="{{ duration: 100 }}">- <div class="pb-2 pt-5 space-y-4">- <div class="text-2xl font-bold border-gradient w-32">Database</div>- <div class="flex items-center pt-4">- <div class="font-bold w-64 text-warmGray-400">Connection string</div>- {#if $database.config.general.type === "mongodb"}- <PasswordField- value="{`mongodb://${$database.envs.MONGODB_USERNAME}:${$database.envs.MONGODB_PASSWORD}@${$database.config.general.deployId}:27017/${$database.envs.MONGODB_DATABASE}`}"- />- {:else if $database.config.general.type === "postgresql"}- <PasswordField- value="{`postgresql://${$database.envs.POSTGRESQL_USERNAME}:${$database.envs.POSTGRESQL_PASSWORD}@${$database.config.general.deployId}:5432/${$database.envs.POSTGRESQL_DATABASE}`}"- />- {:else if $database.config.general.type === "mysql"}- <PasswordField- value="{`mysql://${$database.envs.MYSQL_USER}:${$database.envs.MYSQL_PASSWORD}@${$database.config.general.deployId}:3306/${$database.envs.MYSQL_DATABASE}`}"- />- {:else if $database.config.general.type === "couchdb"}- <PasswordField- value="{`http://${$database.envs.COUCHDB_USER}:${$database.envs.COUCHDB_PASSWORD}@${$database.config.general.deployId}:5984`}"- />- {:else if $database.config.general.type === "clickhouse"}- <!-- {JSON.stringify($database)} -->- <!-- <textarea- disabled- class="w-full"- value="{`postgresql://${$database.envs.POSTGRESQL_USERNAME}:${$database.envs.POSTGRESQL_PASSWORD}@${$database.config.general.deployId}:5432/${$database.envs.POSTGRESQL_DATABASE}`}"- ></textarea> -->- {/if}- </div>- </div>- {#if $database.config.general.type === "mongodb"}- <div class="flex items-center">- <div class="font-bold w-64 text-warmGray-400">Root password</div>- <PasswordField value="{$database.envs.MONGODB_ROOT_PASSWORD}" />- </div>- {/if}- </div>-{/await}diff --git a/src/pages/database/[name]/index.svelte b/src/pages/database/[name]/index.sveltedeleted file mode 100644index bf5c5bdf1c..0000000000--- a/src/pages/database/[name]/index.svelte+++ /dev/null@@ -1,4 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/databases");-</script>diff --git a/src/pages/database/_layout.svelte b/src/pages/database/_layout.sveltedeleted file mode 100644index a0a3186ae9..0000000000--- a/src/pages/database/_layout.svelte+++ /dev/null@@ -1,80 +0,0 @@-<script>- import { params, goto, isActive, redirect } from "@roxi/routify";- import { fetch, database, initialDatabase } from "@store";- import { toast } from "@zerodevx/svelte-toast";- import { onDestroy } from "svelte";- import Tooltip from "../../components/Tooltip/Tooltip.svelte";-- $: name = $params.name;-- onDestroy(() => {- $database = JSON.parse(JSON.stringify(initialDatabase));- });-- async function removeDB() {- await $fetch(`/api/v1/databases/${name}`, {- method: "DELETE",- });- toast.push("Database removed.");- $redirect(`/dashboard/databases`);- }-</script>--{#if !$isActive("/database/new")}- <nav- class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4"- >- <Tooltip position="bottom" label="Delete">- <button- title="Delete"- class="icon hover:text-red-500"- on:click="{removeDB}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"- ></path>- </svg>- </button>- </Tooltip>- <div class="border border-warmGray-700 h-8"></div>- <Tooltip position="bottom-left" label="Configuration">- <button- class="icon hover:text-yellow-400"- disabled="{$isActive(`/database/new`)}"- class:text-yellow-400="{$isActive(`/database/${name}/configuration`) ||- $isActive(`/application/new`)}"- class:bg-warmGray-700="{$isActive(`/database/${name}/configuration`) ||- $isActive(`/database/new`)}"- on:click="{() => $goto(`/database/${name}/configuration`)}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"- ></path>- </svg>- </button>- </Tooltip>- </nav>-{/if}-<div class="text-white">- <slot />-</div>diff --git a/src/pages/database/index.svelte b/src/pages/database/index.sveltedeleted file mode 100644index dbc608a221..0000000000--- a/src/pages/database/index.svelte+++ /dev/null@@ -1,5 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/databases");- </script>-\ No newline at end of filediff --git a/src/pages/database/new.svelte b/src/pages/database/new.sveltedeleted file mode 100644index 0626f6533e..0000000000--- a/src/pages/database/new.svelte+++ /dev/null@@ -1,13 +0,0 @@-<script>- import Configuration from "../../components/Databases/Configuration/Configuration.svelte";-</script>--<div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- Select a database- </div>-</div>--<Configuration />diff --git a/src/pages/index.svelte b/src/pages/index.sveltedeleted file mode 100644index 7aee968243..0000000000--- a/src/pages/index.svelte+++ /dev/null@@ -1,65 +0,0 @@-<script>- import { goto } from "@roxi/routify";- import { session, loggedIn } from "@store";- function login() {- const left = screen.width / 2 - 1020 / 2;- const top = screen.height / 2 - 618 / 2;- const newWindow = open(- `https://github.com/login/oauth/authorize?client_id=${- import.meta.env.VITE_GITHUB_APP_CLIENTID- }`,- "Authenticate",- "resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=" +- top +- ", left=" +- left +- ", toolbar=0, menubar=0, status=0",- );- const timer = setInterval(() => {- if (newWindow.closed) {- clearInterval(timer);- const jwtToken = new URL(newWindow.document.URL).searchParams.get(- "jwtToken",- );- const ghToken = new URL(newWindow.document.URL).searchParams.get(- "ghToken",- );- if (ghToken) {- $session.githubAppToken = ghToken;- }- if (jwtToken) {- $session.token = jwtToken;- localStorage.setItem("token", jwtToken);- $goto("/dashboard/applications");- }- }- }, 100);- }-</script>--<div class="flex justify-center items-center h-screen w-full bg-warmGray-900">- <div class="max-w-7xl mx-auto px-4 sm:py-24 sm:px-6 lg:px-8">- <div class="text-center">- <p- class="mt-1 pb-8 font-extrabold text-white text-5xl sm:tracking-tight lg:text-6xl text-center"- >- <span class="border-gradient">Coolify</span>- </p>- <h2 class="text-2xl md:text-3xl font-extrabold text-white">- An open-source, hassle-free, self-hostable<br />- <span class="text-indigo-400">Heroku</span>- & <span class="text-green-400">Netlify</span> alternative- </h2>- <div class="text-center py-10">- {#if !$loggedIn}- <button class="text-white bg-warmGray-800 hover:bg-warmGray-700 rounded p-2 px-10 font-bold" on:click="{login}">Login with Github</button- >- {:else}- <button class="text-white bg-warmGray-800 hover:bg-warmGray-700 rounded p-2 px-10 font-bold" on:click="{() => $goto('/dashboard/applications')}"- >Get Started</button- >- {/if}- </div>- </div>- </div>-</div>diff --git a/src/pages/service/[name]/_layout.svelte b/src/pages/service/[name]/_layout.sveltedeleted file mode 100644index 6043ca2d1e..0000000000--- a/src/pages/service/[name]/_layout.svelte+++ /dev/null@@ -1,74 +0,0 @@-<script>- import { params, goto, isActive, redirect } from "@roxi/routify";- import { fetch } from "@store";- import { toast } from "@zerodevx/svelte-toast";- import Tooltip from "../../../components/Tooltip/Tooltip.svelte";-- $: name = $params.name;-- async function removeService() {- await $fetch(`/api/v1/services/${name}`, {- method: "DELETE",- });- toast.push("Service removed.");- $redirect(`/dashboard/services`);- }-</script>--<nav- class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4"->- <Tooltip position="bottom" label="Delete">- <button- title="Delete"- class="icon hover:text-red-500"- on:click="{removeService}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"- ></path>- </svg>- </button>- </Tooltip>- <div class="border border-warmGray-700 h-8"></div>- <Tooltip position="bottom-left" label="Configuration">- <button- class="icon hover:text-yellow-400"- disabled="{$isActive(`/application/new`)}"- class:text-yellow-400="{$isActive(`/service/${name}/configuration`) ||- $isActive(`/application/new`)}"- class:bg-warmGray-700="{$isActive(`/service/${name}/configuration`) ||- $isActive(`/application/new`)}"- on:click="{() => $goto(`/service/${name}/configuration`)}"- >- <svg- class="w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"- ></path>- </svg>- </button>- </Tooltip>-</nav>--<div class="text-white">- <slot />-</div>diff --git a/src/pages/service/[name]/configuration.svelte b/src/pages/service/[name]/configuration.sveltedeleted file mode 100644index c687021063..0000000000--- a/src/pages/service/[name]/configuration.svelte+++ /dev/null@@ -1,68 +0,0 @@-<script>- import { fetch } from "@store";- import { redirect, params } from "@roxi/routify/runtime";- import { fade } from "svelte/transition";- import { toast } from "@zerodevx/svelte-toast";-- import Loading from "../../../components/Loading.svelte";- import Plausible from "../../../components/Services/Plausible.svelte";-- $: name = $params.name;- let service = {};- async function loadServiceConfig() {- if (name) {- try {- service = await $fetch(`/api/v1/services/${name}`);- } catch (error) {- toast.push(`Cannot find service ${name}?!`);- $redirect(`/dashboard/services`);- }- }- }- async function activate() {- try {- await $fetch(`/api/v1/services/deploy/${name}/activate`, {- method: "PATCH",- body: {},- });- toast.push(`All users are activated for Plausible.`);- } catch (error) {- console.log(error);- toast.push(`Ooops, there was an error activating users for Plausible?!`);- }- }-</script>--{#await loadServiceConfig()}- <Loading />-{:then}- <div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- <a- href="{service.config.baseURL}"- target="_blank"- class="inline-flex hover:underline cursor-pointer px-2"- >- <div>{name === "plausible" ? "Plausible Analytics" : name}</div>- <div class="px-4">- {#if name === "plausible"}- <img- alt="plausible logo"- class="w-6 mx-auto"- src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"- />- {/if}- </div>- </a>- </div>- </div>- <div class="space-y-2 max-w-4xl mx-auto px-6" in:fade="{{ duration: 100 }}">- <div class="block text-center py-4">- {#if name === "plausible"}- <Plausible service="{service}" />- {/if}- </div>- </div>-{/await}diff --git a/src/pages/service/[name]/index.svelte b/src/pages/service/[name]/index.sveltedeleted file mode 100644index a5319b72ed..0000000000--- a/src/pages/service/[name]/index.svelte+++ /dev/null@@ -1,5 +0,0 @@-<script>- import { redirect } from "@roxi/routify";- $redirect("/dashboard/services");- </script>-\ No newline at end of filediff --git a/src/pages/service/new/[type]/_layout.svelte b/src/pages/service/new/[type]/_layout.sveltedeleted file mode 100644index 21c2204823..0000000000--- a/src/pages/service/new/[type]/_layout.svelte+++ /dev/null@@ -1,32 +0,0 @@-<script>- import { params, redirect } from "@roxi/routify";- import { fetch, newService, initialNewService } from "@store";- import { toast } from "@zerodevx/svelte-toast";- import { onDestroy } from "svelte";- import Loading from "../../../../components/Loading.svelte";- $: type = $params.type;- async function checkService() {- try {- await $fetch(`/api/v1/services/${type}`);- $redirect(`/dashboard/services`);- toast.push(- `${- type === "plausible" ? "Plausible Analytics" : type- } already deployed.`,- );- } catch (error) {- //- }- }- onDestroy(() => {- $newService = JSON.parse(JSON.stringify(initialNewService));- });-</script>--{#await checkService()}- <Loading />-{:then}- <div class="text-white">- <slot />- </div>-{/await}diff --git a/src/pages/service/new/[type]/index.svelte b/src/pages/service/new/[type]/index.sveltedeleted file mode 100644index 49f8899bb7..0000000000--- a/src/pages/service/new/[type]/index.svelte+++ /dev/null@@ -1,136 +0,0 @@-<script>- import { redirect, params, isActive } from "@roxi/routify/runtime";- import { newService, fetch } from "@store";- import { fade } from "svelte/transition";- import Loading from "../../../../components/Loading.svelte";- import TooltipInfo from "../../../../components/Tooltip/TooltipInfo.svelte";- import { toast } from "@zerodevx/svelte-toast";-- $: type = $params.type;- $: deployable =- $newService.baseURL === "" ||- $newService.baseURL === null ||- $newService.email === "" ||- $newService.email === null ||- $newService.userName === "" ||- $newService.userName === null ||- $newService.userPassword === "" ||- $newService.userPassword === null ||- $newService.userPassword.length <= 6 ||- $newService.userPassword !== $newService.userPasswordAgain;- let loading = false;- async function deploy() {- try {- loading = true;- const payload = $newService;- delete payload.userPasswordAgain;- await $fetch(`/api/v1/services/deploy/${type}`, {- body: payload,- });- toast.push(- "Service deployment queued.<br><br><br>It could take 2-5 minutes to be ready, be patient and grab a coffee/tea!",- { duration: 4000 },- );- $redirect(`/dashboard/services`);- } catch (error) {- console.log(error);- toast.push("Oops something went wrong. See console.log.");- } finally {- loading = false;- }- }-</script>--<div class="min-h-full text-white">- <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold">- Deploy new- {#if type === "plausible"}- <span class="text-blue-500 px-2 capitalize">Plausible Analytics</span>- {/if}- </div>-</div>-{#if loading}- <Loading />-{:else}- <div- class="space-y-2 max-w-4xl mx-auto px-6 flex-col text-center"- in:fade="{{ duration: 100 }}"- >- <div class="grid grid-flow-row">- <label for="Domain"- >Domain <TooltipInfo- position="right"- label="{`You will have your Plausible instance at here.`}"- /></label- >- <input- id="Domain"- class:border-red-500="{$newService.baseURL == null ||- $newService.baseURL == ''}"- bind:value="{$newService.baseURL}"- placeholder="analytics.coollabs.io"- />- </div>- <div class="grid grid-flow-row">- <label for="Email">Email</label>- <input- id="Email"- class:border-red-500="{$newService.email == null ||- $newService.email == ''}"- bind:value="{$newService.email}"- placeholder="[email protected]"- />- </div>- <div class="grid grid-flow-row">- <label for="Username">Username </label>- <input- id="Username"- class:border-red-500="{$newService.userName == null ||- $newService.userName == ''}"- bind:value="{$newService.userName}"- placeholder="admin"- />- </div>- <div class="grid grid-flow-row">- <label for="Password"- >Password <TooltipInfo- position="right"- label="{`Must be at least 7 characters.`}"- /></label- >- <input- id="Password"- type="password"- class:border-red-500="{$newService.userPassword == null ||- $newService.userPassword == '' ||- $newService.userPassword.length <= 6}"- bind:value="{$newService.userPassword}"- />- </div>- <div class="grid grid-flow-row pb-5">- <label for="PasswordAgain">Password again </label>- <input- id="PasswordAgain"- type="password"- class:placeholder-red-500="{$newService.userPassword !==- $newService.userPasswordAgain}"- class:border-red-500="{$newService.userPassword !==- $newService.userPasswordAgain}"- bind:value="{$newService.userPasswordAgain}"- />- </div>- <button- disabled="{deployable}"- class:cursor-not-allowed="{deployable}"- class:bg-blue-500="{!deployable}"- class:hover:bg-blue-400="{!deployable}"- class:hover:bg-transparent="{deployable}"- class:text-warmGray-700="{deployable}"- class:text-white="{!deployable}"- class="button p-2"- on:click="{deploy}"- >- Deploy- </button>- </div>-{/if}diff --git a/src/pages/service/new/index.svelte b/src/pages/service/new/index.sveltedeleted file mode 100644index 1b91a83aff..0000000000--- a/src/pages/service/new/index.svelte+++ /dev/null@@ -1,32 +0,0 @@-<script>- import { isActive, goto } from "@roxi/routify/runtime";- import { fade } from "svelte/transition";-</script>--<div class="min-h-full text-white">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- Select a service- </div>-</div>-<div- class="text-center space-y-2 max-w-4xl mx-auto px-6"- in:fade="{{ duration: 100 }}"->- {#if $isActive("/service/new")}- <div class="flex justify-center space-x-4 font-bold pb-6">- <div- class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-blue-500 p-2 rounded bg-warmGray-800"- on:click="{$goto('/service/new/plausible')}"- >- <img- alt="plausible logo"- class="w-12 mx-auto"- src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"- />- <div class="text-white">Plausible Analytics</div>- </div>- </div>- {/if}-</div>diff --git a/src/pages/settings/index.svelte b/src/pages/settings/index.sveltedeleted file mode 100644index bcd707d541..0000000000--- a/src/pages/settings/index.svelte+++ /dev/null@@ -1,174 +0,0 @@-<script>- import { toast } from "@zerodevx/svelte-toast";- import { fade } from "svelte/transition";- import { fetch } from "@store";- import Loading from "../../components/Loading.svelte";-- let settings = {- allowRegistration: false,- sendErrors: true- };-- async function loadSettings() {- const response = await $fetch(`/api/v1/settings`);- settings.allowRegistration = response.settings.allowRegistration;- settings.sendErrors = response.settings.sendErrors;- }- async function changeSettings(value) {- settings[value] = !settings[value];- await $fetch(`/api/v1/settings`, {- body: {- ...settings,- },- });- toast.push("Configuration saved.");- }-</script>-- <div class="min-h-full text-white" in:fade="{{ duration: 100 }}">- <div- class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"- >- <div>Settings</div>- </div>- </div>-{#await loadSettings()}- <Loading />-{:then}-<div in:fade="{{ duration: 100 }}">- <div class="max-w-4xl mx-auto px-6 pb-4">- <div>- <div class="text-2xl font-bold border-gradient w-32 pt-4 text-white">General</div>- <div class=" pt-4">- <div class="px-4 sm:px-6">- <ul class="mt-2 divide-y divide-warmGray-800">- <li class="py-4 flex items-center justify-between">- <div class="flex flex-col">- <p class="text-base font-bold text-warmGray-100">- Registration allowed?- </p>- <p class="text-sm font-medium text-warmGray-400">- Allow further registrations to the application. It's turned- off after the first registration.- </p>- </div>- <button- type="button"- on:click="{() => changeSettings('allowRegistration')}"- aria-pressed="false"- class="relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200"- class:bg-green-600="{settings.allowRegistration}"- class:bg-warmGray-700="{!settings.allowRegistration}"- >- <span class="sr-only">Use setting</span>- <span- class="pointer-events-none relative inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"- class:translate-x-5="{settings.allowRegistration}"- class:translate-x-0="{!settings.allowRegistration}"- >- <span- class=" ease-in duration-200 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"- class:opacity-0="{settings.allowRegistration}"- class:opacity-100="{!settings.allowRegistration}"- aria-hidden="true"- >- <svg- class="bg-white h-3 w-3 text-red-600"- fill="none"- viewBox="0 0 12 12"- >- <path- d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"></path>- </svg>- </span>- <span- class="ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"- aria-hidden="true"- class:opacity-100="{settings.allowRegistration}"- class:opacity-0="{!settings.allowRegistration}"- >- <svg- class="bg-white h-3 w-3 text-green-600"- fill="currentColor"- viewBox="0 0 12 12"- >- <path- d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"- ></path>- </svg>- </span>- </span>- </button>- </li>- <li class="py-4 flex items-center justify-between">- <div class="flex flex-col">- <p class="text-base font-bold text-warmGray-100">- Send errors automatically?- </p>- <p class="text-sm font-medium text-warmGray-400">- Allow to send errors automatically to developer(s) at coolLabs (<a href="https://twitter.com/andrasbacsai" target="_blank" class="underline text-white font-bold hover:text-blue-400">Andras Bacsai</a>). This will help to fix bugs quicker. 🙏- </p>- </div>- <button- type="button"- on:click="{() => changeSettings('sendErrors')}"- aria-pressed="true"- class="relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200"- class:bg-green-600="{settings.sendErrors}"- class:bg-warmGray-700="{!settings.sendErrors}"- >- <span class="sr-only">Use setting</span>- <span- class="pointer-events-none relative inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"- class:translate-x-5="{settings.sendErrors}"- class:translate-x-0="{!settings.sendErrors}"- >- <span- class=" ease-in duration-200 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"- class:opacity-0="{settings.sendErrors}"- class:opacity-100="{!settings.sendErrors}"- aria-hidden="true"- >- <svg- class="bg-white h-3 w-3 text-red-600"- fill="none"- viewBox="0 0 12 12"- >- <path- d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"></path>- </svg>- </span>- <span- class="ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"- aria-hidden="true"- class:opacity-100="{settings.sendErrors}"- class:opacity-0="{!settings.sendErrors}"- >- <svg- class="bg-white h-3 w-3 text-green-600"- fill="currentColor"- viewBox="0 0 12 12"- >- <path- d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"- ></path>- </svg>- </span>- </span>- </button>- </li>- </ul>- </div>- </div>- </div>- </div>-</div>-{/await}diff --git a/src/routes/__error.svelte b/src/routes/__error.sveltenew file mode 100644index 0000000000..62f45fc132--- /dev/null+++ b/src/routes/__error.svelte@@ -0,0 +1,15 @@+<script context="module">+ export function load({ error, status }) {+ return {+ props: {+ error: `${status}: ${error.message}`+ }+ };+ }+</script>++<script>+ export let error;+</script>++<h1 class="text-xl font-bold">{error}</h1>\ No newline at end of filediff --git a/src/routes/__layout.svelte b/src/routes/__layout.sveltenew file mode 100644index 0000000000..dce2976752--- /dev/null+++ b/src/routes/__layout.svelte@@ -0,0 +1,315 @@+<script context="module" lang="ts">+ import { publicPages } from '$lib/consts';+ import { request } from '$lib/api/request';+ /**+ * @type {import('@sveltejs/kit').Load}+ */+ export async function load(session) {+ const { path } = session.page;+ if (!publicPages.includes(path)) {+ if (!session.session.isLoggedIn) {+ return {+ status: 301,+ redirect: '/'+ };+ }+ return {};+ }+ if (!publicPages.includes(path)) {+ return {+ status: 301,+ redirect: '/'+ };+ }+ return {};+ }++</script>++<script lang="ts">+ import '../app.postcss';+ export let initDashboard;+ import { onMount } from 'svelte';+ import { SvelteToast } from '@zerodevx/svelte-toast';+ import { goto } from '$app/navigation';+ import { page, session } from '$app/stores';+ import { toast } from '@zerodevx/svelte-toast';+ import Tooltip from '$components/Tooltip.svelte';+ import compareVersions from 'compare-versions';+ import packageJson from '../../package.json';+ import { dashboard } from '$store';+ import { browser } from '$app/env';+ $dashboard = initDashboard;+ const branch =+ process.env.NODE_ENV === 'production' &&+ browser &&+ window.location.hostname !== 'test.andrasbacsai.dev'+ ? 'main'+ : 'next';+ let latest = {+ coolify: {}+ };+ let upgradeAvailable = false;+ let upgradeDisabled = false;+ let upgradeDone = false;+ let showAck = false;+ const options = {+ duration: 2000+ };+ onMount(async () => {+ upgradeAvailable = await checkUpgrade();+ browser && localStorage.removeItem('token')+ if (!localStorage.getItem('automaticErrorReportsAck')) {+ showAck = true;+ if (latest?.coolify[branch]?.settings?.sendErrors) {+ const settings = {+ sendErrors: true+ };+ await request('/api/v1/settings', $session, { body: { ...settings } });+ }+ }+ });+ async function checkUpgrade() {+ latest = await fetch(`https://get.coollabs.io/version.json`, {+ cache: 'no-cache'+ }).then((r) => r.json());++ return compareVersions(latest.coolify[branch].version, packageJson.version) === 1+ ? true+ : false;+ }+ async function upgrade() {+ try {+ upgradeDisabled = true;+ await request('/api/v1/upgrade', $session);+ upgradeDone = true;+ } catch (error) {+ browser &&+ toast.push(+ 'Something happened during update. Ooops. Automatic error reporting will happen soon.'+ );+ }+ }+ async function logout() {+ await request('/api/v1/logout', $session, { body: {}, method: 'DELETE' });+ location.reload();+ }+ function reloadInAMin() {+ setTimeout(() => {+ location.reload();+ }, 30000);+ }+ function ackError() {+ localStorage.setItem('automaticErrorReportsAck', 'true');+ showAck = false;+ }++</script>++<SvelteToast {options} />++{#if showAck && $page.path !== '/success' && $page.path !== '/'}+ <div class="p-2 fixed top-0 right-0 z-50 w-64 m-2 rounded border-gradient-full bg-black">+ <div class="text-white text-xs space-y-2 text-justify font-medium">+ <div>We implemented an automatic error reporting feature, which is enabled by default.</div>+ <div>Why? Because we would like to hunt down bugs faster and easier.</div>+ <div class="py-5">+ If you do not like it, you can turn it off in the <button+ class="underline font-bold"+ on:click={() => goto('/settings')}>Settings menu</button+ >.+ </div>+ <button+ class="button p-2 bg-warmGray-800 w-full text-center hover:bg-warmGray-700"+ on:click={ackError}>OK</button+ >+ </div>+ </div>+{/if}+<main class:main={$page.path !== '/success' && $page.path !== '/'}>+ {#if $page.path !== '/' && $page.path !== '/success'}+ <nav class="w-16 bg-warmGray-800 text-white top-0 left-0 fixed min-w-4rem min-h-screen">+ <div+ class="flex flex-col w-full h-screen items-center transition-all duration-100"+ class:border-green-500={$page.path === '/dashboard/applications'}+ class:border-purple-500={$page.path === '/dashboard/databases'}+ >+ <div class="w-10 pt-4 pb-4"><img src="/favicon.png" alt="coolLabs logo" /></div>++ <Tooltip position="right" label="Applications">+ <div+ class="p-2 hover:bg-warmGray-700 rounded hover:text-green-500 mt-4 transition-all duration-100 cursor-pointer"+ on:click={() => goto('/dashboard/applications')}+ class:text-green-500={$page.path === '/dashboard/applications' ||+ $page.path.startsWith('/application')}+ class:bg-warmGray-700={$page.path === '/dashboard/applications' ||+ $page.path.startsWith('/application')}+ >+ <svg+ class="w-8"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><rect x="4" y="4" width="16" height="16" rx="2" ry="2" /><rect+ x="9"+ y="9"+ width="6"+ height="6"+ /><line x1="9" y1="1" x2="9" y2="4" /><line x1="15" y1="1" x2="15" y2="4" /><line+ x1="9"+ y1="20"+ x2="9"+ y2="23"+ /><line x1="15" y1="20" x2="15" y2="23" /><line x1="20" y1="9" x2="23" y2="9" /><line+ x1="20"+ y1="14"+ x2="23"+ y2="14"+ /><line x1="1" y1="9" x2="4" y2="9" /><line x1="1" y1="14" x2="4" y2="14" /></svg+ >+ </div>+ </Tooltip>+ <Tooltip position="right" label="Databases">+ <div+ class="p-2 hover:bg-warmGray-700 rounded hover:text-purple-500 my-4 transition-all duration-100 cursor-pointer"+ on:click={() => goto('/dashboard/databases')}+ class:text-purple-500={$page.path === '/dashboard/databases' ||+ $page.path.startsWith('/database')}+ class:bg-warmGray-700={$page.path === '/dashboard/databases' ||+ $page.path.startsWith('/database')}+ >+ <svg+ class="w-8"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"+ />+ </svg>+ </div>+ </Tooltip>+ <Tooltip position="right" label="Services">+ <div+ class="p-2 hover:bg-warmGray-700 rounded hover:text-blue-500 transition-all duration-100 cursor-pointer"+ class:text-blue-500={$page.path === '/dashboard/services' ||+ $page.path.startsWith('/service')}+ class:bg-warmGray-700={$page.path === '/dashboard/services' ||+ $page.path.startsWith('/service')}+ on:click={() => goto('/dashboard/services')}+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="w-8"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"+ />+ </svg>+ </div>+ </Tooltip>+ <div class="flex-1" />+ <Tooltip position="right" label="Settings">+ <button+ class="p-2 hover:bg-warmGray-700 rounded hover:text-yellow-500 transition-all duration-100 cursor-pointer"+ class:text-yellow-500={$page.path === '/settings'}+ class:bg-warmGray-700={$page.path === '/settings'}+ on:click={() => goto('/settings')}+ >+ <svg+ class="w-8"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"+ />+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"+ />+ </svg>+ </button>+ </Tooltip>+ <Tooltip position="right" label="Logout">+ <button+ class="p-2 hover:bg-warmGray-700 rounded hover:text-red-500 my-4 transition-all duration-100 cursor-pointer"+ on:click={logout}+ >+ <svg+ class="w-7"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /><polyline+ points="16 17 21 12 16 7"+ /><line x1="21" y1="12" x2="9" y2="12" /></svg+ >+ </button>+ </Tooltip>+ <a+ href={`https://github.com/coollabsio/coolify/releases/tag/v${packageJson.version}`}+ target="_blank"+ class="cursor-pointer text-xs font-bold text-warmGray-400 py-2 hover:bg-warmGray-700 w-full text-center"+ >+ {packageJson.version}+ </a>+ </div>+ </nav>+ {/if}+ <slot />+</main>+{#if upgradeAvailable && $page.path !== '/success' && $page.path !== '/'}+ <footer+ class="fixed bottom-0 right-0 p-4 px-6 w-auto rounded-tl text-white hover:scale-110 transform transition duration-100"+ >+ <div class="flex items-center">+ <div />+ <div class="flex-1" />+ {#if !upgradeDisabled}+ <button+ class="bg-gradient-to-r from-purple-500 via-pink-500 to-red-500 text-xs font-bold rounded px-2 py-2"+ disabled={upgradeDisabled}+ on:click={upgrade}>New version available, <br />click here to upgrade!</button+ >+ {:else if upgradeDone}+ <button+ use:reloadInAMin+ class="font-bold text-xs rounded px-2 cursor-not-allowed"+ disabled={upgradeDisabled}>Upgrade done. 🎉 Automatically reloading in 30s.</button+ >+ {:else}+ <button+ class="opacity-50 tracking-tight font-bold text-xs rounded px-2 cursor-not-allowed"+ disabled={upgradeDisabled}>Upgrading. It could take a while, please wait...</button+ >+ {/if}+ </div>+ </footer>+{/if}diff --git a/src/routes/api/_index.ts b/src/routes/api/_index.tsnew file mode 100644index 0000000000..feefe2c6da--- /dev/null+++ b/src/routes/api/_index.ts@@ -0,0 +1,42 @@+import type { Request } from '@sveltejs/kit';++// export async function api(request: Request, resource: string, data?: {}) {+// const base = 'https://github.com/';+// if (!request.context.isLoggedIn) {+// return { status: 401, body: 'Unauthorized' };+// }++// const res = await fetch(`${base}${resource}`, {+// method: request.method,+// headers: {+// 'content-type': 'application/json'+// },+// body: data && JSON.stringify(data)+// });+// return {+// status: res.status,+// body: await res.json()+// };+// }++export async function githubAPI(+ request: Request,+ resource: string,+ token?: string,+ data?: Record<string, unknown>+) {+ const base = 'https://api.github.com';+ const res = await fetch(`${base}${resource}`, {+ method: request.method,+ headers: {+ 'content-type': 'application/json',+ accept: 'application/json',+ authorization: token ? `token ${token}` : ''+ },+ body: data && JSON.stringify(data)+ });+ return {+ status: res.status,+ body: await res.json()+ };+}diff --git a/src/routes/api/v1/application/check.ts b/src/routes/api/v1/application/check.tsnew file mode 100644index 0000000000..5774609cc2--- /dev/null+++ b/src/routes/api/v1/application/check.ts@@ -0,0 +1,51 @@+import { setDefaultConfiguration } from '$lib/api/applications/configuration';+import { saveServerLog } from '$lib/api/applications/logging';+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';++export async function post(request: Request) {+ try {+ const { DOMAIN } = process.env;+ const configuration = setDefaultConfiguration(request.body);++ const services = (await docker.engine.listServices()).filter(+ (r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application'+ );+ let foundDomain = false;++ for (const service of services) {+ const running = JSON.parse(service.Spec.Labels.configuration);+ if (running) {+ if (+ running.publish.domain === configuration.publish.domain &&+ running.repository.id !== configuration.repository.id &&+ running.publish.path === configuration.publish.path+ ) {+ foundDomain = true;+ }+ }+ }+ if (DOMAIN === configuration.publish.domain) foundDomain = true;+ if (foundDomain) {+ return {+ status: 200,+ body: {+ success: false,+ message: 'Domain already in use.'+ }+ };+ }+ return {+ status: 200,+ body: { success: true, message: 'OK' }+ };+ } catch (error) {+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/application/config.ts b/src/routes/api/v1/application/config.tsnew file mode 100644index 0000000000..7df760bda9--- /dev/null+++ b/src/routes/api/v1/application/config.ts@@ -0,0 +1,50 @@+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';++export async function post(request: Request) {+ const { name, organization, branch }: any = request.body || {};+ if (name && organization && branch) {+ const services = await docker.engine.listServices();+ const applications = services.filter(+ (r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application'+ );+ const found = applications.find((r) => {+ const configuration = r.Spec.Labels.configuration+ ? JSON.parse(r.Spec.Labels.configuration)+ : null;+ if (branch) {+ if (+ configuration.repository.name === name &&+ configuration.repository.organization === organization &&+ configuration.repository.branch === branch+ ) {+ return r;+ }+ } else {+ if (+ configuration.repository.name === name &&+ configuration.repository.organization === organization+ ) {+ return r;+ }+ }+ return null;+ });+ if (found) {+ return {+ status: 200,+ body: {+ success: true,+ ...JSON.parse(found.Spec.Labels.configuration)+ }+ };+ } else {+ return {+ status: 500,+ body: {+ error: 'No configuration found.'+ }+ };+ }+ }+}diff --git a/src/routes/api/v1/application/deploy/index.ts b/src/routes/api/v1/application/deploy/index.tsnew file mode 100644index 0000000000..54329f9a6e--- /dev/null+++ b/src/routes/api/v1/application/deploy/index.ts@@ -0,0 +1,90 @@+import type { Request } from '@sveltejs/kit';+import Deployment from '$models/Logs/Deployment';+import { docker } from '$lib/api/docker';+import { precheckDeployment, setDefaultConfiguration } from '$lib/api/applications/configuration';+import cloneRepository from '$lib/api/applications/cloneRepository';+import { cleanupTmp } from '$lib/api/common';+import queueAndBuild from '$lib/api/applications/queueAndBuild';+export async function post(request: Request) {+ let configuration;+ try {+ const services = (await docker.engine.listServices()).filter(+ (r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application'+ );+ configuration = setDefaultConfiguration(request.body);++ if (!configuration) {+ return {+ status: 500,+ body: {+ error: 'Whaaat?'+ }+ };+ }+ await cloneRepository(configuration);+ const { foundService, imageChanged, configChanged, forceUpdate } = await precheckDeployment({+ services,+ configuration+ });+ if (foundService && !forceUpdate && !imageChanged && !configChanged) {+ cleanupTmp(configuration.general.workdir);+ return {+ status: 200,+ body: {+ success: false,+ message: 'Nothing changed, no need to redeploy.'+ }+ };+ }+ const alreadyQueued = await Deployment.find({+ repoId: configuration.repository.id,+ branch: configuration.repository.branch,+ organization: configuration.repository.organization,+ name: configuration.repository.name,+ domain: configuration.publish.domain,+ progress: { $in: ['queued', 'inprogress'] }+ });+ if (alreadyQueued.length > 0) {+ return {+ status: 200,+ body: {+ success: false,+ message: 'Already in the queue.'+ }+ };+ }+ queueAndBuild(configuration, imageChanged);+ return {+ status: 200,+ body: {+ message: 'Deployment queued.',+ nickname: configuration.general.nickname,+ name: configuration.build.container.name,+ deployId: configuration.general.deployId+ }+ };+ } catch (error) {+ await Deployment.findOneAndUpdate(+ {+ repoId: configuration.repository.id,+ branch: configuration.repository.branch,+ organization: configuration.repository.organization,+ name: configuration.repository.name,+ domain: configuration.publish.domain,+ },+ {+ repoId: configuration.repository.id,+ branch: configuration.repository.branch,+ organization: configuration.repository.organization,+ name: configuration.repository.name,+ domain: configuration.publish.domain, progress: 'failed'+ }+ );+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/application/deploy/logs/[deployId].ts b/src/routes/api/v1/application/deploy/logs/[deployId].tsnew file mode 100644index 0000000000..8a1d37d662--- /dev/null+++ b/src/routes/api/v1/application/deploy/logs/[deployId].ts@@ -0,0 +1,35 @@+import type { Request } from '@sveltejs/kit';+import ApplicationLog from '$models/Logs/Application';+import Deployment from '$models/Logs/Deployment';+import dayjs from 'dayjs';++export async function get(request: Request) {+ const { deployId } = request.params;+ try {+ const logs: any = await ApplicationLog.find({ deployId })+ .select('-_id -__v')+ .sort({ createdAt: 'asc' });++ const deploy: any = await Deployment.findOne({ deployId })+ .select('-_id -__v')+ .sort({ createdAt: 'desc' });++ const finalLogs: any = {};+ finalLogs.progress = deploy.progress;+ finalLogs.events = logs.map((log) => log.event);+ finalLogs.human = dayjs(deploy.updatedAt).from(dayjs(deploy.updatedAt));+ return {+ status: 200,+ body: {+ ...finalLogs+ }+ };+ } catch (e) {+ return {+ status: 500,+ body: {+ error: e+ }+ };+ }+}diff --git a/src/routes/api/v1/application/deploy/logs/index.ts b/src/routes/api/v1/application/deploy/logs/index.tsnew file mode 100644index 0000000000..3308e1b0de--- /dev/null+++ b/src/routes/api/v1/application/deploy/logs/index.ts@@ -0,0 +1,47 @@+import type { Request } from '@sveltejs/kit';+import dayjs from 'dayjs';+import utc from 'dayjs/plugin/utc.js';+import relativeTime from 'dayjs/plugin/relativeTime.js';+import Deployment from '$models/Logs/Deployment';+dayjs.extend(utc);+dayjs.extend(relativeTime);+export async function get(request: Request) {+ try {+ const repoId = request.query.get('repoId');+ const branch = request.query.get('branch');+ const page = request.query.get('page');++ const onePage = 5;+ const show = Number(page) * onePage || 5;+ const deploy: any = await Deployment.find({ repoId, branch })+ .select('-_id -__v -repoId')+ .sort({ createdAt: 'desc' })+ .limit(show);++ const finalLogs = deploy.map((d) => {+ const finalLogs = { ...d._doc };++ const updatedAt = dayjs(d.updatedAt).utc();++ finalLogs.took = updatedAt.diff(dayjs(d.createdAt)) / 1000;+ finalLogs.since = updatedAt.fromNow();++ return finalLogs;+ });+ return {+ status: 200,+ body: {+ success: true,+ logs: finalLogs+ }+ };+ } catch (error) {+ console.log(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/application/logs.ts b/src/routes/api/v1/application/logs.tsnew file mode 100644index 0000000000..b39ae1d866--- /dev/null+++ b/src/routes/api/v1/application/logs.ts@@ -0,0 +1,27 @@+import { saveServerLog } from '$lib/api/applications/logging';+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';++export async function get(request: Request) {+ try {+ const name = request.query.get('name');+ const service = await docker.engine.getService(`${name}_${name}`);+ const logs = (await service.logs({ stdout: true, stderr: true, timestamps: true }))+ .toString()+ .split('\n')+ .map((l) => l.slice(8))+ .filter((a) => a);+ return {+ status: 200,+ body: { success: true, logs }+ };+ } catch (error) {+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/application/remove.ts b/src/routes/api/v1/application/remove.tsnew file mode 100644index 0000000000..9e1067fc2c--- /dev/null+++ b/src/routes/api/v1/application/remove.ts@@ -0,0 +1,60 @@+import { purgeImagesContainers } from '$lib/api/applications/cleanup';+import { docker } from '$lib/api/docker';+import Deployment from '$models/Logs/Deployment';+import ApplicationLog from '$models/Logs/Application';+import { delay, execShellAsync } from '$lib/api/common';++async function call(found) {+ await delay(10000);+ await purgeImagesContainers(found, true);+}+export async function post(request: Request) {+ const { organization, name, branch } = request.body;+ let found = false;+ try {+ (await docker.engine.listServices())+ .filter((r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application')+ .map((s) => {+ const running = JSON.parse(s.Spec.Labels.configuration);+ if (+ running.repository.organization === organization &&+ running.repository.name === name &&+ running.repository.branch === branch+ ) {+ found = running;+ }+ return null;+ });+ if (found) {+ const deploys = await Deployment.find({ organization, branch, name });+ for (const deploy of deploys) {+ await ApplicationLog.deleteMany({ deployId: deploy.deployId });+ await Deployment.deleteMany({ deployId: deploy.deployId });+ }+ await execShellAsync(`docker stack rm ${found.build.container.name}`);+ call(found);+ return {+ status: 200,+ body: {+ organization,+ name,+ branch+ }+ };+ } else {+ return {+ status: 500,+ error: {+ message: 'Nothing to do.'+ }+ };+ }+ } catch (error) {+ return {+ status: 500,+ error: {+ message: 'Nothing to do.'+ }+ };+ }+}diff --git a/src/routes/api/v1/dashboard.ts b/src/routes/api/v1/dashboard.tsnew file mode 100644index 0000000000..c199508e3b--- /dev/null+++ b/src/routes/api/v1/dashboard.ts@@ -0,0 +1,76 @@+import { docker } from '$lib/api/docker';+import LogsServer from '$models/Logs/Server';+import type { Request } from '@sveltejs/kit';++export async function get(request: Request) {+ const serverLogs = await LogsServer.find();+ const dockerServices = await docker.engine.listServices();+ let applications: any = dockerServices.filter(+ (r) =>+ r.Spec.Labels.managedBy === 'coolify' &&+ r.Spec.Labels.type === 'application' &&+ r.Spec.Labels.configuration+ );+ let databases: any = dockerServices.filter(+ (r) =>+ r.Spec.Labels.managedBy === 'coolify' &&+ r.Spec.Labels.type === 'database' &&+ r.Spec.Labels.configuration+ );+ let services: any = dockerServices.filter(+ (r) =>+ r.Spec.Labels.managedBy === 'coolify' &&+ r.Spec.Labels.type === 'service' &&+ r.Spec.Labels.configuration+ );+ applications = applications.map((r) => {+ if (JSON.parse(r.Spec.Labels.configuration)) {+ return {+ configuration: JSON.parse(r.Spec.Labels.configuration),+ UpdatedAt: r.UpdatedAt+ };+ }+ return {};+ });+ databases = databases.map((r) => {+ if (JSON.parse(r.Spec.Labels.configuration)) {+ return {+ configuration: JSON.parse(r.Spec.Labels.configuration)+ };+ }+ return {};+ });+ services = services.map((r) => {+ if (JSON.parse(r.Spec.Labels.configuration)) {+ return {+ serviceName: r.Spec.Labels.serviceName,+ configuration: JSON.parse(r.Spec.Labels.configuration)+ };+ }+ return {};+ });+ applications = [+ ...new Map(+ applications.map((item) => [+ item.configuration.publish.domain + item.configuration.publish.path,+ item+ ])+ ).values()+ ];+ return {+ status: 200,+ body: {+ success: true,+ serverLogs,+ applications: {+ deployed: applications+ },+ databases: {+ deployed: databases+ },+ services: {+ deployed: services+ }+ }+ };+}diff --git a/src/routes/api/v1/databases/[deployId]/backup.ts b/src/routes/api/v1/databases/[deployId]/backup.tsnew file mode 100644index 0000000000..1762a9b2ee--- /dev/null+++ b/src/routes/api/v1/databases/[deployId]/backup.ts@@ -0,0 +1,122 @@+import type { Request } from '@sveltejs/kit';+import { saveServerLog } from '$lib/api/applications/logging';+import { execShellAsync } from '$lib/api/common';+import { docker } from '$lib/api/docker';+import fs from 'fs';++export async function post(request: Request) {+ const tmpdir = '/tmp/backups';+ const { deployId } = request.params;+ try {+ const now = new Date();+ const configuration = JSON.parse(+ JSON.parse(await execShellAsync(`docker inspect ${deployId}_${deployId}`))[0].Spec.Labels+ .configuration+ );+ const type = configuration.general.type;+ const serviceId = configuration.general.deployId;+ const databaseService = (await docker.engine.listContainers()).find(+ (r) => r.Labels['com.docker.stack.namespace'] === serviceId && r.State === 'running'+ );+ const containerID = databaseService.Labels['com.docker.swarm.task.name'];+ await execShellAsync(`mkdir -p ${tmpdir}`);+ if (type === 'mongodb') {+ if (databaseService) {+ const username = configuration.database.usernames[0];+ const password = configuration.database.passwords[1];+ const databaseName = configuration.database.defaultDatabaseName;+ const filename = `${databaseName}_${now.getTime()}.gz`;+ const fullfilename = `${tmpdir}/${filename}`;+ await execShellAsync(+ `docker exec -i ${containerID} /bin/bash -c "mkdir -p ${tmpdir};mongodump --uri='mongodb://${username}:${password}@${deployId}:27017' -d ${databaseName} --gzip --archive=${fullfilename}"`+ );+ await execShellAsync(`docker cp ${containerID}:${fullfilename} ${fullfilename}`);+ await execShellAsync(`docker exec -i ${containerID} /bin/bash -c "rm -f ${fullfilename}"`);+ return {+ status: 200,+ headers: {+ 'Content-Type': 'application/octet-stream',+ 'Content-Transfer-Encoding': 'binary',+ 'Content-Disposition': `attachment; filename=${filename}`+ },+ body: fs.readFileSync(`${fullfilename}`)+ };+ }+ } else if (type === 'postgresql') {+ if (databaseService) {+ const username = configuration.database.usernames[0];+ const password = configuration.database.passwords[0];+ const databaseName = configuration.database.defaultDatabaseName;+ const filename = `${databaseName}_${now.getTime()}.sql.gz`;+ const fullfilename = `${tmpdir}/${filename}`;+ await execShellAsync(+ `docker exec -i ${containerID} /bin/bash -c "PGPASSWORD=${password} pg_dump --username ${username} -Z 9 ${databaseName}" > ${fullfilename}`+ );+ return {+ status: 200,+ headers: {+ 'Content-Type': 'application/octet-stream',+ 'Content-Transfer-Encoding': 'binary',+ 'Content-Disposition': `attachment; filename=${filename}`+ },+ body: fs.readFileSync(`${fullfilename}`)+ };+ }+ } else if (type === 'couchdb') {+ if (databaseService) {+ const databaseName = configuration.database.defaultDatabaseName;+ const filename = `${databaseName}_${now.getTime()}.tar.gz`;+ const fullfilename = `${tmpdir}/${filename}`;+ await execShellAsync(+ `docker exec -i ${containerID} /bin/bash -c "cd /bitnami/couchdb/data/ && tar -czvf - ." > ${fullfilename}`+ );+ return {+ status: 200,+ headers: {+ 'Content-Type': 'application/octet-stream',+ 'Content-Transfer-Encoding': 'binary',+ 'Content-Disposition': `attachment; filename=${filename}`+ },+ body: fs.readFileSync(`${fullfilename}`)+ };+ }+ } else if (type === 'mysql') {+ if (databaseService) {+ const username = configuration.database.usernames[0];+ const password = configuration.database.passwords[0];+ const databaseName = configuration.database.defaultDatabaseName;+ const filename = `${databaseName}_${now.getTime()}.sql.gz`;+ const fullfilename = `${tmpdir}/${filename}`;+ await execShellAsync(+ `docker exec -i ${containerID} /bin/bash -c "mysqldump -u ${username} -p${password} ${databaseName} | gzip -9 -" > ${fullfilename}`+ );+ return {+ status: 200,+ headers: {+ 'Content-Type': 'application/octet-stream',+ 'Content-Transfer-Encoding': 'binary',+ 'Content-Disposition': `attachment; filename=${filename}`+ },+ body: fs.readFileSync(`${fullfilename}`)+ };+ }+ }+ return {+ status: 501,+ body: {+ error: `Backup method not implemented yet for ${type}.`+ }+ };+ } catch (error) {+ console.log(error);+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ } finally {+ await execShellAsync(`rm -fr ${tmpdir}`);+ }+}diff --git a/src/routes/api/v1/databases/[deployId]/index.ts b/src/routes/api/v1/databases/[deployId]/index.tsnew file mode 100644index 0000000000..a7a5ab7ab5--- /dev/null+++ b/src/routes/api/v1/databases/[deployId]/index.ts@@ -0,0 +1,59 @@+import { execShellAsync } from '$lib/api/common';+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';++export async function del(request: Request) {+ const { deployId } = request.params;+ await execShellAsync(`docker stack rm ${deployId}`);+ return {+ status: 200,+ body: {}+ };+}+export async function get(request: Request) {+ const { deployId } = request.params;++ try {+ const database = (await docker.engine.listServices()).find(+ (r) =>+ r.Spec.Labels.managedBy === 'coolify' &&+ r.Spec.Labels.type === 'database' &&+ JSON.parse(r.Spec.Labels.configuration).general.deployId === deployId+ );++ if (database) {+ const jsonEnvs = {};+ if (database.Spec.TaskTemplate.ContainerSpec.Env) {+ for (const d of database.Spec.TaskTemplate.ContainerSpec.Env) {+ const s = d.split('=');+ jsonEnvs[s[0]] = s[1];+ }+ }+ const payload = {+ config: JSON.parse(database.Spec.Labels.configuration),+ envs: jsonEnvs || null+ };++ return {+ status: 200,+ body: {+ ...payload+ }+ };+ } else {+ return {+ status: 500,+ body: {+ error: 'No database found.'+ }+ };+ }+ } catch (error) {+ return {+ status: 500,+ body: {+ error: 'No database found.'+ }+ };+ }+}diff --git a/src/routes/api/v1/databases/deploy.ts b/src/routes/api/v1/databases/deploy.tsnew file mode 100644index 0000000000..ea2aa40947--- /dev/null+++ b/src/routes/api/v1/databases/deploy.ts@@ -0,0 +1,161 @@+import { saveServerLog } from '$lib/api/applications/logging';+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';+import yaml from 'js-yaml';+import { promises as fs } from 'fs';+import cuid from 'cuid';+import generator from 'generate-password';+import { uniqueNamesGenerator, adjectives, colors, animals } from 'unique-names-generator';+import { execShellAsync } from '$lib/api/common';++function getUniq() {+ return uniqueNamesGenerator({ dictionaries: [adjectives, animals, colors], length: 2 });+}++export async function post(request: Request) {+ try {+ const { type } = request.body;+ let { defaultDatabaseName } = request.body;+ const passwords = generator.generateMultiple(2, {+ length: 24,+ numbers: true,+ strict: true+ });+ const usernames = generator.generateMultiple(2, {+ length: 10,+ numbers: true,+ strict: true+ });+ // TODO: Query for existing db with the same name+ const nickname = getUniq();++ if (!defaultDatabaseName) defaultDatabaseName = nickname;++ const deployId = cuid();+ const configuration = {+ general: {+ workdir: `/tmp/${deployId}`,+ deployId,+ nickname,+ type+ },+ database: {+ usernames,+ passwords,+ defaultDatabaseName+ },+ deploy: {+ name: nickname+ }+ };+ await execShellAsync(`mkdir -p ${configuration.general.workdir}`);+ let generateEnvs = {};+ let image = null;+ let volume = null;+ let ulimits = {};+ if (type === 'mongodb') {+ generateEnvs = {+ MONGODB_ROOT_PASSWORD: passwords[0],+ MONGODB_USERNAME: usernames[0],+ MONGODB_PASSWORD: passwords[1],+ MONGODB_DATABASE: defaultDatabaseName+ };+ image = 'bitnami/mongodb:4.4';+ volume = `${configuration.general.deployId}-${type}-data:/bitnami/mongodb`;+ } else if (type === 'postgresql') {+ generateEnvs = {+ POSTGRESQL_PASSWORD: passwords[0],+ POSTGRESQL_USERNAME: usernames[0],+ POSTGRESQL_DATABASE: defaultDatabaseName+ };+ image = 'bitnami/postgresql:13.2.0';+ volume = `${configuration.general.deployId}-${type}-data:/bitnami/postgresql`;+ } else if (type === 'couchdb') {+ generateEnvs = {+ COUCHDB_PASSWORD: passwords[0],+ COUCHDB_USER: usernames[0]+ };+ image = 'bitnami/couchdb:3';+ volume = `${configuration.general.deployId}-${type}-data:/bitnami/couchdb`;+ } else if (type === 'mysql') {+ generateEnvs = {+ MYSQL_ROOT_PASSWORD: passwords[0],+ MYSQL_ROOT_USER: usernames[0],+ MYSQL_USER: usernames[1],+ MYSQL_PASSWORD: passwords[1],+ MYSQL_DATABASE: defaultDatabaseName+ };+ image = 'bitnami/mysql:8.0';+ volume = `${configuration.general.deployId}-${type}-data:/bitnami/mysql/data`;+ } else if (type === 'clickhouse') {+ image = 'yandex/clickhouse-server';+ volume = `${configuration.general.deployId}-${type}-data:/var/lib/clickhouse`;+ ulimits = {+ nofile: {+ soft: 262144,+ hard: 262144+ }+ };+ }++ const stack = {+ version: '3.8',+ services: {+ [configuration.general.deployId]: {+ image,+ networks: [`${docker.network}`],+ environment: generateEnvs,+ volumes: [volume],+ ulimits,+ deploy: {+ replicas: 1,+ update_config: {+ parallelism: 0,+ delay: '10s',+ order: 'start-first'+ },+ rollback_config: {+ parallelism: 0,+ delay: '10s',+ order: 'start-first'+ },+ labels: [+ 'managedBy=coolify',+ 'type=database',+ 'configuration=' + JSON.stringify(configuration)+ ]+ }+ }+ },+ networks: {+ [`${docker.network}`]: {+ external: true+ }+ },+ volumes: {+ [`${configuration.general.deployId}-${type}-data`]: {+ external: true+ }+ }+ };+ await fs.writeFile(`${configuration.general.workdir}/stack.yml`, yaml.dump(stack));+ await execShellAsync(+ `cat ${configuration.general.workdir}/stack.yml | docker stack deploy -c - ${configuration.general.deployId}`+ );+ return {+ status: 201,+ body: {+ message: 'Deployed.'+ }+ };+ } catch (error) {+ console.log(error);+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/login/github/app.ts b/src/routes/api/v1/login/github/app.tsnew file mode 100644index 0000000000..e0df7e996d--- /dev/null+++ b/src/routes/api/v1/login/github/app.ts@@ -0,0 +1,110 @@+import { githubAPI } from '$api';+import type { Request } from '@sveltejs/kit';+import mongoose from 'mongoose';+import User from '$models/User';+import Settings from '$models/Settings';+import cuid from 'cuid';+import jsonwebtoken from 'jsonwebtoken';++export async function get(request: Request) {+ const code = request.query.get('code');+ const { GITHUB_APP_CLIENT_SECRET, JWT_SIGN_KEY, VITE_GITHUB_APP_CLIENTID } = process.env;+ try {+ let uid = cuid();+ const { access_token } = await (+ await fetch(+ `https://github.com/login/oauth/access_token?client_id=${VITE_GITHUB_APP_CLIENTID}&client_secret=${GITHUB_APP_CLIENT_SECRET}&code=${code}`,+ { headers: { accept: 'application/json' } }+ )+ ).json();+ const { avatar_url, id } = await (await githubAPI(request, '/user', access_token)).body;+ const email = (await githubAPI(request, '/user/emails', access_token)).body.filter(+ (e) => e.primary+ )[0].email;+ const settings = await Settings.findOne({ applicationName: 'coolify' });+ const registeredUsers = await User.find().countDocuments();+ const foundUser = await User.findOne({ email });+ if (foundUser) {+ await User.findOneAndUpdate({ email }, { avatar: avatar_url }, { upsert: true, new: true });+ uid = foundUser.uid;+ } else {+ if (registeredUsers === 0) {+ const newUser = new User({+ _id: new mongoose.Types.ObjectId(),+ email,+ avatar: avatar_url,+ uid+ });+ const defaultSettings = new Settings({+ _id: new mongoose.Types.ObjectId()+ });+ try {+ await newUser.save();+ await defaultSettings.save();+ } catch (e) {+ console.log(e);+ return {+ status: 500,+ body: e+ };+ }+ } else {+ if (!settings && registeredUsers > 0) {+ return {+ status: 500,+ body: {+ error: 'Registration disabled, enable it in settings.'+ }+ };+ } else {+ if (!settings.allowRegistration) {+ return {+ status: 500,+ body: {+ error: 'You are not allowed here!'+ }+ };+ } else {+ const newUser = new User({+ _id: new mongoose.Types.ObjectId(),+ email,+ avatar: avatar_url,+ uid+ });+ try {+ await newUser.save();+ } catch (e) {+ console.log(e);+ return {+ status: 500,+ body: {+ error: e+ }+ };+ }+ }+ }+ }+ }+ const coolToken = jsonwebtoken.sign({}, JWT_SIGN_KEY, {+ expiresIn: 15778800,+ algorithm: 'HS256',+ audience: 'coolLabs',+ issuer: 'coolLabs',+ jwtid: uid,+ subject: `User:${uid}`,+ notBefore: -1000+ });+ request.locals.session.data = { coolToken, ghToken: access_token };+ return {+ status: 302,+ headers: {+ location: `/success`+ }+ };+ } catch (error) {+ console.log('error happened');+ console.log(error);+ return { status: 500, body: { ...error } };+ }+}diff --git a/src/routes/api/v1/logout.ts b/src/routes/api/v1/logout.tsnew file mode 100644index 0000000000..e51bcab4f7--- /dev/null+++ b/src/routes/api/v1/logout.ts@@ -0,0 +1,10 @@+import type { Request } from '@sveltejs/kit';+export async function del(request: Request) {+ request.locals.session.destroy = true;++ return {+ body: {+ ok: true+ }+ };+}diff --git a/src/routes/api/v1/services/[serviceName].ts b/src/routes/api/v1/services/[serviceName].tsnew file mode 100644index 0000000000..007ffeedc1--- /dev/null+++ b/src/routes/api/v1/services/[serviceName].ts@@ -0,0 +1,52 @@+import { execShellAsync } from '$lib/api/common';+import { docker } from '$lib/api/docker';+import type { Request } from '@sveltejs/kit';++export async function get(request: Request) {+ const { serviceName } = request.params;+ try {+ const service = (await docker.engine.listServices()).find(+ (r) =>+ r.Spec.Labels.managedBy === 'coolify' &&+ r.Spec.Labels.type === 'service' &&+ r.Spec.Labels.serviceName === serviceName &&+ r.Spec.Name === `${serviceName}_${serviceName}`+ );+ if (service) {+ const payload = {+ config: JSON.parse(service.Spec.Labels.configuration)+ };+ return {+ status: 200,+ body: {+ success: true,+ ...payload+ }+ };+ } else {+ return {+ status: 200,+ body: {+ success: false,+ showToast: false,+ message: 'Not found'+ }+ };+ }+ } catch (error) {+ console.log(error);+ return {+ status: 500,+ body: {+ success: false,+ error+ }+ };+ }+}++export async function del(request: Request) {+ const { serviceName } = request.params;+ await execShellAsync(`docker stack rm ${serviceName}`);+ return { status: 200, body: {} };+}diff --git a/src/routes/api/v1/services/deploy/plausible/activate.ts b/src/routes/api/v1/services/deploy/plausible/activate.tsnew file mode 100644index 0000000000..420aa43d15--- /dev/null+++ b/src/routes/api/v1/services/deploy/plausible/activate.ts@@ -0,0 +1,24 @@+import { execShellAsync } from '$lib/api/common';+import type { Request } from '@sveltejs/kit';++export async function patch(request: Request) {+ const { POSTGRESQL_USERNAME, POSTGRESQL_PASSWORD, POSTGRESQL_DATABASE } = JSON.parse(+ JSON.parse(+ await execShellAsync(+ "docker service inspect plausible_plausible --format='{{json .Spec.Labels.configuration}}'"+ )+ )+ ).generateEnvsPostgres;+ const containers = (await execShellAsync("docker ps -a --format='{{json .Names}}'"))+ .replace(/"/g, '')+ .trim()+ .split('\n');+ const postgresDB = containers.find((container) => container.startsWith('plausible_plausible_db'));+ await execShellAsync(+ `docker exec ${postgresDB} psql -H postgresql://${POSTGRESQL_USERNAME}:${POSTGRESQL_PASSWORD}@localhost:5432/${POSTGRESQL_DATABASE} -c "UPDATE users SET email_verified = true;"`+ );+ return {+ status: 200,+ body: { message: 'OK' }+ };+}diff --git a/src/routes/api/v1/services/deploy/plausible/index.ts b/src/routes/api/v1/services/deploy/plausible/index.tsnew file mode 100644index 0000000000..c67f0cb14a--- /dev/null+++ b/src/routes/api/v1/services/deploy/plausible/index.ts@@ -0,0 +1,187 @@+import type { Request } from '@sveltejs/kit';+import generator from 'generate-password';+import { promises as fs } from 'fs';+import yaml from 'js-yaml';+import { docker } from '$lib/api/docker';+import { baseServiceConfiguration } from '$lib/api/applications/common';+import { cleanupTmp, execShellAsync } from '$lib/api/common';++export async function post(request: Request) {+ const { email, userName, userPassword } = request.body;+ let { baseURL } = request.body;+ const traefikURL = baseURL;+ baseURL = `https://${baseURL}`;+ const deployId = 'plausible';+ const workdir = '/tmp/plausible';+ const secretKey = generator.generate({ length: 64, numbers: true, strict: true });+ const generateEnvsPostgres = {+ POSTGRESQL_PASSWORD: generator.generate({ length: 24, numbers: true, strict: true }),+ POSTGRESQL_USERNAME: generator.generate({ length: 10, numbers: true, strict: true }),+ POSTGRESQL_DATABASE: 'plausible'+ };++ const secrets = [+ { name: 'ADMIN_USER_EMAIL', value: email },+ { name: 'ADMIN_USER_NAME', value: userName },+ { name: 'ADMIN_USER_PWD', value: userPassword },+ { name: 'BASE_URL', value: baseURL },+ { name: 'SECRET_KEY_BASE', value: secretKey },+ { name: 'DISABLE_AUTH', value: 'false' },+ { name: 'DISABLE_REGISTRATION', value: 'true' },+ {+ name: 'DATABASE_URL',+ value: `postgresql://${generateEnvsPostgres.POSTGRESQL_USERNAME}:${generateEnvsPostgres.POSTGRESQL_PASSWORD}@plausible_db:5432/${generateEnvsPostgres.POSTGRESQL_DATABASE}`+ },+ { name: 'CLICKHOUSE_DATABASE_URL', value: 'http://plausible_events_db:8123/plausible' }+ ];++ const generateEnvsClickhouse = {};+ for (const secret of secrets) generateEnvsClickhouse[secret.name] = secret.value;++ const clickhouseConfigXml = `+ <yandex>+ <logger>+ <level>warning</level>+ <console>true</console>+ </logger>++ <!-- Stop all the unnecessary logging -->+ <query_thread_log remove="remove"/>+ <query_log remove="remove"/>+ <text_log remove="remove"/>+ <trace_log remove="remove"/>+ <metric_log remove="remove"/>+ <asynchronous_metric_log remove="remove"/>+ </yandex>`;+ const clickhouseUserConfigXml = `+ <yandex>+ <profiles>+ <default>+ <log_queries>0</log_queries>+ <log_query_threads>0</log_query_threads>+ </default>+ </profiles>+ </yandex>`;++ const clickhouseConfigs = [+ {+ source: 'plausible-clickhouse-user-config.xml',+ target: '/etc/clickhouse-server/users.d/logging.xml'+ },+ {+ source: 'plausible-clickhouse-config.xml',+ target: '/etc/clickhouse-server/config.d/logging.xml'+ },+ { source: 'plausible-init.query', target: '/docker-entrypoint-initdb.d/init.query' },+ { source: 'plausible-init-db.sh', target: '/docker-entrypoint-initdb.d/init-db.sh' }+ ];++ const initQuery = 'CREATE DATABASE IF NOT EXISTS plausible;';+ const initScript = 'clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query';+ await execShellAsync(`mkdir -p ${workdir}`);+ await fs.writeFile(`${workdir}/clickhouse-config.xml`, clickhouseConfigXml);+ await fs.writeFile(`${workdir}/clickhouse-user-config.xml`, clickhouseUserConfigXml);+ await fs.writeFile(`${workdir}/init.query`, initQuery);+ await fs.writeFile(`${workdir}/init-db.sh`, initScript);+ const stack = {+ version: '3.8',+ services: {+ [deployId]: {+ image: 'plausible/analytics:latest',+ command:+ 'sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"',+ networks: [`${docker.network}`],+ volumes: [`${deployId}-postgres-data:/var/lib/postgresql/data`],+ environment: generateEnvsClickhouse,+ deploy: {+ ...baseServiceConfiguration,+ labels: [+ 'managedBy=coolify',+ 'type=service',+ 'serviceName=plausible',+ 'configuration=' ++ JSON.stringify({+ email,+ userName,+ userPassword,+ baseURL,+ secretKey,+ generateEnvsPostgres,+ generateEnvsClickhouse+ }),+ 'traefik.enable=true',+ 'traefik.http.services.' + deployId + '.loadbalancer.server.port=8000',+ 'traefik.http.routers.' + deployId + '.entrypoints=websecure',+ 'traefik.http.routers.' ++ deployId ++ '.rule=Host(`' ++ traefikURL ++ '`) && PathPrefix(`/`)',+ 'traefik.http.routers.' + deployId + '.tls.certresolver=letsencrypt',+ 'traefik.http.routers.' + deployId + '.middlewares=global-compress'+ ]+ }+ },+ plausible_db: {+ image: 'bitnami/postgresql:13.2.0',+ networks: [`${docker.network}`],+ environment: generateEnvsPostgres,+ deploy: {+ ...baseServiceConfiguration,+ labels: ['managedBy=coolify', 'type=service', 'serviceName=plausible']+ }+ },+ plausible_events_db: {+ image: 'yandex/clickhouse-server:21.3.2.5',+ networks: [`${docker.network}`],+ volumes: [`${deployId}-clickhouse-data:/var/lib/clickhouse`],+ ulimits: {+ nofile: {+ soft: 262144,+ hard: 262144+ }+ },+ configs: [...clickhouseConfigs],+ deploy: {+ ...baseServiceConfiguration,+ labels: ['managedBy=coolify', 'type=service', 'serviceName=plausible']+ }+ }+ },+ networks: {+ [`${docker.network}`]: {+ external: true+ }+ },+ volumes: {+ [`${deployId}-clickhouse-data`]: {+ external: true+ },+ [`${deployId}-postgres-data`]: {+ external: true+ }+ },+ configs: {+ 'plausible-clickhouse-user-config.xml': {+ file: `${workdir}/clickhouse-user-config.xml`+ },+ 'plausible-clickhouse-config.xml': {+ file: `${workdir}/clickhouse-config.xml`+ },+ 'plausible-init.query': {+ file: `${workdir}/init.query`+ },+ 'plausible-init-db.sh': {+ file: `${workdir}/init-db.sh`+ }+ }+ };+ await fs.writeFile(`${workdir}/stack.yml`, yaml.dump(stack));+ await execShellAsync('docker stack rm plausible');+ await execShellAsync(`cat ${workdir}/stack.yml | docker stack deploy --prune -c - ${deployId}`);+ cleanupTmp(workdir);+ return {+ status: 200,+ body: { message: 'OK' }+ };+}diff --git a/src/routes/api/v1/settings.ts b/src/routes/api/v1/settings.tsnew file mode 100644index 0000000000..759c838688--- /dev/null+++ b/src/routes/api/v1/settings.ts@@ -0,0 +1,52 @@+import { saveServerLog } from '$lib/api/applications/logging';+import Settings from '$models/Settings';+import type { Request } from '@sveltejs/kit';+const applicationName = 'coolify';++export async function get(request: Request) {+ try {+ const settings = await Settings.findOne({ applicationName }).select('-_id -__v');+ const payload = {+ applicationName,+ allowRegistration: false,+ ...settings._doc+ };+ return {+ status: 200,+ body: {+ ...payload+ }+ };+ } catch (error) {+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}+export async function post(request: Request) {+ try {+ const settings = await Settings.findOneAndUpdate(+ { applicationName },+ { applicationName, ...request.body },+ { upsert: true, new: true }+ ).select('-_id -__v');+ return {+ status: 201,+ body: {+ ...settings._doc+ }+ };+ } catch (error) {+ await saveServerLog(error);+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/api/v1/upgrade.ts b/src/routes/api/v1/upgrade.tsnew file mode 100644index 0000000000..874d2a2ca2--- /dev/null+++ b/src/routes/api/v1/upgrade.ts@@ -0,0 +1,20 @@+import { saveServerLog } from '$lib/api/applications/logging';+import { execShellAsync } from '$lib/api/common';+import type { Request } from '@sveltejs/kit';++export async function get(request: Request) {+ const upgradeP1 = await execShellAsync(+ 'bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p1.sh)"'+ );+ await saveServerLog({ message: upgradeP1, type: 'UPGRADE-P-1' });+ execShellAsync(+ 'docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -u root coolify bash -c "$(curl -fsSL https://get.coollabs.io/coolify/upgrade-p2.sh)"'+ );+ // saveServerLog({ message: upgradeP2, type: 'UPGRADE-P-2' })+ return {+ status: 200,+ body: {+ message: "I'm trying, okay?"+ }+ };+}diff --git a/src/routes/api/v1/verify.ts b/src/routes/api/v1/verify.tsnew file mode 100644index 0000000000..3e56b48751--- /dev/null+++ b/src/routes/api/v1/verify.ts@@ -0,0 +1,24 @@+// import { deleteCookies } from '$lib/api/common';+// import { verifyUserId } from '$lib/api/common';+// import type { Request } from '@sveltejs/kit';+// import * as cookie from 'cookie';++// export async function post(request: Request) {+// const { coolToken } = cookie.parse(request.headers.cookie || '');+// try {+// await verifyUserId(coolToken);+// return {+// status: 200,+// body: { success: true }+// };+// } catch (error) {+// return {+// status: 301,+// headers: {+// location: '/',+// 'set-cookie': [...deleteCookies]+// },+// body: { error: 'Unauthorized' }+// };+// }+// }diff --git a/src/routes/api/v1/webhooks/deploy.ts b/src/routes/api/v1/webhooks/deploy.tsnew file mode 100644index 0000000000..b84b09f5ea--- /dev/null+++ b/src/routes/api/v1/webhooks/deploy.ts@@ -0,0 +1,113 @@+import type { Request } from '@sveltejs/kit';+import crypto from 'crypto';+import Deployment from '$models/Logs/Deployment';+import { docker } from '$lib/api/docker';+import { precheckDeployment, setDefaultConfiguration } from '$lib/api/applications/configuration';+import cloneRepository from '$lib/api/applications/cloneRepository';+import { cleanupTmp } from '$lib/api/common';+import queueAndBuild from '$lib/api/applications/queueAndBuild';+export async function post(request: Request) {+ let configuration;+ const { GITHUP_APP_WEBHOOK_SECRET } = process.env;+ const hmac = crypto.createHmac('sha256', GITHUP_APP_WEBHOOK_SECRET);+ const digest = Buffer.from(+ 'sha256=' + hmac.update(JSON.stringify(request.body)).digest('hex'),+ 'utf8'+ );+ const checksum = Buffer.from(request.headers['x-hub-signature-256'], 'utf8');+ if (checksum.length !== digest.length || !crypto.timingSafeEqual(digest, checksum)) {+ return {+ status: 500,+ body: {+ error: 'Invalid request'+ }+ };+ }++ if (request.headers['x-github-event'] !== 'push') {+ return {+ status: 500,+ body: {+ error: 'Not a push event.'+ }+ };+ }+ try {+ const services = (await docker.engine.listServices()).filter(+ (r) => r.Spec.Labels.managedBy === 'coolify' && r.Spec.Labels.type === 'application'+ );++ configuration = services.find((r) => {+ if (request.body.ref.startsWith('refs')) {+ const branch = request.body.ref.split('/')[2];+ if (+ JSON.parse(r.Spec.Labels.configuration).repository.id === request.body.repository.id &&+ JSON.parse(r.Spec.Labels.configuration).repository.branch === branch+ ) {+ return r;+ }+ }++ return null;+ });+ configuration = setDefaultConfiguration(JSON.parse(configuration.Spec.Labels.configuration));++ if (!configuration) {+ return {+ status: 500,+ body: {+ error: 'Whaaat?'+ }+ };+ }+ await cloneRepository(configuration);+ const { foundService, imageChanged, configChanged, forceUpdate } = await precheckDeployment({+ services,+ configuration+ });+ if (foundService && !forceUpdate && !imageChanged && !configChanged) {+ cleanupTmp(configuration.general.workdir);+ return {+ status: 200,+ body: {+ success: false,+ message: 'Nothing changed, no need to redeploy.'+ }+ };+ }+ const alreadyQueued = await Deployment.find({+ repoId: configuration.repository.id,+ branch: configuration.repository.branch,+ organization: configuration.repository.organization,+ name: configuration.repository.name,+ domain: configuration.publish.domain,+ progress: { $in: ['queued', 'inprogress'] }+ });+ if (alreadyQueued.length > 0) {+ return {+ status: 200,+ body: {+ success: false,+ message: 'Already in the queue.'+ }+ };+ }+ queueAndBuild(configuration, imageChanged);+ return {+ status: 201,+ body: {+ message: 'Deployment queued.',+ nickname: configuration.general.nickname,+ name: configuration.build.container.name,+ deployId: configuration.general.deployId+ }+ };+ } catch (error) {+ return {+ status: 500,+ body: {+ error+ }+ };+ }+}diff --git a/src/routes/application/[organization]/[name]/[branch]/configuration.svelte b/src/routes/application/[organization]/[name]/[branch]/configuration.sveltenew file mode 100644index 0000000000..9e90cf014d--- /dev/null+++ b/src/routes/application/[organization]/[name]/[branch]/configuration.svelte@@ -0,0 +1,6 @@+<script>+ import Configuration from '$components/Application/Configuration.svelte';++</script>++<Configuration />diff --git a/src/routes/application/[organization]/[name]/[branch]/logs/[deployId].svelte b/src/routes/application/[organization]/[name]/[branch]/logs/[deployId].sveltenew file mode 100644index 0000000000..d40fb8976b--- /dev/null+++ b/src/routes/application/[organization]/[name]/[branch]/logs/[deployId].svelte@@ -0,0 +1,83 @@+<script>+ import { onDestroy, onMount } from 'svelte';+ import { fade } from 'svelte/transition';+ import Loading from '$components/Loading.svelte';+ import { request } from '$lib/api/request';+ import { page, session } from '$app/stores';+ import { goto } from '$app/navigation';+ import { browser } from '$app/env';+ import { application } from '$store';++ let loadLogsInterval;+ let logs = [];++ onMount(() => {+ loadLogsInterval = setInterval(() => {+ loadLogs();+ }, 500);+ });++ async function loadLogs() {+ try {+ const { events, progress } = await request(+ `/api/v1/application/deploy/logs/${$page.params.deployId}`,+ $session+ );+ logs = [...events];+ if (progress === 'done' || progress === 'failed') {+ clearInterval(loadLogsInterval);+ }+ } catch (error) {+ browser && goto('/dashboard/applications', { replaceState: true });+ }+ }+ onDestroy(() => {+ clearInterval(loadLogsInterval);+ });++</script>++<div+ class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"+ in:fade={{ duration: 100 }}+>+ <div>Deployment log</div>+ <a+ target="_blank"+ class="icon mx-2"+ href={'https://' + $application.publish.domain + $application.publish.path}+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"+ />+ </svg></a+ >+</div>+{#await loadLogs()}+ <Loading />+{:then}+ <div class="text-center px-6" in:fade={{ duration: 100 }}>+ <div in:fade={{ duration: 100 }}>+ <pre+ class="leading-4 text-left text-sm font-semibold tracking-tighter rounded-lg bg-black p-6 whitespace-pre-wrap">+ {#if logs.length > 0}+ {#each logs as log}+ {log + '\n'}+ {/each}+ {:else}+ It's starting soon.+ {/if}+ </pre>+ </div>+ </div>+{/await}diff --git a/src/routes/application/[organization]/[name]/[branch]/logs/index.svelte b/src/routes/application/[organization]/[name]/[branch]/logs/index.sveltenew file mode 100644index 0000000000..620a6084e6--- /dev/null+++ b/src/routes/application/[organization]/[name]/[branch]/logs/index.svelte@@ -0,0 +1,135 @@+<script>+ import { application, dateOptions } from '$store';+ import { fade } from 'svelte/transition';++ import { onDestroy, onMount } from 'svelte';++ import Loading from '$components/Loading.svelte';+ import { request } from '$lib/api/request';+ import { session } from '$app/stores';+ import { goto } from '$app/navigation';++ let loadDeploymentsInterval = null;+ let loadLogsInterval = null;+ let deployments = [];+ let logs = [];+ let page = 1;++ onMount(async () => {+ loadApplicationLogs();+ loadLogsInterval = setInterval(() => {+ loadApplicationLogs();+ }, 3000);+ loadDeploymentsInterval = setInterval(() => {+ loadDeploymentLogs();+ }, 1000);+ });+ onDestroy(() => {+ clearInterval(loadDeploymentsInterval);+ clearInterval(loadLogsInterval);+ });+ async function loadMoreDeploymentLogs() {+ page = page + 1;+ await loadDeploymentLogs();+ }+ async function loadDeploymentLogs() {+ deployments = (+ await request(+ `/api/v1/application/deploy/logs?repoId=${$application.repository.id}&branch=${$application.repository.branch}&page=${page}`,+ $session+ )+ ).logs;+ }+ async function loadApplicationLogs() {+ logs = (+ await request(`/api/v1/application/logs?name=${$application.build.container.name}`, $session)+ ).logs;+ }+</script>++<div+ class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"+ in:fade={{ duration: 100 }}+>+ <div>Logs</div>+</div>+{#await loadDeploymentLogs()}+ <Loading />+{:then}+ <div class="text-center px-6" in:fade={{ duration: 100 }}>+ <div class="flex pt-2 space-x-4 w-full">+ <div class="w-full">+ <div class="font-bold text-left pb-2 text-xl">Application logs</div>+ {#if logs.length === 0}+ <div class="text-xs font-semibold tracking-tighter">Waiting for the logs...</div>+ {:else}+ <pre+ class="leading-4 text-left text-sm font-semibold tracking-tighter rounded-lg bg-black p-6 whitespace-pre-wrap w-full">+ {#each logs as log}+ {log + '\n'}+ {/each}+ </pre>+ {/if}+ </div>+ <div>+ <div class="font-bold text-left pb-2 text-xl w-300">Deployment logs</div>+ {#if deployments.length > 0}+ <div class="space-y-2">+ {#each deployments as deployment}+ <div+ in:fade={{ duration: 100 }}+ class="flex space-x-4 text-md py-4 hover:shadow mx-auto cursor-pointer transition-all duration-100 border-l-4 border-transparent rounded hover:bg-warmGray-700"+ class:hover:border-green-500={deployment.progress === 'done'}+ class:border-yellow-300={deployment.progress !== 'done' &&+ deployment.progress !== 'failed'}+ class:bg-warmGray-800={deployment.progress !== 'done' &&+ deployment.progress !== 'failed'}+ class:hover:bg-red-200={deployment.progress === 'failed'}+ class:hover:border-red-500={deployment.progress === 'failed'}+ on:click={() => goto(`./logs/${deployment.deployId}`)}+ >+ <div class="font-bold text-sm px-3 flex justify-center items-center">+ {deployment.branch}+ </div>+ <div class="flex-1" />+ <div class="px-3 w-48">+ <div+ class="text-xs"+ title={new Intl.DateTimeFormat('default', dateOptions).format(+ new Date(deployment.createdAt)+ )}+ >+ {deployment.since}+ </div>+ {#if deployment.progress === 'done'}+ <div class="text-xs">+ Deployed in <span class="font-bold">{deployment.took}s</span>+ </div>+ {:else if deployment.progress === 'failed'}+ <div class="text-xs text-red-500">Failed</div>+ {:else}+ <div class="text-xs">Deploying...</div>+ {/if}+ </div>+ </div>+ {/each}+ </div>+ <button+ class="text-xs bg-green-600 hover:bg-green-500 p-1 rounded text-white px-2 font-medium my-6"+ on:click={loadMoreDeploymentLogs}>Show more</button+ >+ {:else}+ <div class="text-left text-sm tracking-tight">No deployments found</div>+ {/if}+ </div>+ </div>+ </div>+{:catch}+ <div class="text-center font-bold tracking-tight text-xl">No logs found</div>+{/await}++<style lang="postcss">+ .w-300 {+ width: 300px !important;+ }+</style>diff --git a/src/routes/application/__layout.svelte b/src/routes/application/__layout.sveltenew file mode 100644index 0000000000..5a7a1617e5--- /dev/null+++ b/src/routes/application/__layout.svelte@@ -0,0 +1,127 @@+<script>+ import { application, initialApplication, initConf, dashboard } from '$store';+ import { onDestroy } from 'svelte';+ import Loading from '$components/Loading.svelte';+ import Navbar from '$components/Application/Navbar.svelte';+ import { page, session } from '$app/stores';+ import { goto } from '$app/navigation';+ import { browser } from '$app/env';+ import { request } from '$lib/api/request';++ $application.repository.organization = $page.params.organization;+ $application.repository.name = $page.params.name;+ $application.repository.branch = $page.params.branch;++ async function setConfiguration() {+ try {+ const config = await request(`/api/v1/application/config`, $session, {+ body: {+ name: $application.repository.name,+ organization: $application.repository.organization,+ branch: $application.repository.branch+ }+ });+ $application = { ...config };+ $initConf = JSON.parse(JSON.stringify($application));+ } catch (error) {+ browser && goto('/dashboard/applications');+ }+ }+ async function loadConfiguration() {+ if ($page.path !== '/application/new') {+ if (!$dashboard) {+ await setConfiguration();+ } else {+ const found = $dashboard.applications.deployed.find((app) => {+ const { organization, name, branch } = app.configuration.repository;+ if (+ organization === $application.repository.organization &&+ name === $application.repository.name &&+ branch === $application.repository.branch+ ) {+ return app;+ }+ });+ if (found) {+ $application = { ...found.configuration };+ $initConf = JSON.parse(JSON.stringify($application));+ } else {+ await setConfiguration();+ }+ }+ } else {+ $application = JSON.parse(JSON.stringify(initialApplication));+ }+ }++ onDestroy(() => {+ $application = JSON.parse(JSON.stringify(initialApplication));+ });++</script>++{#await loadConfiguration()}+ <Loading />+{:then}+ <Navbar />+ <div class="text-white">+ {#if $page.path.endsWith('configuration')}+ <div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ {$application.publish.domain+ ? `${$application.publish.domain}${+ $application.publish.path !== '/' ? $application.publish.path : ''+ }`+ : 'example.com'}+ <a+ target="_blank"+ class="icon mx-2"+ href={'https://' + $application.publish.domain + $application.publish.path}+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"+ />+ </svg></a+ >++ <a+ target="_blank"+ class="icon"+ href={`https://github.com/${$application.repository.organization}/${$application.repository.name}`}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ ><path+ d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"+ /></svg+ ></a+ >+ </div>+ </div>+ {:else if $page.path === '/application/new'}+ <div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ New Application+ </div>+ </div>+ {/if}+ <slot />+ </div>+{/await}diff --git a/src/routes/application/new.svelte b/src/routes/application/new.sveltenew file mode 100644index 0000000000..21d65c11e2--- /dev/null+++ b/src/routes/application/new.svelte@@ -0,0 +1,5 @@+<script>+ import Configuration from '$components/Application/Configuration.svelte';+</script>++<Configuration />diff --git a/src/routes/dashboard/__layout.svelte b/src/routes/dashboard/__layout.sveltenew file mode 100644index 0000000000..23672d4725--- /dev/null+++ b/src/routes/dashboard/__layout.svelte@@ -0,0 +1,44 @@+<script context="module" lang="ts">+ import { request } from '$lib/api/request';+ /**+ * @type {import('@sveltejs/kit').Load}+ */+ export async function load(session) {+ return {+ props: {+ initDashboard: await request('/api/v1/dashboard', session)+ }+ };+ }+</script>++<script lang="ts">+ export let initDashboard;+ import { dashboard } from '$store';+ import { onDestroy, onMount } from 'svelte';+ import { session } from '$app/stores';+ $dashboard = initDashboard;+ let loadDashboardInterval = null;++ async function loadDashboard() {+ try {+ $dashboard = await request('/api/v1/dashboard', $session);+ } catch (error) {+ //+ }+ }++ onMount(async () => {+ await loadDashboard();+ loadDashboardInterval = setInterval(async () => {+ await loadDashboard();+ }, 2000);+ });+ onDestroy(() => {+ clearInterval(loadDashboardInterval);+ });+</script>++<div class="min-h-full">+ <slot />+</div>diff --git a/src/routes/dashboard/applications.svelte b/src/routes/dashboard/applications.sveltenew file mode 100644index 0000000000..859e0aae0d--- /dev/null+++ b/src/routes/dashboard/applications.svelte@@ -0,0 +1,299 @@+<script lang="ts">+ import { goto } from '$app/navigation';+ import { dashboard, dateOptions } from '$store';+ import { fade } from 'svelte/transition';+</script>++<div+ in:fade={{ duration: 100 }}+ class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"+>+ <div>Applications</div>+ <button+ class="icon p-1 ml-4 bg-green-500 hover:bg-green-400"+ on:click={() => goto('/application/new')}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"+ />+ </svg>+ </button>+</div>+<div in:fade={{ duration: 100 }}>+ {#if $dashboard?.applications?.deployed.length > 0}+ <div class="px-4 mx-auto py-5 z-auto">+ <div class="flex items-center justify-center flex-wrap">+ {#each $dashboard.applications.deployed as application}+ <div class="px-4 pb-4">+ <div+ class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-green-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"+ on:click={() => {+ goto(+ `/application/${application.configuration.repository.organization}/${application.configuration.repository.name}/${application.configuration.repository.branch}/configuration`+ );+ }}+ >+ <div class="flex items-center">+ {#if application.configuration.build.pack === 'static'}+ <svg+ class="text-white w-10 h-10 absolute top-0 left-0 -m-4"+ viewBox="0 0 32 32"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ ><g clip-path="url(#HTML5_Clip0_4)"+ ><path+ d="M30.216 0L27.6454 28.7967L16.0907 32L4.56783 28.8012L2 0H30.216Z"+ fill="#E44D26"+ /><path+ d="M16.108 29.5515L25.4447 26.963L27.6415 2.35497H16.108V29.5515Z"+ fill="#F16529"+ /><path+ d="M11.1109 9.4197H16.108V5.88731H7.25053L7.33509 6.83499L8.20327 16.5692H16.108V13.0369H11.4338L11.1109 9.4197Z"+ fill="#EBEBEB"+ /><path+ d="M11.907 18.3354H8.36111L8.856 23.8818L16.0917 25.8904L16.108 25.8859V22.2108L16.0925 22.2149L12.1585 21.1527L11.907 18.3354Z"+ fill="#EBEBEB"+ /><path+ d="M16.0958 16.5692H20.4455L20.0354 21.1504L16.0958 22.2138V25.8887L23.3373 23.8817L23.3904 23.285L24.2205 13.9855L24.3067 13.0369H16.0958V16.5692Z"+ fill="white"+ /><path+ d="M16.0958 9.41105V9.41969H24.6281L24.6989 8.62572L24.8599 6.83499L24.9444 5.88731H16.0958V9.41105Z"+ fill="white"+ /></g+ ><defs+ ><clipPath id="HTML5_Clip0_4"+ ><rect width="32" height="32" fill="white" /></clipPath+ ></defs+ ></svg+ >+ {:else if application.configuration.build.pack === 'react'}+ <svg+ class="text-blue-500 w-10 h-10 absolute top-0 left-0 -m-4"+ viewBox="0 0 128 128"+ >+ <g fill="#61DAFB"+ ><circle cx="64" cy="64" r="11.4" /><path+ d="M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3-12.5 4.8-19.3 11.4-19.3 18.8s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8zm-14.8-30.5c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9zm-11.2 59.3c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4-2.2-3.2-4.2-6.4-6-9.6-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4 2.2 3.2 4.2 6.4 6 9.6 1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10zm8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2zm-25.6 27.1c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2 2.3 0 4.6-.1 6.9-.2-2.2 2.9-4.5 5.7-6.9 8.3zm-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zm25.6-27.1c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zm-54.5-16.2c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zm-24.7 29c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5-13.8-4-22.1-10-22.1-15.6zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zm60.8-20.3c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z"+ /></g+ >+ </svg>+ {:else if application.configuration.build.pack === 'gatsby'}+ <svg class="w-10 h-10 absolute top-0 left-0 -m-4" viewBox="0 0 128 128">+ <path+ fill="#64328B"+ d="M64,0C28.7,0,0,28.7,0,64v0c0,35.3,28.7,64,64,64s64-28.7,64-64v0C128,28.7,99.3,0,64,0z M13.2,64L64,114.8 C35.9,114.8,13.2,92.1,13.2,64z M75.4,113.5l-60.9-61C19.7,30,39.9,13.2,64,13.2c16.6,0,31.3,7.9,40.5,20.2l-7.5,7.2 C89.7,30.2,77.7,23.5,64,23.5c-17.6,0-32.5,11.2-38.1,26.8C33.1,57,75.4,98.8,78.1,102c12.7-4.7,22.3-15.5,25.4-28.9H81.9v-9.4 l33,0.2C114.8,88.2,98,108.4,75.4,113.5z"+ />+ </svg>+ {:else if application.configuration.build.pack === 'nuxtjs'}+ <svg+ class="w-10 h-10 absolute top-0 left-0 -m-4"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 400 400"+ >+ <g fill-rule="nonzero" transform="translate(0 50)" fill="none">+ <path+ d="M227.92099 83.45116l-13.6889 24.10141-46.8148-82.44693L23.7037 278.17052h97.3037c0 13.31084 10.61252 24.10142 23.70371 24.10142H23.70371c-8.46771 0-16.29145-4.59601-20.5246-12.05272-4.23315-7.4567-4.23272-16.64312.00114-24.0994L146.89383 13.05492c4.23415-7.45738 12.0596-12.05138 20.5284-12.05138 8.46878 0 16.29423 4.594 20.52839 12.05138l39.97037 70.39623z"+ fill="#00C58E"+ />+ <path+ d="M331.6642 266.11981l-90.05432-158.56724-13.6889-24.10141-13.68888 24.10141-90.04445 158.56724c-4.23385 7.45629-4.23428 16.64271-.00113 24.09941 4.23314 7.4567 12.05689 12.05272 20.5246 12.05272h166.4c8.46946 0 16.29644-4.591 20.532-12.04837 4.23555-7.45736 4.23606-16.64592.00132-24.10376h.01976zM144.7111 278.17052L227.921 131.65399l83.19012 146.51653h-166.4z"+ fill="#FFF"+ />+ <path+ d="M396.04938 290.22123c-4.23344 7.45557-12.05656 12.0507-20.52345 12.0507H311.1111c13.0912 0 23.7037-10.79057 23.7037-24.10141h40.66173L260.09877 74.98553l-18.4889 32.56704L227.921 83.45116l11.65432-20.51634c4.23416-7.45738 12.0596-12.05138 20.5284-12.05138 8.46879 0 16.29423 4.594 20.52839 12.05138l115.41728 203.185c4.23426 7.457 4.23426 16.6444 0 24.1014z"+ fill="#108775"+ />+ </g>+ </svg>+ {:else if application.configuration.build.pack === 'svelte'}+ <svg+ class="w-10 h-10 absolute top-0 left-0 -m-4"+ version="1.1"+ id="Layer_1"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:xlink="http://www.w3.org/1999/xlink"+ x="0px"+ y="0px"+ viewBox="0 0 98.1 118"+ style="enable-background:new 0 0 98.1 118;"+ xml:space="preserve"+ >+ <path+ fill="#FF3E00"+ d="M91.8,15.6C80.9-0.1,59.2-4.7,43.6,5.2L16.1,22.8C8.6,27.5,3.4,35.2,1.9,43.9c-1.3,7.3-0.2,14.8,3.3,21.3 c-2.4,3.6-4,7.6-4.7,11.8c-1.6,8.9,0.5,18.1,5.7,25.4c11,15.7,32.6,20.3,48.2,10.4l27.5-17.5c7.5-4.7,12.7-12.4,14.2-21.1 c1.3-7.3,0.2-14.8-3.3-21.3c2.4-3.6,4-7.6,4.7-11.8C99.2,32.1,97.1,22.9,91.8,15.6"+ />+ <path+ fill="#FFFFFF"+ d="M40.9,103.9c-8.9,2.3-18.2-1.2-23.4-8.7c-3.2-4.4-4.4-9.9-3.5-15.3c0.2-0.9,0.4-1.7,0.6-2.6l0.5-1.6l1.4,1 c3.3,2.4,6.9,4.2,10.8,5.4l1,0.3l-0.1,1c-0.1,1.4,0.3,2.9,1.1,4.1c1.6,2.3,4.4,3.4,7.1,2.7c0.6-0.2,1.2-0.4,1.7-0.7L65.5,72 c1.4-0.9,2.3-2.2,2.6-3.8c0.3-1.6-0.1-3.3-1-4.6c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7l-10.5,6.7 c-1.7,1.1-3.6,1.9-5.6,2.4c-8.9,2.3-18.2-1.2-23.4-8.7c-3.1-4.4-4.4-9.9-3.4-15.3c0.9-5.2,4.1-9.9,8.6-12.7l27.5-17.5 c1.7-1.1,3.6-1.9,5.6-2.5c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.2,0.9-0.4,1.7-0.7,2.6l-0.5,1.6l-1.4-1 c-3.3-2.4-6.9-4.2-10.8-5.4l-1-0.3l0.1-1c0.1-1.4-0.3-2.9-1.1-4.1c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7L32.4,46.1 c-1.4,0.9-2.3,2.2-2.6,3.8s0.1,3.3,1,4.6c1.6,2.3,4.4,3.3,7.1,2.6c0.6-0.2,1.2-0.4,1.7-0.7l10.5-6.7c1.7-1.1,3.6-1.9,5.6-2.5 c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.9,5.2-4.1,9.9-8.6,12.7l-27.5,17.5C44.8,102.5,42.9,103.3,40.9,103.9"+ />+ </svg>+ {:else if application.configuration.build.pack === 'vuejs'}+ <svg+ class="text-green-500 w-10 h-10 absolute top-0 left-0 -m-4"+ viewBox="0 0 128 128"+ >+ <path+ d="m-2.3125e-8 8.9337 49.854 0.1586 14.167 24.47 14.432-24.47 49.547-0.1577-63.834 110.14zm126.98 0.6374-24.36 0.0207-38.476 66.052-38.453-66.052-24.749-0.0194 63.211 107.89zm-25.149-0.008-22.745 0.16758l-15.053 24.647-14.817-24.647-22.794-0.1679 37.731 64.476zM25.997 9.3929l23.002 0.0087M25.997 9.3929l23.002 0.0087"+ fill="none"+ /><path+ d="m25.997 9.3929 23.002 0.0087l15.036 24.958 14.983-24.956 22.982-0.0057-37.85 65.655z"+ fill="#35495e"+ /><path+ d="m0.91068 9.5686 25.066-0.1711 38.151 65.658 37.852-65.654 25.11 0.0263-62.966 108.06z"+ fill="#41b883"+ />+ </svg>+ {:else if application.configuration.build.pack === 'nextjs'}+ <svg+ class="text-blue-500 w-10 h-10 absolute top-0 left-0 -m-4 fill-current"+ viewBox="0 0 128 128"+ >+ <path+ d="M64 0C28.7 0 0 28.7 0 64s28.7 64 64 64c11.2 0 21.7-2.9 30.8-7.9L48.4 55.3v36.6h-6.8V41.8h6.8l50.5 75.8C116.4 106.2 128 86.5 128 64c0-35.3-28.7-64-64-64zm22.1 84.6l-7.5-11.3V41.8h7.5v42.8z"+ />+ </svg>+ {:else if application.configuration.build.pack === 'nodejs'}+ <svg+ class="text-green-400 w-10 h-10 absolute top-0 left-0 -m-4"+ xmlns="http://www.w3.org/2000/svg"+ aria-hidden="true"+ focusable="false"+ data-prefix="fab"+ data-icon="node-js"+ role="img"+ viewBox="0 0 448 512"+ ><path+ fill="currentColor"+ d="M224 508c-6.7 0-13.5-1.8-19.4-5.2l-61.7-36.5c-9.2-5.2-4.7-7-1.7-8 12.3-4.3 14.8-5.2 27.9-12.7 1.4-.8 3.2-.5 4.6.4l47.4 28.1c1.7 1 4.1 1 5.7 0l184.7-106.6c1.7-1 2.8-3 2.8-5V149.3c0-2.1-1.1-4-2.9-5.1L226.8 37.7c-1.7-1-4-1-5.7 0L36.6 144.3c-1.8 1-2.9 3-2.9 5.1v213.1c0 2 1.1 4 2.9 4.9l50.6 29.2c27.5 13.7 44.3-2.4 44.3-18.7V167.5c0-3 2.4-5.3 5.4-5.3h23.4c2.9 0 5.4 2.3 5.4 5.3V378c0 36.6-20 57.6-54.7 57.6-10.7 0-19.1 0-42.5-11.6l-48.4-27.9C8.1 389.2.7 376.3.7 362.4V149.3c0-13.8 7.4-26.8 19.4-33.7L204.6 9c11.7-6.6 27.2-6.6 38.8 0l184.7 106.7c12 6.9 19.4 19.8 19.4 33.7v213.1c0 13.8-7.4 26.7-19.4 33.7L243.4 502.8c-5.9 3.4-12.6 5.2-19.4 5.2zm149.1-210.1c0-39.9-27-50.5-83.7-58-57.4-7.6-63.2-11.5-63.2-24.9 0-11.1 4.9-25.9 47.4-25.9 37.9 0 51.9 8.2 57.7 33.8.5 2.4 2.7 4.2 5.2 4.2h24c1.5 0 2.9-.6 3.9-1.7s1.5-2.6 1.4-4.1c-3.7-44.1-33-64.6-92.2-64.6-52.7 0-84.1 22.2-84.1 59.5 0 40.4 31.3 51.6 81.8 56.6 60.5 5.9 65.2 14.8 65.2 26.7 0 20.6-16.6 29.4-55.5 29.4-48.9 0-59.6-12.3-63.2-36.6-.4-2.6-2.6-4.5-5.3-4.5h-23.9c-3 0-5.3 2.4-5.3 5.3 0 31.1 16.9 68.2 97.8 68.2 58.4-.1 92-23.2 92-63.4z"+ />+ </svg>+ {:else if application.configuration.build.pack === 'php'}+ <svg+ viewBox="0 0 128 128"+ class="text-white w-14 h-14 absolute top-0 left-0 -m-6"+ >+ <path+ fill="#6181B6"+ d="M64 33.039c-33.74 0-61.094 13.862-61.094 30.961s27.354 30.961 61.094 30.961 61.094-13.862 61.094-30.961-27.354-30.961-61.094-30.961zm-15.897 36.993c-1.458 1.364-3.077 1.927-4.86 2.507-1.783.581-4.052.461-6.811.461h-6.253l-1.733 10h-7.301l6.515-34h14.04c4.224 0 7.305 1.215 9.242 3.432 1.937 2.217 2.519 5.364 1.747 9.337-.319 1.637-.856 3.159-1.614 4.515-.759 1.357-1.75 2.624-2.972 3.748zm21.311 2.968l2.881-14.42c.328-1.688.208-2.942-.361-3.555-.57-.614-1.782-1.025-3.635-1.025h-5.79l-3.731 19h-7.244l6.515-33h7.244l-1.732 9h6.453c4.061 0 6.861.815 8.402 2.231s2.003 3.356 1.387 6.528l-3.031 15.241h-7.358zm40.259-11.178c-.318 1.637-.856 3.133-1.613 4.488-.758 1.357-1.748 2.598-2.971 3.722-1.458 1.364-3.078 1.927-4.86 2.507-1.782.581-4.053.461-6.812.461h-6.253l-1.732 10h-7.301l6.514-34h14.041c4.224 0 7.305 1.215 9.241 3.432 1.935 2.217 2.518 5.418 1.746 9.39zM95.919 54h-5.001l-2.727 14h4.442c2.942 0 5.136-.29 6.576-1.4 1.442-1.108 2.413-2.828 2.918-5.421.484-2.491.264-4.434-.66-5.458-.925-1.024-2.774-1.721-5.548-1.721zM38.934 54h-5.002l-2.727 14h4.441c2.943 0 5.136-.29 6.577-1.4 1.441-1.108 2.413-2.828 2.917-5.421.484-2.491.264-4.434-.66-5.458s-2.772-1.721-5.546-1.721z"+ />+ </svg>+ {:else if application.configuration.build.pack === 'docker'}+ <svg viewBox="0 0 128 128" class="w-16 h-16 absolute top-0 left-0 -m-8">+ <g+ ><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#3A4D54"+ d="M73.8 50.8h11.3v11.5h5.7c2.6 0 5.3-.5 7.8-1.3 1.2-.4 2.6-1 3.8-1.7-1.6-2.1-2.4-4.7-2.6-7.3-.3-3.5.4-8.1 2.8-10.8l1.2-1.4 1.4 1.1c3.6 2.9 6.5 6.8 7.1 11.4 4.3-1.3 9.3-1 13.1 1.2l1.5.9-.8 1.6c-3.2 6.2-9.9 8.2-16.4 7.8-9.8 24.3-31 35.8-56.8 35.8-13.3 0-25.5-5-32.5-16.8l-.1-.2-1-2.1c-2.4-5.2-3.1-10.9-2.6-16.6l.2-1.7h9.6v-11.4h11.3v-11.2h22.5v-11.3h13.5v22.5z"+ /><path+ fill="#00AADA"+ d="M110.4 55.1c.8-5.9-3.6-10.5-6.4-12.7-3.1 3.6-3.6 13.2 1.3 17.2-2.8 2.4-8.5 4.7-14.5 4.7h-72.2c-.6 6.2.5 11.9 3 16.8l.8 1.5c.5.9 1.1 1.7 1.7 2.6 3 .2 5.7.3 8.2.2 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5 1.1-8.3 1.3h-.6000000000000001c-1.3.1-2.7.1-4.2.1-1.6 0-3.1 0-4.9-.1 6 6.8 15.4 10.8 27.2 10.8 25 0 46.2-11.1 55.5-35.9 6.7.7 13.1-1 16-6.7-4.5-2.7-10.5-1.8-13.9-.1z"+ /><path+ fill="#28B8EB"+ d="M110.4 55.1c.8-5.9-3.6-10.5-6.4-12.7-3.1 3.6-3.6 13.2 1.3 17.2-2.8 2.4-8.5 4.7-14.5 4.7h-68c-.3 9.5 3.2 16.7 9.5 21 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.5 1.4l-.1-.1c8.5 4.4 20.8 4.3 35-1.1 15.8-6.1 30.6-17.7 40.9-30.9-.2.1-.4.1-.5.2z"+ /><path+ fill="#028BB8"+ d="M18.7 71.8c.4 3.3 1.4 6.4 2.9 9.3l.8 1.5c.5.9 1.1 1.7 1.7 2.6 3 .2 5.7.3 8.2.2 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.5 1.4h-.4c-1.3.1-2.7.1-4.1.1-1.6 0-3.2 0-4.9-.1 6 6.8 15.5 10.8 27.3 10.8 21.4 0 40-8.1 50.8-26h-85.1v-.1z"+ /><path+ fill="#019BC6"+ d="M23.5 71.8c1.3 5.8 4.3 10.4 8.8 13.5 4.9-.1 8.9-.7 12-1.7.5-.2.9.1 1.1.5.2.5-.1.9-.5 1.1-.4.1-.8.3-1.3.4-2.4.7-5.2 1.2-8.6 1.4 8.5 4.4 20.8 4.3 34.9-1.1 8.5-3.3 16.8-8.2 24.2-14.1h-70.6z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#00ACD3"+ d="M28.4 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zM39.6 41.5h9.8v9.8h-9.8v-9.8zm.9.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#23C2EE"+ d="M39.6 52.7h9.8v9.8h-9.8v-9.8zm.9.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#00ACD3"+ d="M50.9 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#23C2EE"+ d="M50.9 41.5h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zM62.2 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#00ACD3"+ d="M62.2 41.5h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#23C2EE"+ d="M62.2 30.2h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#00ACD3"+ d="M73.5 52.7h9.8v9.8h-9.8v-9.8zm.8.8h.8v8.1h-.8v-8.1zm1.4 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1zm1.5 0h.8v8.1h-.8v-8.1z"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#D4EEF1"+ d="M48.8 78.3c1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7"+ /><path+ fill-rule="evenodd"+ clip-rule="evenodd"+ fill="#3A4D54"+ d="M48.8 79.1c.2 0 .5 0 .7.1-.2.1-.4.4-.4.7 0 .4.4.8.8.8.3 0 .6-.2.7-.4.1.2.1.5.1.7 0 1.1-.9 1.9-1.9 1.9-1.1 0-1.9-.9-1.9-1.9 0-1 .8-1.9 1.9-1.9M1.1 72.8h125.4c-2.7-.7-8.6-1.6-7.7-5.2-5 5.7-16.9 4-20 1.2-3.4 4.9-23 3-24.3-.8-4.2 5-17.3 5-21.5 0-1.4 3.8-21 5.7-24.3.8-3 2.8-15 4.5-20-1.2 1.1 3.5-4.9 4.5-7.6 5.2"+ /><path+ fill="#BFDBE0"+ d="M56 97.8c-6.7-3.2-10.3-7.5-12.4-12.2-2.5.7-5.5 1.2-8.9 1.4-1.3.1-2.7.1-4.1.1-1.7 0-3.4 0-5.2-.1 6 6 13.6 10.7 27.5 10.8h3.1z"+ /><path+ fill="#D4EEF1"+ d="M46.1 89.9c-.9-1.3-1.8-2.8-2.5-4.3-2.5.7-5.5 1.2-8.9 1.4 2.3 1.2 5.7 2.4 11.4 2.9z"+ /></g+ >+ </svg>+ {:else if application.configuration.build.pack === 'rust'}+ <svg class="w-14 h-14 absolute top-0 left-0 -m-6" viewBox="0 0 128 128">+ <path+ d="M62.271 10.880 C 62.082 10.990,61.289 12.128,60.508 13.409 C 58.548 16.626,58.526 16.628,55.893 13.857 C 54.180 12.055,53.766 11.725,53.214 11.729 C 52.855 11.731,52.402 11.853,52.206 12.000 C 52.011 12.147,51.458 13.317,50.978 14.600 C 49.879 17.539,49.826 17.634,49.217 17.751 C 48.842 17.822,48.120 17.420,46.389 16.177 C 45.111 15.258,43.857 14.507,43.603 14.507 C 42.549 14.507,42.252 15.083,41.750 18.100 C 41.112 21.936,41.134 21.923,37.676 20.352 C 36.280 19.719,34.956 19.200,34.733 19.200 C 34.510 19.200,34.087 19.440,33.794 19.733 C 33.262 20.266,33.261 20.268,33.406 23.201 L 33.552 26.137 32.997 26.434 C 32.505 26.697,32.166 26.665,29.988 26.150 C 27.145 25.479,26.545 25.497,25.969 26.272 L 25.548 26.838 26.113 29.259 C 26.423 30.590,26.722 31.872,26.778 32.107 C 26.833 32.341,26.738 32.716,26.566 32.939 C 26.282 33.306,25.980 33.339,23.349 33.299 C 18.896 33.229,18.643 33.611,20.483 37.627 C 21.068 38.902,21.547 40.060,21.547 40.199 C 21.547 40.933,20.962 41.200,18.449 41.610 C 17.043 41.839,15.821 42.027,15.733 42.027 C 15.645 42.027,15.381 42.219,15.147 42.453 C 14.382 43.218,14.599 43.936,16.334 46.385 C 18.495 49.435,18.491 49.446,14.921 50.812 C 10.861 52.365,10.779 52.748,13.870 55.680 C 16.749 58.410,16.752 58.370,13.493 60.419 C 11.024 61.970,10.986 62.007,10.923 62.848 C 10.847 63.871,10.865 63.889,13.813 65.690 C 16.728 67.470,16.728 67.524,13.867 70.231 C 10.790 73.141,10.885 73.566,14.948 75.099 C 18.498 76.438,18.503 76.454,16.338 79.504 C 15.111 81.233,14.720 81.953,14.720 82.487 C 14.720 83.486,15.240 83.741,18.347 84.263 C 20.964 84.704,21.547 84.963,21.547 85.685 C 21.547 85.833,21.067 87.001,20.480 88.279 C 18.654 92.256,18.862 92.587,23.184 92.587 C 27.209 92.587,27.102 92.464,26.235 96.094 C 25.581 98.830,25.571 99.354,26.163 99.945 C 26.616 100.399,27.470 100.348,30.141 99.709 C 32.181 99.222,32.539 99.188,33.012 99.441 L 33.552 99.730 33.406 102.665 C 33.261 105.599,33.262 105.601,33.794 106.134 C 34.087 106.427,34.516 106.667,34.746 106.667 C 34.976 106.667,36.300 106.151,37.689 105.520 C 41.136 103.955,41.114 103.942,41.750 107.766 C 42.254 110.797,42.548 111.360,43.624 111.360 C 43.891 111.360,45.118 110.640,46.352 109.760 C 48.519 108.214,49.081 107.972,49.658 108.339 C 49.807 108.433,50.385 109.703,50.942 111.161 C 51.761 113.305,52.061 113.863,52.517 114.081 C 53.385 114.497,53.922 114.163,55.962 111.941 C 58.425 109.258,58.526 109.271,60.537 112.530 C 62.758 116.128,63.333 116.120,65.610 112.457 C 67.572 109.301,67.549 109.303,70.201 112.073 C 71.962 113.911,72.337 114.204,72.931 114.204 C 73.310 114.204,73.763 114.062,73.936 113.888 C 74.110 113.714,74.686 112.429,75.216 111.033 C 75.746 109.636,76.295 108.420,76.437 108.330 C 76.998 107.973,77.579 108.224,79.743 109.760 C 81.017 110.665,82.216 111.360,82.501 111.360 C 83.559 111.360,83.941 110.609,84.381 107.657 C 84.757 105.140,84.833 104.899,85.328 104.648 C 85.815 104.401,86.107 104.484,88.391 105.521 C 89.780 106.151,91.104 106.667,91.334 106.667 C 91.564 106.667,92.000 106.420,92.301 106.118 L 92.850 105.570 92.699 102.755 C 92.555 100.067,92.568 99.923,92.997 99.535 C 93.438 99.136,93.483 99.138,95.949 99.701 C 98.935 100.383,99.492 100.401,100.053 99.840 C 100.601 99.292,100.595 99.172,99.845 96.009 C 99.004 92.461,98.891 92.587,102.933 92.587 C 105.688 92.587,105.995 92.548,106.346 92.161 C 106.932 91.513,106.793 90.771,105.614 88.258 C 105.019 86.992,104.536 85.840,104.540 85.698 C 104.560 84.951,105.147 84.696,107.860 84.255 C 109.520 83.986,110.762 83.674,110.987 83.471 C 111.741 82.790,111.464 81.904,109.743 79.491 C 107.586 76.467,107.595 76.438,111.049 75.165 C 115.185 73.641,115.303 73.133,112.208 70.192 C 109.341 67.468,109.340 67.483,112.480 65.555 C 116.276 63.225,116.282 62.700,112.547 60.382 C 109.335 58.389,109.337 58.417,112.216 55.683 C 115.304 52.749,115.220 52.365,111.159 50.812 C 107.575 49.441,107.564 49.407,109.742 46.418 C 111.039 44.638,111.360 44.047,111.360 43.437 C 111.360 42.371,110.882 42.132,107.738 41.624 C 105.111 41.200,104.533 40.942,104.533 40.195 C 104.533 40.053,105.013 38.910,105.600 37.653 C 106.749 35.192,106.910 34.207,106.260 33.618 C 105.911 33.302,105.443 33.257,102.939 33.298 C 100.319 33.342,99.984 33.305,99.621 32.940 C 99.224 32.541,99.228 32.485,99.848 29.898 C 100.608 26.728,100.611 26.651,99.986 26.064 C 99.352 25.468,98.956 25.478,96.045 26.163 C 93.924 26.663,93.573 26.696,93.091 26.438 L 92.544 26.145 92.695 23.219 L 92.847 20.294 92.300 19.747 C 91.999 19.446,91.572 19.200,91.350 19.200 C 91.129 19.200,89.812 19.723,88.424 20.361 C 86.106 21.428,85.857 21.499,85.356 21.237 C 84.856 20.975,84.773 20.717,84.346 18.110 C 83.853 15.094,83.548 14.507,82.477 14.507 C 82.223 14.507,80.964 15.262,79.679 16.185 C 77.569 17.701,77.286 17.844,76.760 17.661 C 76.325 17.509,76.072 17.178,75.763 16.355 C 75.534 15.749,75.096 14.581,74.788 13.760 C 74.166 12.104,73.819 11.733,72.887 11.733 C 72.367 11.733,71.896 12.107,70.208 13.860 C 67.555 16.616,67.545 16.615,65.594 13.415 C 64.814 12.136,63.999 10.994,63.782 10.878 C 63.294 10.616,62.720 10.617,62.271 10.880 M64.689 20.515 C 67.000 22.160,65.771 26.027,62.937 26.027 C 60.187 26.027,58.802 22.714,60.766 20.833 C 61.874 19.771,63.463 19.642,64.689 20.515 M61.783 30.729 C 63.298 31.305,63.920 30.959,67.379 27.625 L 69.978 25.119 71.078 25.265 C 74.528 25.723,81.390 28.737,85.333 31.526 C 88.956 34.090,93.771 39.312,95.823 42.903 L 96.262 43.672 94.318 48.052 C 93.248 50.461,92.373 52.685,92.373 52.996 C 92.373 53.713,92.843 54.847,93.296 55.222 C 93.487 55.381,95.302 56.255,97.329 57.164 L 101.013 58.818 101.158 59.755 C 101.345 60.976,101.370 63.975,101.200 64.827 L 101.067 65.493 98.964 65.493 C 96.525 65.493,96.713 65.275,96.581 68.267 C 96.485 70.436,95.961 71.635,94.769 72.411 C 92.827 73.678,89.620 73.448,88.260 71.945 C 88.051 71.714,87.645 70.553,87.357 69.364 C 86.516 65.891,85.386 63.941,83.116 62.044 C 82.399 61.445,81.813 60.886,81.813 60.801 C 81.813 60.717,82.601 60.053,83.565 59.328 C 87.075 56.682,89.093 53.602,89.315 50.551 C 89.738 44.732,85.102 39.308,78.206 37.550 C 76.571 37.133,75.873 37.120,55.646 37.120 C 44.166 37.120,34.773 37.045,34.773 36.954 C 34.773 36.739,37.324 34.263,38.827 33.021 C 42.954 29.609,48.315 26.924,53.867 25.490 L 55.787 24.993 58.515 27.759 C 60.016 29.280,61.487 30.616,61.783 30.729 M27.432 48.526 C 28.689 49.349,29.204 51.417,28.462 52.660 C 27.314 54.584,24.406 54.665,23.257 52.805 C 21.586 50.103,24.804 46.804,27.432 48.526 M101.482 48.631 C 104.770 50.636,102.222 55.568,98.702 54.011 C 96.352 52.971,96.277 49.759,98.575 48.587 C 99.534 48.098,100.636 48.115,101.482 48.631 M37.120 60.907 L 37.120 73.173 31.698 73.173 L 26.276 73.173 25.846 71.307 C 25.000 67.632,24.644 63.830,24.857 60.716 L 25.006 58.528 28.734 56.856 C 31.073 55.808,32.577 55.009,32.771 54.712 C 33.619 53.419,33.538 52.495,32.348 49.867 L 31.792 48.640 34.456 48.640 L 37.120 48.640 37.120 60.907 M68.340 49.174 C 70.662 49.778,71.889 51.007,71.892 52.730 C 71.894 53.995,71.267 54.789,69.712 55.491 C 68.611 55.989,68.436 56.001,61.493 56.069 L 54.400 56.137 54.400 52.495 L 54.400 48.853 60.755 48.853 C 65.719 48.853,67.380 48.923,68.340 49.174 M65.944 66.776 C 67.095 67.096,68.456 68.096,69.154 69.135 C 69.887 70.227,70.316 71.647,71.332 76.351 C 72.190 80.327,72.742 81.627,74.288 83.319 C 76.203 85.414,75.759 85.333,85.325 85.333 C 89.906 85.333,93.653 85.406,93.653 85.496 C 93.653 85.657,90.498 89.387,90.362 89.387 C 90.323 89.387,88.675 89.042,86.700 88.620 C 81.123 87.429,80.922 87.569,79.642 93.546 L 78.819 97.386 78.076 97.752 C 76.836 98.364,72.806 99.624,70.717 100.054 C 67.265 100.764,63.508 101.004,60.206 100.725 C 54.577 100.248,47.123 98.064,46.832 96.805 C 46.770 96.538,46.395 94.810,46.000 92.964 C 45.604 91.118,45.123 89.367,44.931 89.073 C 44.008 87.665,43.037 87.578,38.767 88.523 C 37.150 88.881,35.739 89.173,35.631 89.173 C 35.428 89.173,32.427 85.703,32.427 85.469 C 32.427 85.396,39.555 85.311,48.267 85.281 L 64.107 85.227 64.164 79.600 C 64.204 75.627,64.149 73.886,63.977 73.680 C 63.785 73.448,62.763 73.387,59.067 73.387 L 54.400 73.387 54.400 69.973 L 54.400 66.560 59.787 66.561 C 62.749 66.562,65.520 66.659,65.944 66.776 M41.536 92.365 C 44.055 93.900,42.847 97.922,39.868 97.919 C 36.813 97.917,35.681 93.932,38.284 92.344 C 39.145 91.819,40.658 91.829,41.536 92.365 M87.662 92.533 C 88.897 93.438,89.308 95.321,88.543 96.575 C 86.534 99.870,81.510 97.251,83.188 93.784 C 84.013 92.081,86.206 91.467,87.662 92.533 "+ stroke="none"+ fill="rgb(239, 68, 68)"+ fill-rule="evenodd"+ />+ </svg>+ {/if}+ <div class="flex flex-col justify-center items-center w-full">+ <div class="text-base font-bold text-center w-full text-white pb-6">+ {application.configuration.publish.domain}{application.configuration.publish+ .path !== '/'+ ? application.configuration.publish.path+ : ''}+ </div>+ <div+ class="text-xs font-bold text-center w-full text-warmGray-300 group-hover:text-white"+ >+ Last deployment<br />+ {new Intl.DateTimeFormat('default', dateOptions).format(+ new Date(application.UpdatedAt)+ )}+ </div>+ </div>+ </div>+ </div>+ </div>+ {/each}+ </div>+ </div>+ {:else}+ <div class="text-2xl font-bold text-center">No applications found</div>+ {/if}+</div>diff --git a/src/routes/dashboard/databases.svelte b/src/routes/dashboard/databases.sveltenew file mode 100644index 0000000000..fd6740915e--- /dev/null+++ b/src/routes/dashboard/databases.svelte@@ -0,0 +1,82 @@+<script>+ import { goto } from '$app/navigation';+ import MongoDb from '$components/Database/SVGs/MongoDb.svelte';+ import Postgresql from '$components/Database/SVGs/Postgresql.svelte';+ import Clickhouse from '$components/Database/SVGs/Clickhouse.svelte';+ import CouchDb from '$components/Database/SVGs/CouchDb.svelte';+ import Mysql from '$components/Database/SVGs/Mysql.svelte';+ import { dashboard } from '$store';+ import { fade } from 'svelte/transition';+</script>++<div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ <div in:fade={{ duration: 100 }}>Databases</div>+ <button+ class="icon p-1 ml-4 bg-purple-500 hover:bg-purple-400"+ on:click={() => goto('/database/new')}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"+ />+ </svg>+ </button>+</div>+<div in:fade={{ duration: 100 }}>+ {#if $dashboard.databases?.deployed.length > 0}+ <div class="px-4 mx-auto py-5">+ <div class="flex items-center justify-center flex-wrap">+ {#each $dashboard.databases.deployed as database}+ <div+ in:fade={{ duration: 200 }}+ class="px-4 pb-4"+ on:click={() =>+ goto(`/database/${database.configuration.general.deployId}/configuration`)}+ >+ <div+ class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-purple-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"+ >+ <div class="flex items-center">+ {#if database.configuration.general.type == 'mongodb'}+ <MongoDb customClass="w-10 h-10 absolute top-0 left-0 -m-4" />+ {:else if database.configuration.general.type == 'postgresql'}+ <Postgresql customClass="w-10 h-10 absolute top-0 left-0 -m-4" />+ {:else if database.configuration.general.type == 'mysql'}+ <Mysql customClass="w-10 h-10 absolute top-0 left-0 -m-4" />+ {:else if database.configuration.general.type == 'couchdb'}+ <CouchDb+ customClass="w-10 h-10 fill-current text-red-600 absolute top-0 left-0 -m-4"+ />+ {:else if database.configuration.general.type == 'clickhouse'}+ <Clickhouse+ customClass="w-10 h-10 fill-current text-red-600 absolute top-0 left-0 -m-4"+ />+ {/if}+ <div class="text-center w-full">+ <div class="text-base font-bold text-white group-hover:text-white">+ {database.configuration.general.nickname}+ </div>+ <div class="text-xs font-bold text-warmGray-300 ">+ ({database.configuration.general.type})+ </div>+ </div>+ </div>+ </div>+ </div>+ {/each}+ </div>+ </div>+ {:else}+ <div class="text-2xl font-bold text-center">No databases found</div>+ {/if}+</div>+diff --git a/src/routes/dashboard/services.svelte b/src/routes/dashboard/services.sveltenew file mode 100644index 0000000000..2b66b57a4d--- /dev/null+++ b/src/routes/dashboard/services.svelte@@ -0,0 +1,62 @@+<script>+ import { goto } from '$app/navigation';+ import { dashboard } from '$store';+ import { fade } from 'svelte/transition';+</script>++<div+ in:fade={{ duration: 100 }}+ class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center"+>+ <div>Services</div>+ <button class="icon p-1 ml-4 bg-blue-500 hover:bg-blue-400" on:click={() => goto('/service/new')}>+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6v6m0 0v6m0-6h6m-6 0H6"+ />+ </svg>+ </button>+</div>+<div in:fade={{ duration: 100 }}>+ {#if $dashboard?.services?.deployed.length > 0}+ <div class="px-4 mx-auto py-5">+ <div class="flex items-center justify-center flex-wrap">+ {#each $dashboard?.services?.deployed as service}+ <div+ in:fade={{ duration: 200 }}+ class="px-4 pb-4"+ on:click={() => goto(`/service/${service.serviceName}/configuration`)}+ >+ <div+ class="relative rounded-xl p-6 bg-warmGray-800 border-2 border-dashed border-transparent hover:border-blue-500 text-white shadow-md cursor-pointer ease-in-out transform hover:scale-105 duration-100 group"+ >+ <div class="flex items-center">+ {#if service.serviceName == 'plausible'}+ <div>+ <img+ alt="plausible logo"+ class="w-10 absolute top-0 left-0 -m-6"+ src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"+ />+ <div class="text-white font-bold">Plausible Analytics</div>+ </div>+ {/if}+ </div>+ </div>+ </div>+ {/each}+ </div>+ </div>+ {:else}+ <div class="text-2xl font-bold text-center">No services found</div>+ {/if}+</div>diff --git a/src/routes/database/[name]/configuration.svelte b/src/routes/database/[name]/configuration.sveltenew file mode 100644index 0000000000..98dcdf8d47--- /dev/null+++ b/src/routes/database/[name]/configuration.svelte@@ -0,0 +1,110 @@+<script>+ import { database } from '$store';+ import { page, session } from '$app/stores';+ import { request } from '$lib/api/request';+ import { fade } from 'svelte/transition';+ import { goto } from '$app/navigation';+ import MongoDb from '$components/Database/SVGs/MongoDb.svelte';+ import Postgresql from '$components/Database/SVGs/Postgresql.svelte';+ import Mysql from '$components/Database/SVGs/Mysql.svelte';+ import CouchDb from '$components/Database/SVGs/CouchDb.svelte';+ import Loading from '$components/Loading.svelte';+ import PasswordField from '$components/PasswordField.svelte';+ import { browser } from '$app/env';+ import { toast } from '@zerodevx/svelte-toast';++ async function backup() {+ try {+ await request(`/api/v1/databases/${$page.params.name}/backup`, $session, {body: {}});++ browser && toast.push(`Successfully created backup.`);+ } catch (error) {+ console.log(error);+ if (error.code === 501) {+ browser && toast.push(error.error);+ } else {+ browser && toast.push(`Error occured during database backup!`);+ }+ }+ }+ async function loadDatabaseConfig() {+ if ($page.params.name) {+ try {+ $database = await request(`/api/v1/databases/${$page.params.name}`, $session);+ } catch (error) {+ browser && goto(`/dashboard/databases`, { replaceState: true });+ }+ } else {+ browser && goto(`/dashboard/databases`, { replaceState: true });+ }+ }++</script>++{#await loadDatabaseConfig()}+ <Loading />+{:then}+ <div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ <div>{$database.config.general.nickname}</div>+ <div class="px-4">+ {#if $database.config.general.type === 'mongodb'}+ <MongoDb customClass="w-8 h-8" />+ {:else if $database.config.general.type === 'postgresql'}+ <Postgresql customClass="w-8 h-8" />+ {:else if $database.config.general.type === 'mysql'}+ <Mysql customClass="w-8 h-8" />+ {:else if $database.config.general.type === 'couchdb'}+ <CouchDb customClass="w-8 h-8 fill-current text-red-600" />+ {/if}+ </div>+ </div>+ </div>+ <div class="text-left max-w-6xl mx-auto px-6" in:fade={{ duration: 100 }}>+ <div class="pb-2 pt-5 space-y-4">+ <div class="text-2xl font-bold border-gradient w-32">Database</div>+ <div class="flex items-center pt-4">+ <div class="font-bold w-64 text-warmGray-400">Connection string</div>+ {#if $database.config.general.type === 'mongodb'}+ <PasswordField+ value={`mongodb://${$database.envs.MONGODB_USERNAME}:${$database.envs.MONGODB_PASSWORD}@${$database.config.general.deployId}:27017/${$database.envs.MONGODB_DATABASE}`}+ />+ {:else if $database.config.general.type === 'postgresql'}+ <PasswordField+ value={`postgresql://${$database.envs.POSTGRESQL_USERNAME}:${$database.envs.POSTGRESQL_PASSWORD}@${$database.config.general.deployId}:5432/${$database.envs.POSTGRESQL_DATABASE}`}+ />+ {:else if $database.config.general.type === 'mysql'}+ <PasswordField+ value={`mysql://${$database.envs.MYSQL_USER}:${$database.envs.MYSQL_PASSWORD}@${$database.config.general.deployId}:3306/${$database.envs.MYSQL_DATABASE}`}+ />+ {:else if $database.config.general.type === 'couchdb'}+ <PasswordField+ value={`http://${$database.envs.COUCHDB_USER}:${$database.envs.COUCHDB_PASSWORD}@${$database.config.general.deployId}:5984`}+ />+ {:else if $database.config.general.type === 'clickhouse'}+ <!-- {JSON.stringify($database)} -->+ <!-- <textarea+ disabled+ class="w-full"+ value="{`postgresql://${$database.envs.POSTGRESQL_USERNAME}:${$database.envs.POSTGRESQL_PASSWORD}@${$database.config.general.deployId}:5432/${$database.envs.POSTGRESQL_DATABASE}`}"+ ></textarea> -->+ {/if}+ </div>+ </div>+ {#if $database.config.general.type === 'mongodb'}+ <div class="flex items-center">+ <div class="font-bold w-64 text-warmGray-400">Root password</div>+ <PasswordField value={$database.envs.MONGODB_ROOT_PASSWORD} />+ </div>+ {/if}+ <div class="pb-2 pt-5 space-y-4">+ <div class="text-2xl font-bold border-gradient w-32">Backup</div>+ <div class="pt-4">+ <button+ class="button hover:bg-warmGray-700 bg-warmGray-800 rounded p-2 font-bold "+ on:click={backup}>Download database backup</button+ >+ </div>+ </div>+ </div>+{/await}diff --git a/src/routes/database/__layout.svelte b/src/routes/database/__layout.sveltenew file mode 100644index 0000000000..dffeb9f50e--- /dev/null+++ b/src/routes/database/__layout.svelte@@ -0,0 +1,78 @@+<script>+ import { browser } from '$app/env';++ import { goto } from '$app/navigation';+ import { page, session } from '$app/stores';+ import Tooltip from '$components/Tooltip.svelte';+ import { request } from '$lib/api/request';+ import { database, initialDatabase } from '$store';+ import { toast } from '@zerodevx/svelte-toast';+ import { onDestroy } from 'svelte';++ onDestroy(() => {+ $database = JSON.parse(JSON.stringify(initialDatabase));+ });++ async function removeDB() {+ await request(`/api/v1/databases/${$page.params.name}`, $session, {+ method: 'DELETE'+ });+ if (browser) {+ toast.push('Database removed.');+ goto(`/dashboard/databases`, { replaceState: true });+ }+ }+</script>++{#if $page.path !== '/database/new'}+ <nav class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4">+ <Tooltip position="bottom" label="Delete">+ <button title="Delete" class="icon hover:text-red-500" on:click={removeDB}>+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"+ />+ </svg>+ </button>+ </Tooltip>+ <div class="border border-warmGray-700 h-8" />+ <Tooltip position="bottom-left" label="Configuration">+ <button+ class="icon hover:text-yellow-400"+ disabled={$page.path === '/database/new'}+ class:text-yellow-400={$page.path.endsWith('configuration') ||+ $page.path === '/database/new'}+ class:bg-warmGray-700={$page.path.endsWith('configuration') ||+ $page.path === '/database/new'}+ on:click={() => goto(`/database/${$page.params.name}/configuration`)}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"+ />+ </svg>+ </button>+ </Tooltip>+ </nav>+{/if}+<div class="text-white">+ <slot />+</div>diff --git a/src/routes/database/new.svelte b/src/routes/database/new.sveltenew file mode 100644index 0000000000..4253673dc2--- /dev/null+++ b/src/routes/database/new.svelte@@ -0,0 +1,11 @@+<script>+ import Configuration from '$components/Database/Configuration.svelte';+</script>++<div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ Select a database+ </div>+</div>++<Configuration />diff --git a/src/routes/index.svelte b/src/routes/index.sveltenew file mode 100644index 0000000000..da48bf1ee4--- /dev/null+++ b/src/routes/index.svelte@@ -0,0 +1,60 @@+<script>+ import { browser } from '$app/env';++ import { goto } from '$app/navigation';+ import { session } from '$app/stores';+ import { request } from '$lib/api/request';++ async function login() {+ const left = screen.width / 2 - 1020 / 2;+ const top = screen.height / 2 - 618 / 2;+ const newWindow = open(+ `https://github.com/login/oauth/authorize?client_id=${+ import.meta.env.VITE_GITHUB_APP_CLIENTID+ }`,+ 'Authenticate',+ 'resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=' ++ top ++ ', left=' ++ left ++ ', toolbar=0, menubar=0, status=0'+ );+ const timer = setInterval(() => {+ if (newWindow.closed) {+ clearInterval(timer);+ browser && location.reload()+ }+ }, 100);+ }++</script>++<div class="flex justify-center items-center h-screen w-full bg-warmGray-900">+ <div class="max-w-7xl mx-auto px-4 sm:py-24 sm:px-6 lg:px-8">+ <div class="text-center">+ <p+ class="mt-1 pb-8 font-extrabold text-white text-5xl sm:tracking-tight lg:text-6xl text-center"+ >+ <span class="border-gradient">Coolify</span>+ </p>+ <h2 class="text-2xl md:text-3xl font-extrabold text-white">+ An open-source, hassle-free, self-hostable<br />+ <span class="text-indigo-400">Heroku</span>+ & <span class="text-green-400">Netlify</span> alternative+ </h2>+ <div class="text-center py-10">+ {#if !$session.isLoggedIn}+ <button+ class="text-white bg-warmGray-800 hover:bg-warmGray-700 rounded p-2 px-10 font-bold"+ on:click={login}>Login with Github</button+ >+ {:else}+ <button+ class="text-white bg-warmGray-800 hover:bg-warmGray-700 rounded p-2 px-10 font-bold"+ on:click={() => goto('/dashboard/applications')}>Get Started</button+ >+ {/if}+ </div>+ </div>+ </div>+</div>diff --git a/src/routes/service/[name]/__layout.svelte b/src/routes/service/[name]/__layout.sveltenew file mode 100644index 0000000000..116a120bc9--- /dev/null+++ b/src/routes/service/[name]/__layout.svelte@@ -0,0 +1,71 @@+<script>+ import { browser } from '$app/env';++ import { goto } from '$app/navigation';++ import { page, session } from '$app/stores';+ import Tooltip from '$components/Tooltip.svelte';+ import { request } from '$lib/api/request';++ import { toast } from '@zerodevx/svelte-toast';++ async function removeService() {+ await request(`/api/v1/services/${$page.params.name}`, $session, {+ method: 'DELETE'+ });+ if (browser) {+ toast.push('Service removed.');+ goto(`/dashboard/services`, { replaceState: true });+ }+ }+</script>++<nav class="flex text-white justify-end items-center m-4 fixed right-0 top-0 space-x-4">+ <Tooltip position="bottom" label="Delete">+ <button title="Delete" class="icon hover:text-red-500" on:click={removeService}>+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"+ />+ </svg>+ </button>+ </Tooltip>+ <div class="border border-warmGray-700 h-8" />+ <Tooltip position="bottom-left" label="Configuration">+ <button+ class="icon hover:text-yellow-400"+ disabled={$page.path === '/service/new'}+ class:text-yellow-400={$page.path.startsWith('/service')}+ class:bg-warmGray-700={$page.path.startsWith('/service')}+ on:click={() => goto(`/service/${$page.params.name}/configuration`)}+ >+ <svg+ class="w-6"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"+ />+ </svg>+ </button>+ </Tooltip>+</nav>++<div class="text-white">+ <slot />+</div>diff --git a/src/routes/service/[name]/configuration.svelte b/src/routes/service/[name]/configuration.sveltenew file mode 100644index 0000000000..d30e9aea5f--- /dev/null+++ b/src/routes/service/[name]/configuration.svelte@@ -0,0 +1,83 @@+<script>+ import { fade } from 'svelte/transition';+ import { toast } from '@zerodevx/svelte-toast';++ import { page, session } from '$app/stores';+ import { request } from '$lib/api/request';+ import { goto } from '$app/navigation';+ import Loading from '$components/Loading.svelte';+ import Plausible from '$components/Service/Plausible.svelte';+ import { browser } from '$app/env';+ let service = {};+ async function loadServiceConfig() {+ if ($page.params.name) {+ try {+ service = await request(`/api/v1/services/${$page.params.name}`, $session);+ } catch (error) {+ browser && toast.push(`Cannot find service ${$page.params.name}?!`);+ goto(`/dashboard/services`, { replaceState: true });+ }+ }+ }+ async function activate() {+ try {+ await request(`/api/v1/services/deploy/${$page.params.name}/activate`, $session, {+ method: 'PATCH',+ body: {}+ });+ browser && toast.push(`All users are activated for Plausible.`);+ } catch (error) {+ console.log(error);+ browser && toast.push(`Ooops, there was an error activating users for Plausible?!`);+ }+ }+</script>++{#await loadServiceConfig()}+ <Loading />+{:then}+ <div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ <div>{$page.params.name === 'plausible' ? 'Plausible Analytics' : $page.params.name}</div>+ <div class="px-4">+ {#if $page.params.name === 'plausible'}+ <img+ alt="plausible logo"+ class="w-6 mx-auto"+ src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"+ />+ {/if}+ </div>+ <a+ target="_blank"+ class="icon mx-2"+ href={service.config.baseURL}+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ class="h-6 w-6"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ stroke-width="2"+ d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"+ />+ </svg></a+ >++++ </div>+ </div>+ <div class="space-y-2 max-w-4xl mx-auto px-6" in:fade={{ duration: 100 }}>+ <div class="block text-center py-4">+ {#if $page.params.name === 'plausible'}+ <Plausible {service} />+ {/if}+ </div>+ </div>+{/await}diff --git a/src/routes/service/new/[type]/__layout.svelte b/src/routes/service/new/[type]/__layout.sveltenew file mode 100644index 0000000000..8465e82d74--- /dev/null+++ b/src/routes/service/new/[type]/__layout.svelte@@ -0,0 +1,42 @@+<script>+ import { browser } from '$app/env';++ import { goto } from '$app/navigation';++ import { page, session } from '$app/stores';+ import Loading from '$components/Loading.svelte';+ import { request } from '$lib/api/request';+ import { initialNewService, newService } from '$store';++ import { toast } from '@zerodevx/svelte-toast';+ import { onDestroy } from 'svelte';++ async function checkService() {+ try {+ const data = await request(`/api/v1/services/${$page.params.type}`, $session);+ if (!data?.success) {+ if (browser) {+ goto(`/dashboard/services`, { replaceState: true });+ toast.push(+ `${+ $page.params.type === 'plausible' ? 'Plausible Analytics' : $page.params.type+ } already deployed.`+ );+ }+ }+ } catch (error) {+ //+ }+ }+ onDestroy(() => {+ $newService = JSON.parse(JSON.stringify(initialNewService));+ });+</script>++{#await checkService()}+ <Loading />+{:then}+ <div class="text-white">+ <slot />+ </div>+{/await}diff --git a/src/routes/service/new/[type]/index.svelte b/src/routes/service/new/[type]/index.sveltenew file mode 100644index 0000000000..ec06846f5b--- /dev/null+++ b/src/routes/service/new/[type]/index.svelte@@ -0,0 +1,130 @@+<script>+ import { fade } from 'svelte/transition';++ import { toast } from '@zerodevx/svelte-toast';+ import { newService } from '$store';+ import { page, session } from '$app/stores';+ import { request } from '$lib/api/request';+ import { goto } from '$app/navigation';+ import Loading from '$components/Loading.svelte';+ import TooltipInfo from '$components/TooltipInfo.svelte';+ import { browser } from '$app/env';++ $: deployable =+ $newService.baseURL === '' ||+ $newService.baseURL === null ||+ $newService.email === '' ||+ $newService.email === null ||+ $newService.userName === '' ||+ $newService.userName === null ||+ $newService.userPassword === '' ||+ $newService.userPassword === null ||+ $newService.userPassword.length <= 6 ||+ $newService.userPassword !== $newService.userPasswordAgain;+ let loading = false;+ async function deploy() {+ try {+ loading = true;+ const payload = $newService;+ delete payload.userPasswordAgain;+ await request(`/api/v1/services/deploy/${$page.params.type}`, $session, {+ body: payload+ });+ if (browser) {+ toast.push(+ 'Service deployment queued.<br><br><br>It could take 2-5 minutes to be ready, be patient and grab a coffee/tea!',+ { duration: 4000 }+ );+ goto(`/dashboard/services`, { replaceState: true });+ }+ } catch (error) {+ console.log(error);+ browser && toast.push('Oops something went wrong. See console.log.');+ } finally {+ loading = false;+ }+ }+</script>++<div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold">+ Deploy new+ {#if $page.params.type === 'plausible'}+ <span class="text-blue-500 px-2 capitalize">Plausible Analytics</span>+ {/if}+ </div>+</div>+{#if loading}+ <Loading />+{:else}+ <div class="space-y-2 max-w-4xl mx-auto px-6 flex-col text-center" in:fade={{ duration: 100 }}>+ <div class="grid grid-flow-row">+ <label for="Domain"+ >Domain <TooltipInfo+ position="right"+ label={`You will have your Plausible instance at here.`}+ /></label+ >+ <input+ id="Domain"+ class:border-red-500={$newService.baseURL == null || $newService.baseURL == ''}+ bind:value={$newService.baseURL}+ placeholder="analytics.coollabs.io"+ />+ </div>+ <div class="grid grid-flow-row">+ <label for="Email">Email</label>+ <input+ id="Email"+ class:border-red-500={$newService.email == null || $newService.email == ''}+ bind:value={$newService.email}+ placeholder="[email protected]"+ />+ </div>+ <div class="grid grid-flow-row">+ <label for="Username">Username </label>+ <input+ id="Username"+ class:border-red-500={$newService.userName == null || $newService.userName == ''}+ bind:value={$newService.userName}+ placeholder="admin"+ />+ </div>+ <div class="grid grid-flow-row">+ <label for="Password"+ >Password <TooltipInfo position="right" label={`Must be at least 7 characters.`} /></label+ >+ <input+ id="Password"+ type="password"+ class:border-red-500={$newService.userPassword == null ||+ $newService.userPassword == '' ||+ $newService.userPassword.length <= 6}+ bind:value={$newService.userPassword}+ />+ </div>+ <div class="grid grid-flow-row pb-5">+ <label for="PasswordAgain">Password again </label>+ <input+ id="PasswordAgain"+ type="password"+ class:placeholder-red-500={$newService.userPassword !== $newService.userPasswordAgain}+ class:border-red-500={$newService.userPassword !== $newService.userPasswordAgain}+ bind:value={$newService.userPasswordAgain}+ />+ </div>+ <button+ disabled={deployable}+ class:cursor-not-allowed={deployable}+ class:bg-blue-500={!deployable}+ class:hover:bg-blue-400={!deployable}+ class:hover:bg-transparent={deployable}+ class:text-warmGray-700={deployable}+ class:text-white={!deployable}+ class="button p-2"+ on:click={deploy}+ >+ Deploy+ </button>+ </div>+{/if}diff --git a/src/routes/service/new/index.svelte b/src/routes/service/new/index.sveltenew file mode 100644index 0000000000..8072746723--- /dev/null+++ b/src/routes/service/new/index.svelte@@ -0,0 +1,29 @@+<script>+ import { goto } from '$app/navigation';+ import { page } from '$app/stores';++ import { fade } from 'svelte/transition';+</script>++<div class="min-h-full text-white">+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ Select a service+ </div>+</div>+<div class="text-center space-y-2 max-w-4xl mx-auto px-6" in:fade={{ duration: 100 }}>+ {#if $page.path === '/service/new'}+ <div class="flex justify-center space-x-4 font-bold pb-6">+ <div+ class="text-center flex-col items-center cursor-pointer ease-in-out transform hover:scale-105 duration-100 border-2 border-dashed border-transparent hover:border-blue-500 p-2 rounded bg-warmGray-800"+ on:click={() => goto('/service/new/plausible')}+ >+ <img+ alt="plausible logo"+ class="w-12 mx-auto"+ src="https://cdn.coollabs.io/assets/coolify/services/plausible/logo_sm.png"+ />+ <div class="text-white">Plausible Analytics</div>+ </div>+ </div>+ {/if}+</div>diff --git a/src/routes/settings.svelte b/src/routes/settings.sveltenew file mode 100644index 0000000000..44c2abb2fa--- /dev/null+++ b/src/routes/settings.svelte@@ -0,0 +1,190 @@+<script context="module">+ /**+ * @type {import('@sveltejs/kit').Load}+ */+ export async function load({ fetch }) {+ try {+ const { allowRegistration, sendErrors } = await (await fetch(`/api/v1/settings`)).json();+ return {+ props: {+ allowRegistration,+ sendErrors+ }+ };+ } catch (error) {+ return {+ props: {+ allowRegistration: null,+ sendErrors: null+ }+ };+ }+ }++</script>++<script>+ export let allowRegistration;+ export let sendErrors;+ import { browser } from '$app/env';+ import { session } from '$app/stores';++ import { request } from '$lib/api/request';+ import { toast } from '@zerodevx/svelte-toast';+ import { fade } from 'svelte/transition';+ let settings = {+ allowRegistration,+ sendErrors+ };+ async function changeSettings(value) {+ try {+ settings[value] = !settings[value];+ await request(`/api/v1/settings`, $session, {+ body: {+ ...settings+ }+ });+ browser && toast.push('Configuration saved.');+ } catch (error) {+ console.log(error);+ }+ }++</script>++<div class="min-h-full text-white" in:fade={{ duration: 100 }}>+ <div class="py-5 text-left px-6 text-3xl tracking-tight font-bold flex items-center">+ <div>Settings</div>+ </div>+</div>++<div in:fade={{ duration: 100 }}>+ <div class="max-w-4xl mx-auto px-6 pb-4">+ <div>+ <div class="text-2xl font-bold border-gradient w-32 pt-4 text-white">General</div>+ <div class=" pt-4">+ <div class="px-4 sm:px-6">+ <ul class="mt-2 divide-y divide-warmGray-800">+ <li class="py-4 flex items-center justify-between">+ <div class="flex flex-col">+ <p class="text-base font-bold text-warmGray-100">Registration allowed?</p>+ <p class="text-sm font-medium text-warmGray-400">+ Allow further registrations to the application. It's turned off after the first+ registration.+ </p>+ </div>+ <button+ type="button"+ on:click={() => changeSettings('allowRegistration')}+ aria-pressed="false"+ class="relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200"+ class:bg-green-600={settings?.allowRegistration}+ class:bg-warmGray-700={!settings?.allowRegistration}+ >+ <span class="sr-only">Use setting</span>+ <span+ class="pointer-events-none relative inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"+ class:translate-x-5={settings?.allowRegistration}+ class:translate-x-0={!settings?.allowRegistration}+ >+ <span+ class=" ease-in duration-200 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"+ class:opacity-0={settings?.allowRegistration}+ class:opacity-100={!settings?.allowRegistration}+ aria-hidden="true"+ >+ <svg class="bg-white h-3 w-3 text-red-600" fill="none" viewBox="0 0 12 12">+ <path+ d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ />+ </svg>+ </span>+ <span+ class="ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"+ aria-hidden="true"+ class:opacity-100={settings?.allowRegistration}+ class:opacity-0={!settings?.allowRegistration}+ >+ <svg+ class="bg-white h-3 w-3 text-green-600"+ fill="currentColor"+ viewBox="0 0 12 12"+ >+ <path+ d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"+ />+ </svg>+ </span>+ </span>+ </button>+ </li>+ <li class="py-4 flex items-center justify-between">+ <div class="flex flex-col">+ <p class="text-base font-bold text-warmGray-100">Send errors automatically?</p>+ <p class="text-sm font-medium text-warmGray-400">+ Allow to send errors automatically to developer(s) at coolLabs (<a+ href="https://twitter.com/andrasbacsai"+ target="_blank"+ class="underline text-white font-bold hover:text-blue-400">Andras Bacsai</a+ >). This will help to fix bugs quicker. 🙏+ </p>+ </div>+ <button+ type="button"+ on:click={() => changeSettings('sendErrors')}+ aria-pressed="true"+ class="relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200"+ class:bg-green-600={settings?.sendErrors}+ class:bg-warmGray-700={!settings?.sendErrors}+ >+ <span class="sr-only">Use setting</span>+ <span+ class="pointer-events-none relative inline-block h-5 w-5 rounded-full bg-white shadow transform transition ease-in-out duration-200"+ class:translate-x-5={settings?.sendErrors}+ class:translate-x-0={!settings?.sendErrors}+ >+ <span+ class=" ease-in duration-200 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"+ class:opacity-0={settings?.sendErrors}+ class:opacity-100={!settings?.sendErrors}+ aria-hidden="true"+ >+ <svg class="bg-white h-3 w-3 text-red-600" fill="none" viewBox="0 0 12 12">+ <path+ d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ />+ </svg>+ </span>+ <span+ class="ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity"+ aria-hidden="true"+ class:opacity-100={settings?.sendErrors}+ class:opacity-0={!settings?.sendErrors}+ >+ <svg+ class="bg-white h-3 w-3 text-green-600"+ fill="currentColor"+ viewBox="0 0 12 12"+ >+ <path+ d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"+ />+ </svg>+ </span>+ </span>+ </button>+ </li>+ </ul>+ </div>+ </div>+ </div>+ </div>+</div>diff --git a/src/routes/success.svelte b/src/routes/success.sveltenew file mode 100644index 0000000000..796b7dfa41--- /dev/null+++ b/src/routes/success.svelte@@ -0,0 +1,13 @@+<script>+ import { browser } from '$app/env';+ if (browser) {+ setTimeout(() => {+ window.close();+ }, 1000);+ }++</script>++<div class="flex w-full h-screen justify-center items-center">+ <div class="text-3xl font-bold">Succesfully logged in! 🎉</div>+</div>diff --git a/src/store.js b/src/store.jsdeleted file mode 100644index c73b019773..0000000000--- a/src/store.js+++ /dev/null@@ -1,244 +0,0 @@-import { writable, derived, readable } from 'svelte/store'--const sessionStore = {- token: window.localStorage.getItem('token') || null,- githubAppToken: null-}--function waitAtLeast (time, promise) {- const timeoutPromise = new Promise((resolve) => {- setTimeout(resolve, time)- })- return Promise.all([promise, timeoutPromise]).then((values) => values[0])-};--export const fetch = writable(- async (- url,- { method, body, ...customConfig } = { body: null, method: null }- ) => {- let headers = { 'Content-type': 'application/json; charset=UTF-8' }- if (method === 'DELETE') {- delete headers['Content-type']- }- const isGithub = url.match(/api.github.com/)- if (isGithub) {- headers = Object.assign(headers, {- Authorization: `token ${sessionStore.githubAppToken}`- })- } else {- headers = Object.assign(headers, {- Authorization: `Bearer ${sessionStore.token}`- })- }- const config = {- cache: 'no-cache',- method: method || (body ? 'POST' : 'GET'),- ...customConfig,- headers: {- ...headers,- ...customConfig.headers- }- }- if (body) {- config.body = JSON.stringify(body)- }- // const response = await waitAtLeast(350, window.fetch(url, config))- const response = await window.fetch(url, config)- if (response.status >= 200 && response.status <= 299) {- if (response.headers.get('content-type').match(/application\/json/)) {- return await response.json()- } else if (response.headers.get('content-type').match(/text\/plain/)) {- return await response.text()- } else if (response.headers.get('content-type').match(/multipart\/form-data/)) {- return await response.formData()- } else {- return await response.blob()- }- } else {- /* eslint-disable */- if (response.status === 401) {- return Promise.reject({- code: response.status,- error: 'Unauthorized'- })- } else if (response.status >= 500) {- const error = (await response.json()).message- return Promise.reject({- code: response.status,- error: error || 'Oops, something is not okay. Are you okay?'- })- } else {- return Promise.reject({- code: response.status,- error: response.statusText- })- }- /* eslint-enable */- }- }-)-export const activePage = writable({- application: null,- new: false,- mainmenu: null-})-export const session = writable(sessionStore)-export const loggedIn = derived(session, ($session) => {- return $session.token-})-export const githubRepositories = writable([])-export const githubInstallations = writable({})-export const savedBranch = writable()--export const dateOptions = readable({- year: 'numeric',- month: 'short',- day: '2-digit',- hour: 'numeric',- minute: 'numeric',- second: 'numeric',- hour12: false-})--export const deployments = writable([])--export const initConf = writable({})-export const application = writable({- github: {- installation: {- id: null- },- app: {- id: null- }- },- repository: {- id: null,- organization: 'new',- name: 'start',- branch: null- },- general: {- deployId: null,- nickname: null,- workdir: null- },- build: {- pack: 'static',- directory: null,- command: {- build: null,- installation: null- },- container: {- name: null,- tag: null,- baseSHA: null- }- },- publish: {- directory: null,- domain: null,- path: '/',- port: null,- secrets: []- }-})--export const initialApplication = {- github: {- installation: {- id: null- },- app: {- id: null- }- },- repository: {- id: null,- organization: null,- name: null,- branch: null- },- general: {- deployId: null,- nickname: null,- workdir: null- },- build: {- pack: 'static',- directory: null,- command: {- build: null,- installation: null- },- container: {- name: null,- tag: null- }- },- publish: {- directory: null,- domain: null,- path: '/',- port: null,- secrets: []- }-}-export const initialDatabase = {- config: {- general: {- workdir: null,- deployId: null,- nickname: null,- type: null- },- database: {- username: null,- passwords: [],- defaultDatabaseName: null- },- deploy: {- name: null- }- },- envs: {}-}--export const database = writable({- config: {- general: {- workdir: null,- deployId: null,- nickname: null,- type: null- },- database: {- username: null,- passwords: [],- defaultDatabaseName: null- },- deploy: {- name: null- }- },- envs: {}-})--export const dbInprogress = writable(false)--export const newService = writable({- email: null,- userName: 'admin',- userPassword: null,- userPasswordAgain: null,- baseURL: null-})-export const initialNewService = {- email: null,- userName: 'admin',- userPassword: null,- userPasswordAgain: null,- baseURL: null-}diff --git a/src/store/index.ts b/src/store/index.tsnew file mode 100644index 0000000000..407e00852a--- /dev/null+++ b/src/store/index.ts@@ -0,0 +1,154 @@+import type {+ Application,+ Dashboard,+ Database,+ DateTimeFormatOptions,+ GithubInstallations+} from 'src/global';+import { writable, derived, readable, Writable } from 'svelte/store';++export const dashboard = writable<Dashboard>({+ databases: {+ deployed: []+ },+ applications: {+ deployed: []+ },+ services: {+ deployed: []+ }+});+export const dateOptions: DateTimeFormatOptions = {+ year: 'numeric',+ month: 'short',+ day: '2-digit',+ hour: 'numeric',+ minute: 'numeric',+ second: 'numeric',+ hour12: false+};++export const githubRepositories = writable([]);+export const githubInstallations = writable<GithubInstallations>([]);+export const application = writable<Application>({+ github: {+ installation: {+ id: null+ },+ app: {+ id: null+ }+ },+ repository: {+ id: null,+ organization: 'new',+ name: 'start',+ branch: null+ },+ general: {+ deployId: null,+ nickname: null,+ workdir: null+ },+ build: {+ pack: 'static',+ directory: null,+ command: {+ build: null,+ installation: null+ },+ container: {+ name: null,+ tag: null,+ baseSHA: null+ }+ },+ publish: {+ directory: null,+ domain: null,+ path: '/',+ port: null,+ secrets: []+ }+});++export const initConf = writable({});++export const initialApplication: Application = {+ github: {+ installation: {+ id: null+ },+ app: {+ id: null+ }+ },+ repository: {+ id: null,+ organization: null,+ name: null,+ branch: null+ },+ general: {+ deployId: null,+ nickname: null,+ workdir: null+ },+ build: {+ pack: 'static',+ directory: null,+ command: {+ build: null,+ installation: null+ },+ container: {+ name: null,+ tag: null,+ baseSHA: null+ }+ },+ publish: {+ directory: null,+ domain: null,+ path: '/',+ port: null,+ secrets: []+ }+};+export const initialDatabase: Database = {+ config: {+ general: {+ workdir: null,+ deployId: null,+ nickname: null,+ type: null+ },+ database: {+ username: null,+ passwords: [],+ defaultDatabaseName: null+ },+ deploy: {+ name: null+ }+ },+ envs: {}+};+export const database = writable<Database>({+ config: {},+ envs: []+});+export const newService = writable({+ email: null,+ userName: 'admin',+ userPassword: null,+ userPasswordAgain: null,+ baseURL: null+});+export const initialNewService = {+ email: null,+ userName: 'admin',+ userPassword: null,+ userPasswordAgain: null,+ baseURL: null+};diff --git a/src/utils/templates.js b/src/utils/templates.jsdeleted file mode 100644index f49e3f566e..0000000000--- a/src/utils/templates.js+++ /dev/null@@ -1,57 +0,0 @@-const defaultBuildAndDeploy = {- installation: 'yarn install',- build: 'yarn build'-}--const templates = {- svelte: {- pack: 'svelte',- ...defaultBuildAndDeploy,- directory: 'public',- name: 'Svelte'- },- next: {- pack: 'nextjs',- ...defaultBuildAndDeploy,- port: 3000,- name: 'NextJS'- },- nuxt: {- pack: 'nuxtjs',- ...defaultBuildAndDeploy,- port: 3000,- name: 'NuxtJS'- },- 'react-scripts': {- pack: 'react',- ...defaultBuildAndDeploy,- directory: 'build',- name: 'React'- },- 'parcel-bundler': {- pack: 'static',- ...defaultBuildAndDeploy,- directory: 'dist',- name: 'Parcel'- },- '@vue/cli-service': {- pack: 'vuejs',- ...defaultBuildAndDeploy,- directory: 'dist',- name: 'Vue'- },- gatsby: {- pack: 'gatsby',- ...defaultBuildAndDeploy,- directory: 'public',- name: 'Gatsby'- },- 'preact-cli': {- pack: 'react',- ...defaultBuildAndDeploy,- directory: 'build',- name: 'Preact'- }-}--export default templatesdiff --git a/public/favicon.png b/static/favicon.pngsimilarity index 100%rename from public/favicon.pngrename to static/favicon.pngdiff --git a/svelte.config.js b/svelte.config.jsindex bdb4e30475..a341c9c8f4 100644--- a/svelte.config.js+++ b/svelte.config.js@@ -1,4 +1,39 @@-const { postcss } = require('svelte-preprocess')-module.exports = {- preprocess: [postcss()]-}+import dotEnvExtended from 'dotenv-extended';+dotEnvExtended.load();+import preprocess from 'svelte-preprocess';+import path from 'path';+import adapter from '@sveltejs/adapter-node';+/** @type {import('@sveltejs/kit').Config} */+export default {+ preprocess: [+ preprocess({+ postcss: true+ })+ ],+ kit: {+ adapter: adapter({+ out: 'build'+ }),+ target: '#svelte',+ hostHeader: 'X-Forwarded-Host',+ floc: true,+ prerender: {+ enabled: false+ },+ vite: {+ server: {+ hmr: {+ port: 23456+ }+ },+ resolve: {+ alias: {+ $components: path.resolve('./src/components/'),+ $store: path.resolve('./src/store/index.ts'),+ $api: path.resolve('./src/routes/api/_index.ts'),+ $models: path.resolve('./src/models/')+ }+ }+ }+ }+};diff --git a/tailwind.config.cjs b/tailwind.config.cjsnew file mode 100644index 0000000000..5fe5504052--- /dev/null+++ b/tailwind.config.cjs@@ -0,0 +1,66 @@+const defaultTheme = require('tailwindcss/defaultTheme');+const colors = require('tailwindcss/colors');+const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles');++const svelteClassColonExtractor = (content) => {+ return content.match(/(?<=class:)([a-zA-Z0-9_-]+)/gm) || [];+};+module.exports = {+ mode: 'jit',+ purge: ['./**/*.html', './src/**/*.{js,jsx,ts,tsx,svelte}'],+ // purge: {+ // enabled: process.env.NODE_ENV === 'production',+ // content: ['./src/**/*.svelte', './src/**/*.html', './src/**/*.css', './index.html'],+ // preserveHtmlElements: true,+ // options: {+ // safelist: [+ // /svelte-/,+ // 'border-green-500',+ // 'border-yellow-300',+ // 'border-red-500',+ // 'hover:border-green-500',+ // 'hover:border-red-200',+ // 'hover:bg-red-200',+ // 'hover:bg-warmGray-900',+ // 'hover:bg-transparent'+ // ],+ // defaultExtractor: (content) => {+ // // WARNING: tailwindExtractor is internal tailwind api+ // // if this breaks after a tailwind update, report to svite repo+ // return [...tailwindExtractor(content), ...svelteClassColonExtractor(content)];+ // },+ // keyframes: false+ // }+ // },+ important: true,+ theme: {+ extend: {+ keyframes: {+ wiggle: {+ '0%, 100%': { transform: 'rotate(-3deg)' },+ '50%': { transform: 'rotate(3deg)' }+ }+ },+ animation: {+ wiggle: 'wiggle 0.5s ease-in-out infinite'+ },+ fontFamily: {+ sans: ['Montserrat', ...defaultTheme.fontFamily.sans]+ },+ colors: {+ ...colors,+ coolblack: '#161616',+ 'coolgray-100': '#181818',+ 'coolgray-200': '#202020',+ 'coolgray-300': '#242424'+ }+ }+ },+ variants: {+ extend: {+ opacity: ['disabled'],+ animation: ['hover', 'focus']+ }+ },+ plugins: []+};diff --git a/tailwind.config.js b/tailwind.config.jsdeleted file mode 100644index 31732265a5..0000000000--- a/tailwind.config.js+++ /dev/null@@ -1,63 +0,0 @@-const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles')--const svelteClassColonExtractor = (content) => {- return content.match(/(?<=class:)([a-zA-Z0-9_-]+)/gm) || []-}-const defaultTheme = require('tailwindcss/defaultTheme')-const colors = require('tailwindcss/colors')-module.exports = {- purge: {- enabled: process.env.NODE_ENV === 'production',- content: [- './src/**/*.svelte',- './src/**/*.html',- './src/**/*.css',- './index.html'- ],- preserveHtmlElements: true,- options: {- safelist: [/svelte-/, 'border-green-500', 'border-yellow-300', 'border-red-500', 'hover:border-green-500', 'hover:border-red-200', 'hover:bg-red-200', 'hover:bg-warmGray-900', 'hover:bg-transparent'],- defaultExtractor: (content) => {- // WARNING: tailwindExtractor is internal tailwind api- // if this breaks after a tailwind update, report to svite repo- return [- ...tailwindExtractor(content),- ...svelteClassColonExtractor(content)- ]- },- keyframes: false- }- },- darkMode: false,- important: true,- theme: {- extend: {- keyframes: {- wiggle: {- '0%, 100%': { transform: 'rotate(-3deg)' },- '50%': { transform: 'rotate(3deg)' }- }- },- animation: {- wiggle: 'wiggle 0.5s ease-in-out infinite'- },- fontFamily: {- sans: ['Montserrat', ...defaultTheme.fontFamily.sans]- },- colors: {- ...colors,- coolblack: '#161616',- 'coolgray-100': '#181818',- 'coolgray-200': '#202020',- 'coolgray-300': '#242424'- }- }- },- variants: {- extend: {- opacity: ['disabled'],- animation: ['hover', 'focus']- }- },- plugins: []-}diff --git a/tsconfig.json b/tsconfig.jsonnew file mode 100644index 0000000000..cd76718b3a--- /dev/null+++ b/tsconfig.json@@ -0,0 +1,35 @@+{+ "compilerOptions": {+ "moduleResolution": "node",+ "module": "es2020",+ "lib": ["es2020"],+ "target": "es2019",+ /**+ svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript+ to enforce using \`import type\` instead of \`import\` for Types.+ */+ "importsNotUsedAsValues": "error",+ "isolatedModules": true,+ "resolveJsonModule": true,+ /**+ To have warnings/errors of the Svelte compiler at the correct position,+ enable source maps by default.+ */+ "sourceMap": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "baseUrl": ".",+ "allowJs": true,+ "checkJs": true,+ "paths": {+ "$lib/*": ["src/lib/*"],+ "$store": ["src/store/index.ts"],+ "$api": ["src/routes/api/_index.ts"],+ "$models/*": ["src/models/*"],+ "$components/*": ["src/components/*"]+ }+ },+ "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]+}diff --git a/vite.config.js b/vite.config.jsdeleted file mode 100644index 8d1555687d..0000000000--- a/vite.config.js+++ /dev/null@@ -1,38 +0,0 @@-module.exports = {- alias: {- '@store': '/src/store.js'- // '/@components/': path.resolve(__dirname, '/src/components'),- },- optimizeDeps: {- exclude: [- '@roxi/routify',- 'fastify-static',- 'fastify',- 'fastify-autoload',- 'fastify-jwt',- 'dotenv',- 'dotenv-extended',- 'commander',- 'axios',- 'fastify-env',- 'fastify-plugin',- 'mongoose',- 'js-yaml',- 'shelljs',- 'jsonwebtoken',- 'deepmerge',- 'dockerode',- 'dayjs',- '@zerodevx/svelte-toast',- 'mongodb-memory-server-core',- 'unique-names-generator',- 'generate-password',- '@iarna/toml',- 'http-errors-enhanced',- 'ajv'- ]- },- proxy: {- '/api': 'http://127.0.0.1:3001/'- }-}