@ozdao/prometheus-framework 0.2.305 → 0.2.307

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/chats.server.js +3 -2
  2. package/dist/chats.server.mjs +3 -2
  3. package/dist/main.css +1 -1
  4. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +2 -1
  5. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs.map +1 -1
  6. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +3 -2
  7. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js.map +1 -1
  8. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +2 -2
  9. package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +2 -2
  10. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
  12. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
  14. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  16. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  18. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +34 -25
  19. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
  20. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +37 -28
  21. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
  22. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +5 -3
  23. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
  24. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +5 -3
  25. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
  26. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +241 -241
  27. package/dist/prometheus-framework/src/modules/pages/pages.client.js +241 -241
  28. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +28 -13
  29. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  30. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +32 -17
  31. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  32. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +12 -0
  33. package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
  34. package/dist/prometheus-framework/src/modules/products/router/products.router.js +12 -0
  35. package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
  36. package/dist/prometheus-framework.cjs.js +1 -1
  37. package/dist/prometheus-framework.es.js +4 -3
  38. package/dist/wallet.server.js +1 -1
  39. package/dist/wallet.server.mjs +1 -1
  40. package/package.json +1 -1
  41. package/src/components/Chips/Chips.vue +2 -1
  42. package/src/components/EmptyState/EmptyState.vue +1 -1
  43. package/src/modules/chats/routes/chats.routes.js +5 -8
  44. package/src/modules/globals/views/components/layouts/App.vue +1 -1
  45. package/src/modules/globals/views/components/layouts/Client.vue +1 -1
  46. package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -10
  47. package/src/modules/organizations/components/pages/Organizations.vue +43 -42
  48. package/src/modules/products/components/pages/Products.vue +37 -26
  49. package/src/modules/products/router/products.router.js +15 -0
  50. package/src/modules/wallet/controllers/factories/rewards.factory.js +1 -0
  51. package/src/modules/wallet/wallet.server.js +1 -1
  52. package/src/styles/typography.scss +5 -6
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <header v-if="!MOBILE_APP" class="pd-small flex-v-center flex-nowrap flex">
3
+ <header v-if="!MOBILE_APP" class="pd-small bg-red flex-v-center flex-nowrap flex">
4
4
  <h2 class="mn-r-medium">Groups</h2>
5
5
  <button
6
6
  @click="$router.push({
@@ -18,7 +18,6 @@
18
18
  +
19
19
  </button>
20
20
  </header>
21
-
22
21
  <Tab
23
22
  v-model:selected="tabOrganization"
24
23
  :tabs="[
@@ -26,6 +25,7 @@
26
25
  { name: 'Member', value: 'member' },
27
26
  { name: 'Follower', value: 'follower' }
28
27
  ]"
28
+ style="flex: 1 0 auto;"
29
29
  class="
30
30
  o-hidden
31
31
  h5
@@ -35,46 +35,47 @@
35
35
  "
36
36
  tabClass="bg-light pd-small radius-small w-100"
37
37
  />
38
- <div class="pd-small">
39
- <transition name="slide-fade">
40
- <Feed
41
- :showLoadMore="false"
42
- :search="{
43
- placeholder: 'Search organization...',
44
- class: 'mn-b-small'
45
- }"
46
- :states="{
47
- empty: {
48
- title: 'No organizations Found',
49
- description: 'Currently, there are no such organizations available.'
50
- }
51
- }"
52
- :store="{
53
- read: (options) => organizations.actions.read(options),
54
- state: null
55
- }"
56
- :options="{
57
- user: auth.state.user._id,
58
- [tabOrganization === 'owner' ? 'owner' :
59
- tabOrganization === 'member' ? 'member' : 'subscriber']: route.params._id,
60
- lookup: ['memberships']
61
- }"
62
- v-slot="{
63
- items
64
- }"
65
- >
66
- <CardOrganization
67
- v-for="(organization, index) in items"
68
- v-memo="[organization._id, organization.profile.name]"
69
- :organization="organization"
70
- :showRating="true"
71
- :showFollowers="true"
72
- :showProducts="false"
73
- class="bg-light mn-b-thin w-100 o-hidden radius-big pd-medium"
74
- />
75
- </Feed>
76
- </transition>
77
- </div>
38
+ <div class="pd-small h-100 bg-white">
39
+ <transition name="slide-fade">
40
+ <Feed
41
+ :showLoadMore="false"
42
+ :search="{
43
+ placeholder: 'Search organization...',
44
+ class: 'mn-b-small'
45
+ }"
46
+ :states="{
47
+ empty: {
48
+ title: 'No organizations Found',
49
+ description: 'Currently, there are no such organizations available.'
50
+ }
51
+ }"
52
+ :store="{
53
+ read: (options) => organizations.actions.read(options),
54
+ state: null
55
+ }"
56
+ :options="{
57
+ user: auth.state.user._id,
58
+ [tabOrganization === 'owner' ? 'owner' :
59
+ tabOrganization === 'member' ? 'member' : 'subscriber']: route.params._id,
60
+ lookup: ['memberships']
61
+ }"
62
+ v-slot="{
63
+ items
64
+ }"
65
+ style="height: 200rem"
66
+ >
67
+ <CardOrganization
68
+ v-for="(organization, index) in items"
69
+ v-memo="[organization._id, organization.profile.name]"
70
+ :organization="organization"
71
+ :showRating="true"
72
+ :showFollowers="true"
73
+ :showProducts="false"
74
+ class="bg-light mn-b-thin w-100 o-hidden radius-big pd-medium"
75
+ />
76
+ </Feed>
77
+ </transition>
78
+ </div>
78
79
  </div>
