From 4102cb850167442c33d49f85744d7465b7e168e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=A2?= =?UTF-8?q?=D1=83=D1=85=D1=82=D0=B0=D1=80=D0=BE=D0=B2?= Date: Wed, 31 Jan 2024 15:34:13 +0500 Subject: [PATCH] access log --- .gitignore | 3 + app/README.md | 1 + app/package.json | 2 +- app/src/move/AlbumSelect.svelte | 15 ++- go.mod | 80 +++++++++++ go.sum | 228 ++++++++++++++++++++++++++++++++ main.go | 135 +++++++++++++++++++ main_test.go | 13 ++ mycert.crt | 32 +++++ mykey.key | 52 ++++++++ os.Stdout | 4 + 11 files changed, 557 insertions(+), 8 deletions(-) create mode 100644 go.mod create mode 100644 go.sum create mode 100644 main.go create mode 100644 main_test.go create mode 100644 mycert.crt create mode 100644 mykey.key create mode 100644 os.Stdout diff --git a/.gitignore b/.gitignore index 6e54cef..1ea8328 100644 --- a/.gitignore +++ b/.gitignore @@ -153,3 +153,6 @@ dist .yarn/install-state.gz .pnp.* + +# ignore iris project file +.iris.yml diff --git a/app/README.md b/app/README.md index 8b98f03..8bf1420 100644 --- a/app/README.md +++ b/app/README.md @@ -5,4 +5,5 @@ ## История - 27-01-2024 v1.0.0 начальная (галерея работает) +- 30-01-2024 v1.0.0 отказался от julia, вернулся на golang (попробую iris) diff --git a/app/package.json b/app/package.json index 99bc2e8..1c8c15f 100644 --- a/app/package.json +++ b/app/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --port 8080", "build": "vite build", "preview": "vite preview" }, diff --git a/app/src/move/AlbumSelect.svelte b/app/src/move/AlbumSelect.svelte index d2c8462..86d0569 100644 --- a/app/src/move/AlbumSelect.svelte +++ b/app/src/move/AlbumSelect.svelte @@ -11,10 +11,10 @@ let activeAlbum = "" onMount(() => { - axios.get(`/albums`).then((response) => { + axios.get(`/album/list`).then((response) => { albums = response.data; console.log("albums: ", albums); - activeAlbum = albums[0].album; + activeAlbum = albums[0].Seria; console.log("activeAlbum: ", albums[0]); initTE({Dropdown, Ripple }); }); @@ -24,7 +24,7 @@