@ozdao/prometheus-framework 0.1.95 → 0.1.97
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -2
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +1 -2
- package/dist/community.server.mjs +1 -2
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +48 -46
- package/dist/prometheus-framework/src/modules/icons/navigation/IconInfo.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconInfo.vue.js +39 -0
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/src/modules/community/controllers/blog.controller.js +0 -2
- package/src/modules/icons/icons.client.js +23 -11
- package/src/modules/icons/navigation/IconInfo.vue +37 -0
- package/src/modules/middlewares/server/authJwt.js +9 -15
@@ -1,14 +1,23 @@
|
|
1
|
-
//
|
2
|
-
import
|
1
|
+
// Entities
|
2
|
+
import IconCommunity from './entities/IconCommunity.vue';
|
3
|
+
import IconEvents from './entities/IconEvents.vue';
|
4
|
+
import IconGroups from './entities/IconGroups.vue';
|
5
|
+
// Labels
|
3
6
|
import LabelGooglePlay from './labels/LabelGooglePlay.vue';
|
4
7
|
import LabelAppStore from './labels/LabelAppStore.vue';
|
8
|
+
// Navigation
|
5
9
|
import IconCross from './navigation/IconCross.vue';
|
6
10
|
import IconChevronRight from './navigation/IconChevronRight.vue';
|
7
11
|
import IconEdit from './navigation/IconEdit.vue';
|
12
|
+
import IconInfo from './navigation/IconInfo.vue';
|
13
|
+
// Placeholders
|
14
|
+
import PlaceholderUserpic from './placeholders/PlaceholderUserpic.vue';
|
15
|
+
// SKeletons
|
8
16
|
import SkeletonEventShort from './skeletons/SkeletonEventShort.vue';
|
9
17
|
import SkeletonBlogpost from './skeletons/SkeletonBlogpost.vue';
|
10
18
|
import SkeletonOrganization from './skeletons/SkeletonOrganization.vue';
|
11
19
|
import SkeletonEvent from './skeletons/SkeletonEvent.vue';
|
20
|
+
// Socials
|
12
21
|
import Vk from './socials/vk.vue';
|
13
22
|
import Instagram from './socials/instagram.vue';
|
14
23
|
import Telegram from './socials/telegram.vue';
|
@@ -19,22 +28,28 @@ import Dribbble from './socials/dribbble.vue';
|
|
19
28
|
import Facebook from './socials/facebook.vue';
|
20
29
|
import Youtube from './socials/youtube.vue';
|
21
30
|
import Line from './socials/line.vue';
|
22
|
-
import IconCommunity from './entities/IconCommunity.vue';
|
23
|
-
import IconEvents from './entities/IconEvents.vue';
|
24
|
-
import IconGroups from './entities/IconGroups.vue';
|
25
31
|
|
26
|
-
|
32
|
+
|
27
33
|
export {
|
28
|
-
|
34
|
+
// Entities
|
35
|
+
IconCommunity,
|
36
|
+
IconEvents,
|
37
|
+
IconGroups,
|
38
|
+
// Labels
|
29
39
|
LabelGooglePlay,
|
30
40
|
LabelAppStore,
|
41
|
+
// Navigation
|
31
42
|
IconCross,
|
32
43
|
IconChevronRight,
|
33
44
|
IconEdit,
|
45
|
+
IconInfo,
|
46
|
+
// Placeholders
|
47
|
+
PlaceholderUserpic,
|
34
48
|
SkeletonEventShort,
|
35
49
|
SkeletonBlogpost,
|
36
50
|
SkeletonOrganization,
|
37
51
|
SkeletonEvent,
|
52
|
+
// Socials
|
38
53
|
Vk,
|
39
54
|
Instagram,
|
40
55
|
Telegram,
|
@@ -44,8 +59,5 @@ export {
|
|
44
59
|
Dribbble,
|
45
60
|
Facebook,
|
46
61
|
Youtube,
|
47
|
-
Line
|
48
|
-
IconCommunity,
|
49
|
-
IconEvents,
|
50
|
-
IconGroups
|
62
|
+
Line
|
51
63
|
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<template>
|
2
|
+
<svg
|
3
|
+
width="17"
|
4
|
+
height="16"
|
5
|
+
viewBox="0 0 17 16"
|
6
|
+
fill="none"
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
8
|
+
>
|
9
|
+
<path
|
10
|
+
:fill="fill"
|
11
|
+
fill-rule="evenodd"
|
12
|
+
clip-rule="evenodd"
|
13
|
+
d="M8.48828 14.4941C10.2122 14.4941 11.8655 13.8093 13.0845 12.5903C14.3035 11.3713 14.9883 9.71805 14.9883 7.99414C14.9883 6.27023 14.3035 4.61693 13.0845 3.39795C11.8655 2.17896 10.2122 1.49414 8.48828 1.49414C6.76437 1.49414 5.11107 2.17896 3.89209 3.39795C2.6731 4.61693 1.98828 6.27023 1.98828 7.99414C1.98828 9.71805 2.6731 11.3713 3.89209 12.5903C5.11107 13.8093 6.76437 14.4941 8.48828 14.4941ZM14.1451 13.651C12.6448 15.1513 10.61 15.9941 8.48828 15.9941C6.36655 15.9941 4.33172 15.1513 2.83143 13.651C1.33114 12.1507 0.488281 10.1159 0.488281 7.99414C0.488281 5.87241 1.33114 3.83758 2.83143 2.33729C4.33172 0.836995 6.36655 -0.00585938 8.48828 -0.00585938C10.61 -0.00585938 12.6448 0.836995 14.1451 2.33729C15.6454 3.83758 16.4883 5.87241 16.4883 7.99414C16.4883 10.1159 15.6454 12.1507 14.1451 13.651Z"
|
14
|
+
/>
|
15
|
+
<path
|
16
|
+
:fill="fill"
|
17
|
+
d="M7.23828 10.4941H7.98828V8.49414H7.23828C6.82266 8.49414 6.48828 8.15977 6.48828 7.74414C6.48828 7.32852 6.82266 6.99414 7.23828 6.99414H8.73828C9.15391 6.99414 9.48828 7.32852 9.48828 7.74414V10.4941H9.73828C10.1539 10.4941 10.4883 10.8285 10.4883 11.2441C10.4883 11.6598 10.1539 11.9941 9.73828 11.9941H7.23828C6.82266 11.9941 6.48828 11.6598 6.48828 11.2441C6.48828 10.8285 6.82266 10.4941 7.23828 10.4941Z"
|
18
|
+
/>
|
19
|
+
<path
|
20
|
+
:fill="fill"
|
21
|
+
d="M8.48828 3.99414C8.7535 3.99414 9.00785 4.0995 9.19539 4.28703C9.38292 4.47457 9.48828 4.72892 9.48828 4.99414C9.48828 5.25936 9.38292 5.51371 9.19539 5.70125C9.00785 5.88878 8.7535 5.99414 8.48828 5.99414C8.22306 5.99414 7.96871 5.88878 7.78117 5.70125C7.59364 5.51371 7.48828 5.25936 7.48828 4.99414C7.48828 4.72892 7.59364 4.47457 7.78117 4.28703C7.96871 4.0995 8.22306 3.99414 8.48828 3.99414Z"
|
22
|
+
/>
|
23
|
+
</svg>
|
24
|
+
</template>
|
25
|
+
|
26
|
+
<script setup>
|
27
|
+
const props = defineProps({
|
28
|
+
fill: {
|
29
|
+
type: String,
|
30
|
+
default: {
|
31
|
+
position: 'rgb(var(--black))'
|
32
|
+
}
|
33
|
+
}
|
34
|
+
})
|
35
|
+
</script>
|
36
|
+
|
37
|
+
|
@@ -7,24 +7,18 @@ const middlewareFactory = (db) => {
|
|
7
7
|
const verifyToken = async (req, res, next) => {
|
8
8
|
try {
|
9
9
|
console.log(req.cookies);
|
10
|
+
|
11
|
+
let user = JSON.parse(req.cookies.user);
|
12
|
+
let token = req.headers["x-access-token"] || user.accessToken;
|
10
13
|
|
11
|
-
if (
|
12
|
-
|
13
|
-
let user = JSON.parse(req.cookies.user);
|
14
|
-
let token = req.headers["x-access-token"] || user.accessToken;
|
15
|
-
|
16
|
-
if (!token) {
|
17
|
-
return res.status(403).send({ message: "No token provided!" });
|
18
|
-
}
|
19
|
-
|
20
|
-
const decoded = jwt.verify(token, process.env.SECRET_KEY);
|
21
|
-
req.userId = decoded.id;
|
22
|
-
|
23
|
-
console.log('success');
|
24
|
-
} else {
|
25
|
-
console.log('unsuccess');
|
14
|
+
if (!token) {
|
15
|
+
return res.status(403).send({ message: "No token provided!" });
|
26
16
|
}
|
27
17
|
|
18
|
+
const decoded = jwt.verify(token, process.env.SECRET_KEY);
|
19
|
+
req.userId = decoded.id;
|
20
|
+
|
21
|
+
console.log('success');
|
28
22
|
next();
|
29
23
|
} catch (err) {
|
30
24
|
console.log(err);
|