79
80
  </template>
80
81
 
@@ -1,18 +1,18 @@
1
1
  <template>
2
- <div>
3
- <header
4
- v-if="route.name !== 'Organization'"
5
- class="mn-b-medium flex-v-center flex-nowrap flex"
6
- >
7
- <h2 class="mn-r-medium">Products</h2>
8
- <button
9
- @click="$router.push({
10
- name: route.params._id ? 'Organization_ProductAdd' : 'ProductAdd'
11
- })"
12
- class="radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second">
13
- +
14
- </button>
15
- </header>
2
+ <div class="h-100">
3
+ <header
4
+ v-if="route.name !== 'Organization' && !MOBILE_APP"
5
+ class="mn-b-medium flex-v-center flex-nowrap flex"
6
+ >
7
+ <h2 class="mn-r-medium">Products</h2>
8
+ <button
9
+ @click="$router.push({
10
+ name: route.params._id ? 'Organization_ProductAdd' : 'ProductAdd'
11
+ })"
12
+ class="radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second">
13
+ +
14
+ </button>
15
+ </header>
16
16
 
17
17
  <Tab
18
18
  v-if="route.name !== 'Organization'"
@@ -23,27 +23,38 @@
23
23
  { name: 'Unpublished', value: 'unpublished' },
24
24
  { name: 'Archivied', value: 'archivied' }
25
25
  ]"
26
- class="mn-b-small o-hidden h5 radius-big bg-light"
26
+ style="flex: 0 0 auto"
27
+ class="
28
+ o-hidden
29
+ h5
30
+ bg-light
31
+ gap-micro pd-small pd-t-thin pd-b-thin
32
+ pos-sticky pos-t-0
33
+ z-index-1
34
+ "
35
+ tabClass="bg-white pd-small radius-small w-100"
27
36
  />
28
37
 
29
- <div class="cols-2-1_3 bg-light pd-thin radius-big gap-thin">
38
+ <div class="cols-2-1_3 h-100 z-index-3 pos-relative radius-big gap-thin">
30
39
 
31
40
  <BlockFilter
32
41
  v-model:filter="marketplace.state.filter"
33
42
  :options="marketplace.state.filter.options"
34
- class="h-100 w-100 desktop-only"
43
+ class="h-100 w-100 z-index-2 desktop-only"
35
44
  />
36
45
 
37
46
 
38
- <div class="rows-1">
39
- <!-- <BlockSearch
40
- @search="updateSearch"
41
- placeholder="Enter product name"
42
- class="bg-white mn-b-thin"
43
- /> -->
47
+ <div class="rows-1 h-100 z-index-3 bg-white radius-tl-big radius-tr-big">
48
+ <div class="pd-thin z-index-3 radius-tl-big radius-tr-big pos-t-0 pos-sticky">
49
+ <BlockSearch
50
+ @search="updateSearch"
51
+ placeholder="Enter product name"
52
+ class="bg-light h-4r"
53
+ />
54
+ </div>
44
55
  <Feed
45
56
  v-model:filter="marketplace.state.filter"
