@ozdao/prometheus-framework 0.1.83 → 0.1.85

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  2. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
  3. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  5. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  7. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  11. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +40 -41
  13. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/store/auth.js +84 -105
  15. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  21. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  33. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  37. package/dist/style.css +1 -1
  38. package/package.json +1 -1
  39. package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
  40. package/src/modules/auth/components/pages/SignIn.vue +0 -1
  41. package/src/modules/auth/store/auth.js +42 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.1.83",
3
+ "version": "0.1.85",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
 
19
19
  <!-- Form -->
20
- <div class="pos-relative ">
20
+ <div class="pos-relative">
21
21
  <!-- Phone -->
22
22
  <transition name="slide-fade">
23
23
  <div v-if="tabAuth === 'phone'" class="mn-semi radius-small o-hidden">
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <section class="">
3
- {{document.cookie}}
4
3
  <!-- Header -->
5
4
  <img :src="'/logo/logo_square.svg'" class="i-extra radius-small mn-small">
6
5
 
@@ -27,27 +27,27 @@
27
27
  },
28
28
  });
29
29
 
30
- async function initialize() {
31
- const userCookie = await getCookie('user');
32
-
33
- if (userCookie) {
34
- const {_id, email, phone, roles, accessToken} = userCookie;
35
-
36
- Object.assign(state.user, {_id, email, phone});
37
- Object.assign(state.access, {token: accessToken, roles, status: !!accessToken});
38
-
39
- $axios.interceptors.request.use((config) => {
40
- if (accessToken) {
41
- config.headers['x-access-token'] = accessToken;
42
- }
43
- return config;
44
- }, (error) => {
45
- return Promise.reject(error);
46
- });
47
- }
30
+ // async function initialize() {
31
+ const userCookie = getCookie('user');
32
+
33
+ if (userCookie) {
34
+ const {_id, email, phone, roles, accessToken} = userCookie;
35
+
36
+ Object.assign(state.user, {_id, email, phone});
37
+ Object.assign(state.access, {token: accessToken, roles, status: !!accessToken});
38
+
39
+ $axios.interceptors.request.use((config) => {
40
+ if (accessToken) {
41
+ config.headers['x-access-token'] = accessToken;
42
+ }
43
+ return config;
44
+ }, (error) => {
45
+ return Promise.reject(error);
46
+ });
48
47
  }
48
+ // }
49
49
 
50
- initialize();
50
+ // initialize();
51
51
 
52
52
  const actions = {
53
53
  async login (user, type) {
@@ -213,42 +213,42 @@
213
213
  };
214
214
 
215
215
  function getCookie(name) {
216
- if (process.env.MOBILE_APP) {
217
- return CapacitorCookies.getCookies()
218
- console.log(document.cookie)
219
- } else {
216
+ // if (process.env.MOBILE_APP) {
217
+ // return CapacitorCookies.getCookies()
218
+ // console.log(document.cookie)
219
+ // } else {
220
220
  // Для веб-версии
221
221
  const cookie = Cookies.get(name);
222
222
  return cookie ? JSON.parse(cookie) : null;
223
- }
223
+ // }
224
224
  }
225
225
 
226
226
  function setCookie(name, data, env = process.env.NODE_ENV) {
227
- if (process.env.MOBILE_APP) {
228
- // Если приложение запущено в Capacitor
229
- CapacitorCookies.setCookie({
230
- url: process.env.API_URL, // используйте ваш API_URL
231
- key: name,
232
- value: JSON.stringify(data)
233
- });
234
- } else {
235
- // Для веб-версии
227
+ // if (process.env.MOBILE_APP) {
228
+ // // Если приложение запущено в Capacitor
229
+ // CapacitorCookies.setCookie({
230
+ // url: process.env.API_URL, // используйте ваш API_URL
231
+ // key: name,
232
+ // value: JSON.stringify(data)
233
+ // });
234
+ // } else {
235
+ // // Для веб-версии
236
236
  Cookies.set(name, JSON.stringify(data), optionsDefault[env]);
237
- }
237
+ // }
238
238
  }
239
239
 
240
240
  function removeCookie(name, env = process.env.NODE_ENV) {
241
- if (process.env.MOBILE_APP) {
242
- // Если приложение запущено в Capacitor
243
- CapacitorCookies.deleteCookie({
244
- url: process.env.API_URL, // используйте ваш API_URL
245
- key: name
246
- });
247
- } else {
241
+ // if (process.env.MOBILE_APP) {
242
+ // // Если приложение запущено в Capacitor
243
+ // CapacitorCookies.deleteCookie({
244
+ // url: process.env.API_URL, // используйте ваш API_URL
245
+ // key: name
246
+ // });
247
+ // } else {
248
248
  // Для веб-версии
249
249
  const options = env === 'production' ? { domain: process.env.API_URL } : {};
250
250
  Cookies.remove(name, options);
251
- }
251
+ // }
252
252
  }
253
253
 
254
254
  // // History