@simitgroup/simpleapp-generator 2.0.1-e-alpha → 2.0.1-g-alpha
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.
- package/ReleaseNote.md +12 -1
- package/package.json +1 -1
- package/templates/nest/src/simple-app/_core/features/mini-app/developer-portal/developer-portal-env-development.service.ts.eta +1 -0
- package/templates/nuxt/app.vue.eta +10 -4
- package/templates/nuxt/components/image/ImageToBase64Uploader.vue.eta +21 -3
- package/templates/nuxt/pages/[xorg]/profile.vue.eta +5 -3
- package/templates/nuxt/pages/[xorg]/docnoformat.vue._eta +0 -60
package/ReleaseNote.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
[2.0.1g-alpha]
|
|
2
|
+
|
|
3
|
+
1. Fix mini app cannot publish
|
|
4
|
+
|
|
5
|
+
[2.0.1f-alpha]
|
|
6
|
+
|
|
7
|
+
1. Update image
|
|
8
|
+
2. Remove useless docnoformat file
|
|
9
|
+
3. Update profile page metadata
|
|
10
|
+
4. Fix redirect page
|
|
11
|
+
|
|
1
12
|
[2.0.1e-alpha]
|
|
2
13
|
|
|
3
|
-
|
|
14
|
+
5. Fix developer portal cannot create app
|
|
4
15
|
|
|
5
16
|
[2.0.1d-alpha]
|
|
6
17
|
|
package/package.json
CHANGED
|
@@ -28,7 +28,11 @@ watch(()=>useRoute().fullPath,async (newval,oldvalue)=>{
|
|
|
28
28
|
}
|
|
29
29
|
if(getPathPara('xorg','')!=''){
|
|
30
30
|
|
|
31
|
-
if(
|
|
31
|
+
if(getCurrentXorg()===''){
|
|
32
|
+
navigateTo('/picktenant')
|
|
33
|
+
}else if(!getUserProfile()?.currentGroup){
|
|
34
|
+
goTo('pickgroup')
|
|
35
|
+
}
|
|
32
36
|
setGraphqlServer()
|
|
33
37
|
}
|
|
34
38
|
})
|
|
@@ -49,10 +53,12 @@ onMounted(async()=>{
|
|
|
49
53
|
await reloadUserStore()
|
|
50
54
|
const currentgroup = useCookie('currentGroup').value
|
|
51
55
|
//if no xorg, no enforce pick group
|
|
52
|
-
if(getCurrentXorg()){
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
if(getCurrentXorg()===''){
|
|
57
|
+
goTo('picktenant')
|
|
58
|
+
}else if(!currentgroup){
|
|
59
|
+
goTo('pickgroup')
|
|
55
60
|
}
|
|
61
|
+
setGraphqlServer()
|
|
56
62
|
}else{
|
|
57
63
|
if(useRoute().path!='/login'){
|
|
58
64
|
navigateTo("/login");
|
|
@@ -92,7 +92,25 @@ const emit = defineEmits<{
|
|
|
92
92
|
|
|
93
93
|
// Use camera reference to call functions
|
|
94
94
|
const photoTaken = (data: any) => {
|
|
95
|
-
|
|
95
|
+
const img = new Image();
|
|
96
|
+
img.onload = () => {
|
|
97
|
+
const maxWidth = 800;
|
|
98
|
+
const maxHeight = 600;
|
|
99
|
+
const scale = Math.min(maxWidth / img.width, maxHeight / img.height, 1);
|
|
100
|
+
const scaledWidth = img.width * scale;
|
|
101
|
+
const scaledHeight = img.height * scale;
|
|
102
|
+
|
|
103
|
+
const canvas = document.createElement("canvas");
|
|
104
|
+
canvas.width = scaledWidth;
|
|
105
|
+
canvas.height = scaledHeight;
|
|
106
|
+
const ctx = canvas.getContext("2d");
|
|
107
|
+
if (ctx) {
|
|
108
|
+
ctx.drawImage(img, 0, 0, scaledWidth, scaledHeight);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
scaledImage.value = canvas.toDataURL("image/jpeg", 0.8);
|
|
112
|
+
};
|
|
113
|
+
img.src = data.image_data_url;
|
|
96
114
|
};
|
|
97
115
|
const openUploadDialog = () => {
|
|
98
116
|
dialogVisible.value = true;
|
|
@@ -107,7 +125,7 @@ const handleImageUpload = (event) => {
|
|
|
107
125
|
img.onload = () => {
|
|
108
126
|
const maxWidth = 800; // Set your desired maximum width
|
|
109
127
|
const maxHeight = 600; // Set your desired maximum height
|
|
110
|
-
const scale = Math.min(maxWidth / img.width, maxHeight / img.height);
|
|
128
|
+
const scale = Math.min(maxWidth / img.width, maxHeight / img.height, 1);
|
|
111
129
|
const scaledWidth = img.width * scale;
|
|
112
130
|
const scaledHeight = img.height * scale;
|
|
113
131
|
|
|
@@ -117,7 +135,7 @@ const handleImageUpload = (event) => {
|
|
|
117
135
|
const ctx = canvas.getContext("2d");
|
|
118
136
|
ctx.drawImage(img, 0, 0, scaledWidth, scaledHeight);
|
|
119
137
|
|
|
120
|
-
scaledImage.value = canvas.toDataURL("image/jpeg");
|
|
138
|
+
scaledImage.value = canvas.toDataURL("image/jpeg", 0.8);
|
|
121
139
|
};
|
|
122
140
|
img.src = e.target.result;
|
|
123
141
|
};
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import profile from "../profile.vue";
|
|
12
12
|
definePageMeta({
|
|
13
|
-
|
|
13
|
+
menuPath: "setting/profile",
|
|
14
14
|
licenseWeight: 0,
|
|
15
|
-
requiredGroups: ["everyone",
|
|
16
|
-
|
|
15
|
+
requiredGroups: ["everyone"],
|
|
16
|
+
description: "profiledesc",
|
|
17
|
+
icon: "pi pi-user",
|
|
18
|
+
colorClass: "text-icon-blue",
|
|
17
19
|
});
|
|
18
20
|
</script>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<PageDocList
|
|
3
|
-
:document="doc"
|
|
4
|
-
:columns="columns"
|
|
5
|
-
:data="docdata"
|
|
6
|
-
:sorts="sorts"
|
|
7
|
-
>
|
|
8
|
-
<template #mobileList="{ item }">
|
|
9
|
-
<!-- <div class="flex flex-row justify justify-end"> -->
|
|
10
|
-
<div class="flex flex-col flex-1">
|
|
11
|
-
<text-primary>{{ item.docNoFormatName }}</text-primary>
|
|
12
|
-
<div class="flex flex-row gap-2">
|
|
13
|
-
<text-subtitle>{{ item.docNoPattern }}</text-subtitle>
|
|
14
|
-
<renderer-boolean v-model="item.active"/>
|
|
15
|
-
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="flex flex-col text-right">
|
|
19
|
-
<text-subtitle>{{ item.docNoType }}</text-subtitle>
|
|
20
|
-
<text-subtitle>{{ item.nextNumber }}</text-subtitle>
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
<!-- </div> -->
|
|
24
|
-
</template>
|
|
25
|
-
<template #dataTableColumns>
|
|
26
|
-
</template>
|
|
27
|
-
<template #default
|
|
28
|
-
><div><NuxtPage :_id="id ?? 'new'" /></div
|
|
29
|
-
></template>
|
|
30
|
-
</PageDocList>
|
|
31
|
-
</template>
|
|
32
|
-
<script setup lang="ts">
|
|
33
|
-
/**
|
|
34
|
-
* This file was automatically generated by simpleapp generator.
|
|
35
|
-
* --remove-this-line-to-prevent-override--
|
|
36
|
-
* last change 2023-09-09
|
|
37
|
-
* author: Ks Tan
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const doc = useNuxtApp().$DocnoformatDoc()
|
|
42
|
-
const docdata = doc.getReactiveData();
|
|
43
|
-
|
|
44
|
-
definePageMeta({
|
|
45
|
-
menuPath: "systemconfig/setting/docnoformat",
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const columns = [
|
|
49
|
-
"docNoFormatNo",
|
|
50
|
-
"docNoFormatName",
|
|
51
|
-
"active",
|
|
52
|
-
"docNoType",
|
|
53
|
-
"docNoPattern",
|
|
54
|
-
"nextNumber",
|
|
55
|
-
];
|
|
56
|
-
|
|
57
|
-
const sorts: string[][] = [["docNoType", "asc"],["docNoFormatNo","asc"]];
|
|
58
|
-
|
|
59
|
-
const id = computed(() => useRoute().params.id);
|
|
60
|
-
</script>
|