From 34be485a498a1ab88051f234da9fc4298ab699ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Fri, 16 Feb 2024 15:46:32 +0100 Subject: [PATCH] feat: import projects form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Jaenisch --- package-lock.json | 4 +- package.json | 2 +- src/app.html | 2 +- src/lib/components/pages/ImportProject.svelte | 10 + .../components/templates/ImportProject.svelte | 119 +++++++ src/lib/i18n/locales/en.json | 34 ++ src/lib/i18n/locales/he.json | 6 +- src/routes/profile/+page.svelte | 2 +- src/routes/projects/import/+page.server.js | 4 + src/routes/projects/import/+page.svelte | 8 + tests/components/pages/ImportProject.test.ts | 304 ++++++++++++++++++ .../templates/ImportProject.test.ts | 304 ++++++++++++++++++ 12 files changed, 791 insertions(+), 8 deletions(-) create mode 100644 src/lib/components/pages/ImportProject.svelte create mode 100644 src/lib/components/templates/ImportProject.svelte create mode 100644 src/routes/projects/import/+page.server.js create mode 100644 src/routes/projects/import/+page.svelte create mode 100644 tests/components/pages/ImportProject.test.ts create mode 100644 tests/components/templates/ImportProject.test.ts diff --git a/package-lock.json b/package-lock.json index 1f083f8..bdb8d51 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "anvil", - "version": "0.0.2", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "anvil", - "version": "0.0.2", + "version": "0.0.3", "devDependencies": { "@playwright/test": "1.41.2", "@skeletonlabs/skeleton": "2.8.0", diff --git a/package.json b/package.json index 655d738..9304f72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anvil", - "version": "0.0.2", + "version": "0.0.3", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/app.html b/src/app.html index 5d04ca1..482b79b 100644 --- a/src/app.html +++ b/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/src/lib/components/pages/ImportProject.svelte b/src/lib/components/pages/ImportProject.svelte new file mode 100644 index 0000000..b57ae60 --- /dev/null +++ b/src/lib/components/pages/ImportProject.svelte @@ -0,0 +1,10 @@ + + + diff --git a/src/lib/components/templates/ImportProject.svelte b/src/lib/components/templates/ImportProject.svelte new file mode 100644 index 0000000..eb9c212 --- /dev/null +++ b/src/lib/components/templates/ImportProject.svelte @@ -0,0 +1,119 @@ + + +
+
+

{$_('page.import_project.heading')}

+

{$_('page.import_project.intro')}

+
+

+ +

+ +
+ + {$_('page.import_project.form.fields.name.error')} +
+
+ domain.example/projects/NameUpdateRealtime +
+
+ +
+

+ +

+