46
- :search="true"
57
+
47
58
  :states="{
48
59
  empty: {
49
60
  title: 'No Products Found',
@@ -67,14 +78,14 @@
67
78
  v-slot="{
68
79
  items
69
80
  }"
70
- class="cols-4 gap-thin"
81
+ class="cols-4 pd-thin gap-thin"
71
82
  >
72
83
  <CardProduct
73
84
  v-for="product in items"
74
85
  :key="product._id"
75
86
  :product="product"
76
87
  :user="auth.state.access"
77
- class="h-max"
88
+ class="h-max bg-white"
78
89
  @click.capture="$router.push({
79
90
  name: 'Organization_Product',
80
91
  params: {
@@ -1,5 +1,9 @@
1
1
  import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';
2
2
 
3
+ import * as auth from '@pf/src/modules/auth/views/store/auth';
4
+
5
+ import IconPlus from '@pf/src/modules/icons/navigation/IconPlus.vue'
6
+
3
7
  export function createProductRoutes(prefix = '', options = {}) {
4
8
  const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
5
9
 
@@ -14,6 +18,17 @@ export function createProductRoutes(prefix = '', options = {}) {
14
18
  en: 'Products',
15
19
  ru: 'Товары'
16
20
  },
21
+
22
+ actions: [
23
+ {
24
+ component: IconPlus,
25
+ props: {
26
+ fill: "rgb(var(--main))"
27
+ },
28
+ condition: () => auth.state.user && auth.state.user._id,
29
+ action: (router) => router.push({ name: 'ProductAdd' })
30
+ }
31
+ ],
17
32
  authorize: options.productsAuthorize || []
18
33
  },
19
34
  component: () => import(/* webpackChunkName: 'Products' */ '@pf/src/modules/products/components/pages/Products.vue'),
@@ -37,6 +37,7 @@ const rewardsControllerFactory = (db, wdmClient, wss) => {
37
37
  const lookup = {};
38
38
 
39
39
  wss.on('connection', (ws, req) => {
40
+ ws.type = 'rewards';
40
41
  if (req.userId) {
41
42
  lookup[req.userId] = ws;
42
43
 
@@ -17,7 +17,7 @@ function initializePayments(app, db, wss, wdmClient, origins, publicPath) {
17
17
  // Setup routes if the app object is provided
18
18
  if (app) {
19
19
  RoutesPayments(app, db, origins, publicPath)
20
- RoutesRewards(app, db, wss, wdmClient, origins)
20
+ // RoutesRewards(app, db, wss, wdmClient, origins)
21
21
  }
22
22
  }
23
23
 
@@ -12,12 +12,11 @@ body {
12
12
  }
13
13
 
14
14
  // Font Styles
15
- .h0 { font-family: var(--font-main); font-weight: 500; font-size: 8.000rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
16
- h1,.h1 { font-family: var(--font-main); font-weight: 500; font-size: 3.500rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
17
- h2,.h2 { font-family: var(--font-main); font-weight: 500; font-size: 3.000rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
18
- h3,.h3 { font-family: var(--font-main); font-weight: 500; font-size: 2.000rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
19
- h4,.h4 { font-family: var(--font-main); font-weight: 500; font-size: 1.250rem; line-height: 1.250; letter-spacing: +0.0rem; text-transform: none; }
20
- h5,.h5 { font-family: var(--font-main); font-weight: 500; font-size: 1.000rem; line-height: 1.250; letter-spacing: -0.0rem; text-transform: none; }
15
+ h1,.h1 { font-family: var(--font-main); font-weight: 500; font-size: 3.750rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
16
+ h2,.h2 { font-family: var(--font-main); font-weight: 500; font-size: 2.500rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
17
+ h3,.h3 { font-family: var(--font-main); font-weight: 500; font-size: 1.250rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
18
+ h4,.h4 { font-family: var(--font-main); font-weight: 500; font-size: 1.500rem; line-height: 1.250; letter-spacing: +0.0rem; text-transform: none; }
19
+ h5,.h5 { font-family: var(--font-main); font-weight: 500; font-size: 0.750rem; line-height: 1.250; letter-spacing: -0.0rem; text-transform: none; }
21
20
 
22
21
  // Typogragy Styles
23
22
  .p-small { font-family: var(--font-second); font-weight: 400; font-size: 0.75rem; line-height: 1.250; }