@live-change/image-frontend 0.8.15 → 0.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,10 @@
9
9
  @touchcancel="handleEditorTouchCancel"
10
10
  @touchmove="handleEditorTouchMove"
11
11
  @wheel="handleEditorWheel">
12
- <div class="p-6 md:p-8 lg:p-8">
13
- <div class="w-auto relative"
14
- :style="`aspect-ratio: ${aspectRatio}`" ref="cropArea">
12
+ <div class="p-4 md:p-5 lg:p-6 flex flex-row justify-content-center align-items-center">
13
+ <div class="w-full relative"
14
+ :style="`aspect-ratio: ${aspectRatio}; max-width: 40vh;`"
15
+ ref="cropArea">
15
16
  <div class="absolute left-50 top-50 w-0 h-0">
16
17
  <Image :image="sourceImage"
17
18
  :style="{ width: `${rectSize?.x}px`, transform: imageTransform }"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="state == 'edit'">
2
+ <div v-if="state === 'edit'">
3
3
  <ImageCrop v-if="sourceImage || sourceUpload"
4
4
  :crop="cropData"
5
5
  :aspectRatio="aspectRatio"
@@ -8,33 +8,34 @@
8
8
  :sourceUpload="sourceUpload"
9
9
  :type="type"
10
10
  v-model:ready="cropReady"
11
- ref="imageCrop" />
12
- <div class="flex p-4">
13
- <div class="flex-grow-1 flex">
14
- <Button type="button" label="Add Image" icon="pi pi-plus" class="p-button-primary"
11
+ ref="imageCrop" style="max-height: 60vh" />
12
+ <div class="flex p-3 pb-2 flex-wrap">
13
+ <div class="flex-grow-1 flex justify-content-center">
14
+ <Button type="button" label="Upload" icon="pi pi-upload" class="p-button-primary mb-2"
15
15
  @click="() => state = 'upload' "/>
16
16
  </div>
17
- <div class="flex">
18
- <Button type="button" label="Save Image" icon="pi pi-save" class="p-button-warning ml-2"
17
+ <div class="flex flex-grow-1 justify-content-center">
18
+ <Button type="button" label="Save" icon="pi pi-save" class="p-button-warning ml-2 mb-2"
19
19
  :disabled="!cropReady" @click="saveImage" />
20
- <Button type="button" label="Remove Image" icon="pi pi-trash" class="p-button-danger ml-2"
20
+ <Button type="button" label="Remove" icon="pi pi-times" class="p-button-danger ml-2 mb-2"
21
21
  @click="removeImage"/>
22
22
  </div>
23
23
  </div>
24
24
  </div>
25
- <div v-else-if="state == 'upload'">
26
- <DropZone class="w-full relative p-6 md:p-8 lg:p-8" :accept="acceptList" @input="handleFile">
27
- <div class="w-auto border-dashed border-primary-500 flex align-items-center justify-content-center"
28
- :style="`aspect-ratio: ${aspectRatio}`">
29
- <p class="text-primary text-xl">Drop image here!</p>
25
+ <div v-else-if="state === 'upload'" class="flex flex-column align-items-center">
26
+ <DropZone class="flex-grow-1 w-full relative p-4 md:p-5 lg:p-6 pt-2 md:pt-3 lg:pt-4 surface-section"
27
+ :accept="acceptList" @input="handleFile">
28
+ <div class="w-auto flex flex-row align-items-center justify-content-center">
29
+ <div class="w-full border-dashed border-primary-500 flex align-items-center justify-content-center"
30
+ :style="`aspect-ratio: ${aspectRatio}; max-width: 50vh`">
31
+ <p class="text-primary text-xl">Drop image here!</p>
32
+ </div>
30
33
  </div>
31
34
  </DropZone>
32
- <div class="flex p-4">
33
- <div class="flex-grow-1 flex">
34
- <FileInput :accept="acceptList" @input="handleFile" class="block">
35
- <Button type="button" label="Upload Image" icon="pi pi-upload" class="p-button-primary" />
36
- </FileInput>
37
- </div>
35
+ <div class="w-full flex justify-content-center px-4 pt-3 pb-3 flex-grow-0">
36
+ <FileInput :accept="acceptList" @input="handleFile" class="block">
37
+ <Button type="button" label="Upload Image" icon="pi pi-upload" class="p-button-primary" />
38
+ </FileInput>
38
39
  </div>
39
40
  </div>
40
41
  <div v-else>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/image-frontend",
3
- "version": "0.8.15",
3
+ "version": "0.8.17",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -22,16 +22,16 @@
22
22
  "type": "module",
23
23
  "dependencies": {
24
24
  "@fortawesome/fontawesome-free": "^6.4.2",
25
- "@live-change/cli": "^0.8.15",
26
- "@live-change/dao": "^0.8.15",
27
- "@live-change/dao-vue3": "^0.8.15",
28
- "@live-change/dao-websocket": "^0.8.15",
29
- "@live-change/framework": "^0.8.15",
30
- "@live-change/image-service": "^0.8.15",
31
- "@live-change/session-service": "^0.8.15",
32
- "@live-change/vue3-components": "^0.8.15",
33
- "@live-change/vue3-ssr": "^0.8.15",
34
- "@vueuse/core": "^10.7.2",
25
+ "@live-change/cli": "^0.8.17",
26
+ "@live-change/dao": "^0.8.17",
27
+ "@live-change/dao-vue3": "^0.8.17",
28
+ "@live-change/dao-websocket": "^0.8.17",
29
+ "@live-change/framework": "^0.8.17",
30
+ "@live-change/image-service": "^0.8.17",
31
+ "@live-change/session-service": "^0.8.17",
32
+ "@live-change/vue3-components": "^0.8.17",
33
+ "@live-change/vue3-ssr": "^0.8.17",
34
+ "@vueuse/core": "^10.9.0",
35
35
  "codeceptjs-assert": "^0.0.5",
36
36
  "compression": "^1.7.4",
37
37
  "cross-env": "^7.0.3",
@@ -39,8 +39,8 @@
39
39
  "pica": "^9.0.1",
40
40
  "pretty-bytes": "^6.1.1",
41
41
  "primeflex": "^3.3.1",
42
- "primeicons": "^6.0.1",
43
- "primevue": "^3.49.1",
42
+ "primeicons": "^7.0.0",
43
+ "primevue": "^3.51.0",
44
44
  "rollup-plugin-node-builtins": "^2.1.2",
45
45
  "rollup-plugin-visualizer": "5.12.0",
46
46
  "serialize-javascript": "^6.0.2",
@@ -50,7 +50,7 @@
50
50
  "vue3-scroll-border": "0.1.6"
51
51
  },
52
52
  "devDependencies": {
53
- "@live-change/codeceptjs-helper": "^0.8.15",
53
+ "@live-change/codeceptjs-helper": "^0.8.17",
54
54
  "codeceptjs": "^3.5.12",
55
55
  "generate-password": "1.7.1",
56
56
  "playwright": "^1.41.2",
@@ -61,5 +61,5 @@
61
61
  "author": "",
62
62
  "license": "BSD-3-Clause",
63
63
  "description": "",
64
- "gitHead": "4897eefbf3ce9ace57630127da89503c71114563"
64
+ "gitHead": "a736d9be9e93757a967867b98b840e08de2d713c"
65
65
  }