@live-change/peer-connection-frontend 0.0.3
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/e2e/codecept.conf.js +60 -0
- package/e2e/steps.d.ts +12 -0
- package/e2e/steps_file.js +11 -0
- package/front/index.html +11 -0
- package/front/public/favicon.ico +0 -0
- package/front/public/images/empty-photo.svg +38 -0
- package/front/public/images/empty-user-photo.svg +33 -0
- package/front/public/images/logo.svg +34 -0
- package/front/public/images/logo128.png +0 -0
- package/front/src/App.vue +84 -0
- package/front/src/NavBar.vue +105 -0
- package/front/src/Page.vue +47 -0
- package/front/src/components/Debugger.vue +378 -0
- package/front/src/components/Peer.js +329 -0
- package/front/src/components/PeerConnection.js +329 -0
- package/front/src/components/userMedia.js +51 -0
- package/front/src/entry-client.js +24 -0
- package/front/src/entry-server.js +59 -0
- package/front/src/main.js +60 -0
- package/front/src/router.js +63 -0
- package/front/vite.config.js +118 -0
- package/package.json +73 -0
- package/server/init.js +7 -0
- package/server/services.config.js +25 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const { devices } = require('playwright')
|
|
2
|
+
|
|
3
|
+
const testServerPort = process.env.TEST_URL ? 0 : require('get-port-sync')()
|
|
4
|
+
const testServerUrl = process.env.TEST_URL || `http://localhost:${testServerPort}`
|
|
5
|
+
|
|
6
|
+
const device = devices['Pixel 2']
|
|
7
|
+
|
|
8
|
+
exports.config = {
|
|
9
|
+
tests: './*.test.js',
|
|
10
|
+
output: './output',
|
|
11
|
+
helpers: {
|
|
12
|
+
LiveChange: {
|
|
13
|
+
require: '@live-change/codeceptjs-helper',
|
|
14
|
+
startServer: !process.env.TEST_URL,
|
|
15
|
+
enableSessions: true,
|
|
16
|
+
initScript: "./init.js",
|
|
17
|
+
port: testServerPort,
|
|
18
|
+
dev: true
|
|
19
|
+
},
|
|
20
|
+
VideoHelper: {
|
|
21
|
+
require: 'codeceptjs-video-helper'
|
|
22
|
+
},
|
|
23
|
+
AssertWrapper : {
|
|
24
|
+
require: "codeceptjs-assert"
|
|
25
|
+
},
|
|
26
|
+
Playwright: {
|
|
27
|
+
browser: 'chromium',
|
|
28
|
+
url: testServerUrl,
|
|
29
|
+
show: true,
|
|
30
|
+
emulate: {
|
|
31
|
+
...device,
|
|
32
|
+
recordVideo: process.env.RECORD_TESTS ? {
|
|
33
|
+
dir: "./output",
|
|
34
|
+
//size: { width: 1080, height: 1920 }
|
|
35
|
+
} : undefined,
|
|
36
|
+
},
|
|
37
|
+
chromium: {
|
|
38
|
+
args: [`--force-device-scale-factor=${device.deviceScaleFactor}`]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
include: {
|
|
43
|
+
I: './steps_file.js'
|
|
44
|
+
},
|
|
45
|
+
bootstrap: null,
|
|
46
|
+
mocha: {},
|
|
47
|
+
name: 'e2e',
|
|
48
|
+
plugins: {
|
|
49
|
+
pauseOnFail: {},
|
|
50
|
+
retryFailedStep: {
|
|
51
|
+
enabled: true
|
|
52
|
+
},
|
|
53
|
+
tryTo: {
|
|
54
|
+
enabled: true
|
|
55
|
+
},
|
|
56
|
+
screenshotOnFail: {
|
|
57
|
+
enabled: true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/e2e/steps.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types='codeceptjs' />
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
type steps_file = typeof import('./steps_file.js');
|
|
4
|
+
|
|
5
|
+
declare namespace CodeceptJS {
|
|
6
|
+
interface SupportObject { I: I, current: any }
|
|
7
|
+
interface Methods extends Playwright {}
|
|
8
|
+
interface I extends ReturnType<steps_file> {}
|
|
9
|
+
namespace Translation {
|
|
10
|
+
interface Actions {}
|
|
11
|
+
}
|
|
12
|
+
}
|
package/front/index.html
ADDED
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
version="1.1"
|
|
6
|
+
id="Layer_1"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
width="512px"
|
|
10
|
+
height="512px"
|
|
11
|
+
viewBox="0 0 512 512"
|
|
12
|
+
enable-background="new 0 0 512 512"
|
|
13
|
+
xml:space="preserve"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
16
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
17
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
18
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
|
19
|
+
id="metadata9"><rdf:RDF><cc:Work
|
|
20
|
+
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
21
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
|
22
|
+
id="defs7" />
|
|
23
|
+
<rect
|
|
24
|
+
style="fill:#dbdbdb;fill-opacity:1;stroke:none;stroke-width:1.88976383;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
25
|
+
id="rect821"
|
|
26
|
+
width="512.54236"
|
|
27
|
+
height="512.54236"
|
|
28
|
+
x="0.54237288"
|
|
29
|
+
y="0.54237235" />
|
|
30
|
+
<path
|
|
31
|
+
style="fill:#f6f6f6;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
32
|
+
d="M 0.54237288,470.23729 125.83051,306.44068 l 60.20339,70.50847 130.71186,-174.10169 195.79661,261.42373 0.54235,48.81353 H 0.54237288 Z"
|
|
33
|
+
id="path816" /><circle
|
|
34
|
+
style="fill:#f6f6f6;fill-opacity:1;stroke:none;stroke-width:4.80000019;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
35
|
+
id="path818"
|
|
36
|
+
cx="118.50848"
|
|
37
|
+
cy="106.57627"
|
|
38
|
+
r="57.762711" /></svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
version="1.1"
|
|
6
|
+
id="Layer_1"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
width="512px"
|
|
10
|
+
height="512px"
|
|
11
|
+
viewBox="0 0 512 512"
|
|
12
|
+
enable-background="new 0 0 512 512"
|
|
13
|
+
xml:space="preserve"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
16
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
17
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
18
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata
|
|
19
|
+
id="metadata9"><rdf:RDF><cc:Work
|
|
20
|
+
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
|
21
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
|
22
|
+
id="defs7" />
|
|
23
|
+
<rect
|
|
24
|
+
style="fill:#dbdbdb;fill-opacity:1;stroke:none;stroke-width:1.88976383;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
25
|
+
id="rect821"
|
|
26
|
+
width="512.54236"
|
|
27
|
+
height="512.54236"
|
|
28
|
+
x="0.54237288"
|
|
29
|
+
y="0.54237235" /><path
|
|
30
|
+
d="m 313.14122,310.64877 c 9.02181,-8.85097 12.15686,-31.23733 20.41627,-39.3056 11.69771,-11.43183 24.39381,-25.50218 27.98588,-43.06851 4.82003,-23.34203 -4.96846,-26.30516 -4.96846,-34.3713 0,-16.90002 -0.15376,-44.65739 -5.43081,-62.68607 -0.30326,-23.7809 -4.20499,-34.123578 -12.38858,-43.031138 -7.72017,-8.33522 -26.68637,-6.366203 -36.59125,-11.85361 C 286.83605,67.825407 274.23818,64.594254 258.15823,64.17461 v -0.09503 c -0.47624,0 -0.93539,0.05659 -1.41162,0.05659 -0.78484,0 -1.53123,-0.05659 -2.35343,-0.05659 l 0.0395,0.151627 c -39.17105,1.472492 -80.84608,26.170627 -95.16524,65.895863 -5.31335,14.71958 -3.28881,46.87521 -3.28881,63.77522 0,8.06721 -9.78742,11.02927 -4.96846,34.37131 3.61129,17.56632 16.28817,31.63668 27.98588,43.06851 8.26048,8.06827 11.39446,30.45462 20.39705,39.30559 1.96902,13.0378 2.1986,9.31012 2.12278,21.23954 -0.0203,4.03307 0.11426,10.28502 -6.32669,16.4398 -12.17822,11.6614 -40.14595,36.95324 -63.08756,46.79832 -30.24,12.98014 -79.41203,33.74237 -90.746691,39.59069 -11.334661,5.84833 -41.2532541,21.69763 -41.2532541,31.79045 0,10.11417 0,47.33542 0,47.33542 h 253.3742451 5.79494 253.37318 c 0,0 0,-37.22125 0,-47.33542 0,-10.09282 -29.89723,-25.94212 -41.25645,-31.79045 -11.35389,-5.84938 -60.48321,-26.61055 -90.72641,-39.59069 -22.32976,-9.57707 -49.43685,-33.81712 -62.09344,-45.84158 -4.2808,-4.05228 -7.3016,-8.29784 -7.3411,-18.62023 -0.0737,-12.00417 0.23278,-7.41692 2.14306,-20.01478"
|
|
31
|
+
id="path2"
|
|
32
|
+
style="clip-rule:evenodd;fill-rule:evenodd;stroke-width:1.06779659;fill:#f6f6f6;fill-opacity:1" />
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
width="512"
|
|
4
|
+
height="512"
|
|
5
|
+
viewBox="0 0 135.46667 135.46667"
|
|
6
|
+
version="1.1"
|
|
7
|
+
id="svg977"
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
11
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
12
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
13
|
+
<defs
|
|
14
|
+
id="defs971" />
|
|
15
|
+
<metadata
|
|
16
|
+
id="metadata974">
|
|
17
|
+
<rdf:RDF>
|
|
18
|
+
<cc:Work
|
|
19
|
+
rdf:about="">
|
|
20
|
+
<dc:format>image/svg+xml</dc:format>
|
|
21
|
+
<dc:type
|
|
22
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
23
|
+
</cc:Work>
|
|
24
|
+
</rdf:RDF>
|
|
25
|
+
</metadata>
|
|
26
|
+
<g
|
|
27
|
+
id="layer1"
|
|
28
|
+
style="fill:#666666">
|
|
29
|
+
<path
|
|
30
|
+
style="fill:#666666;fill-opacity:1;stroke:none;stroke-width:2.70907px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
|
31
|
+
d="M 54.181439,13.558436 67.726801,0.01304296 135.45359,67.739804 67.726801,135.46667 29.799793,97.539626 V 65.030766 L 13.545362,81.285197 0,67.739804 40.636077,27.103727 81.272154,67.739804 67.726801,81.285197 51.472371,65.030766 V 92.12155 l 16.25443,16.25433 40.636069,-40.636076 z"
|
|
32
|
+
id="path892" />
|
|
33
|
+
</g>
|
|
34
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<router-view v-slot="{ route, Component }">
|
|
3
|
+
<template v-if="route?.meta?.raw">
|
|
4
|
+
<component :is="Component" />
|
|
5
|
+
</template>
|
|
6
|
+
<loading-zone v-else suspense @isLoading="l => loading = l">
|
|
7
|
+
<template v-slot:loading>
|
|
8
|
+
<div class="fixed w-full h-full flex align-items-center justify-content-center top-0 left-0">
|
|
9
|
+
<ProgressSpinner animationDuration=".5s"/>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<template v-slot:default="{ isLoading }">
|
|
13
|
+
<page :loading="loading" :working="working">
|
|
14
|
+
<working-zone @isWorking="w => working = w">
|
|
15
|
+
<template v-slot:working>
|
|
16
|
+
<div class="fixed w-full h-full flex align-items-center justify-content-center top-0 left-0">
|
|
17
|
+
<ProgressSpinner animationDuration=".5s"/>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
<template v-slot:default="{ isWorking }">
|
|
21
|
+
<component :is="Component"
|
|
22
|
+
:style="isWorking || isLoading ? 'filter: blur(4px)' : ''"
|
|
23
|
+
class="working-blur" />
|
|
24
|
+
</template>
|
|
25
|
+
</working-zone>
|
|
26
|
+
</page>
|
|
27
|
+
</template>
|
|
28
|
+
</loading-zone>
|
|
29
|
+
</router-view>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script setup>
|
|
33
|
+
import 'primevue/resources/primevue.min.css'
|
|
34
|
+
import 'primevue/resources/themes/vela-orange/theme.css'
|
|
35
|
+
import 'primeflex/primeflex.css'
|
|
36
|
+
import 'primeicons/primeicons.css'
|
|
37
|
+
|
|
38
|
+
import ProgressSpinner from 'primevue/progressspinner'
|
|
39
|
+
|
|
40
|
+
import { useMeta } from 'vue-meta'
|
|
41
|
+
import Page from "./Page.vue"
|
|
42
|
+
|
|
43
|
+
const { meta } = useMeta({
|
|
44
|
+
title: 'Title',
|
|
45
|
+
meta: [
|
|
46
|
+
{ charset: 'utf-8' },
|
|
47
|
+
{ name: 'viewport',
|
|
48
|
+
content: "user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1," +
|
|
49
|
+
" width=device-width, viewport-fit=cover" }
|
|
50
|
+
],
|
|
51
|
+
htmlAttrs: {
|
|
52
|
+
lang: 'en',
|
|
53
|
+
amp: true
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
import { ref } from 'vue'
|
|
58
|
+
const working = ref(false)
|
|
59
|
+
const loading = ref(false)
|
|
60
|
+
|
|
61
|
+
import { watch } from 'vue'
|
|
62
|
+
import { client as useClient } from '@live-change/vue3-ssr'
|
|
63
|
+
const client = useClient()
|
|
64
|
+
watch(client, (newClient, oldClient) => {
|
|
65
|
+
console.log("WATCH CLIENT", oldClient, '=>', newClient)
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<style>
|
|
71
|
+
body {
|
|
72
|
+
margin: 0;
|
|
73
|
+
height: 100%;
|
|
74
|
+
overflow-x: hidden;
|
|
75
|
+
overflow-y: auto;
|
|
76
|
+
background-color: var(--surface-a);
|
|
77
|
+
font-family: var(--font-family);
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
color: var(--text-color);
|
|
80
|
+
}
|
|
81
|
+
.working-blur {
|
|
82
|
+
transition: filter 0.3s;
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="surface-overlay py-3 px-6 shadow-2 flex align-items-center justify-content-between
|
|
3
|
+
relative md:sticky top-0 z-5"
|
|
4
|
+
style="min-height: 80px" key="navbar">
|
|
5
|
+
<img src="/images/logo.svg" alt="Image" height="40" class="mr-0 lg:mr-6">
|
|
6
|
+
<a v-ripple class="cursor-pointer block lg:hidden text-700 p-ripple"
|
|
7
|
+
v-styleclass="{ selector: '@next', enterClass: 'hidden', leaveToClass: 'hidden', hideOnOutsideClick: true }">
|
|
8
|
+
<i class="pi pi-bars text-4xl"></i>
|
|
9
|
+
</a>
|
|
10
|
+
<div class="align-items-center flex-grow-1 justify-content-between hidden lg:flex absolute lg:static w-full surface-overlay left-0 top-100 z-1 shadow-2 lg:shadow-none">
|
|
11
|
+
<ul class="list-none p-0 m-0 flex lg:align-items-center select-none flex-column lg:flex-row">
|
|
12
|
+
<li>
|
|
13
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center text-600 hover:text-900 hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
14
|
+
<i class="pi pi-home mr-2"></i>
|
|
15
|
+
<span>Home</span>
|
|
16
|
+
</a>
|
|
17
|
+
</li>
|
|
18
|
+
<li class="lg:relative">
|
|
19
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center text-600 hover:text-900 hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple"
|
|
20
|
+
v-styleclass="{ selector: '@next', enterClass: 'hidden', enterActiveClass: 'scalein', leaveToClass: 'hidden', leaveActiveClass: 'fadeout', hideOnOutsideClick: true }">
|
|
21
|
+
<i class="pi pi-users mr-2"></i>
|
|
22
|
+
<span>Customers</span>
|
|
23
|
+
<i class="pi pi-angle-down ml-auto lg:ml-3"></i>
|
|
24
|
+
</a>
|
|
25
|
+
<ul class="list-none py-3 px-6 m-0 lg:px-0 lg:py-0 border-round shadow-0 lg:shadow-2 lg:border-1 border-50 lg:absolute surface-overlay hidden origin-top w-full lg:w-15rem cursor-pointer">
|
|
26
|
+
<li>
|
|
27
|
+
<a v-ripple class="flex p-3 align-items-center text-600 hover:text-900 hover:surface-100 transition-colors transition-duration-150 p-ripple">
|
|
28
|
+
<i class="pi pi-user-plus mr-2"></i>
|
|
29
|
+
<span class="font-medium">Add New</span>
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
<li class="relative">
|
|
33
|
+
<a v-ripple class="flex p-3 align-items-center text-600 hover:text-900 hover:surface-100 transition-colors transition-duration-150 p-ripple"
|
|
34
|
+
v-styleclass="{ selector: '@next', enterClass: 'hidden', enterActiveClass: 'scalein', leaveToClass: 'hidden', leaveActiveClass: 'fadeout', hideOnOutsideClick: true }">
|
|
35
|
+
<i class="pi pi-search mr-2"></i>
|
|
36
|
+
<span class="font-medium">Search</span>
|
|
37
|
+
<i class="pi pi-angle-down ml-auto lg:-rotate-90"></i>
|
|
38
|
+
</a>
|
|
39
|
+
<ul class="list-none py-3 pl-3 m-0 lg:px-0 lg:py-0 border-round shadow-0 lg:shadow-2 lg:border-1 border-50 lg:absolute surface-overlay hidden origin-top w-full lg:w-15rem cursor-pointer left-100 top-0">
|
|
40
|
+
<li>
|
|
41
|
+
<a v-ripple class="flex p-3 align-items-center text-600 hover:text-900 hover:surface-100 transition-colors transition-duration-150 p-ripple">
|
|
42
|
+
<i class="pi pi-shopping-cart mr-2"></i>
|
|
43
|
+
<span class="font-medium">Purchases</span>
|
|
44
|
+
</a>
|
|
45
|
+
</li>
|
|
46
|
+
<li class="relative">
|
|
47
|
+
<a v-ripple class="flex p-3 align-items-center text-600 hover:text-900 hover:surface-100 transition-colors transition-duration-150 p-ripple">
|
|
48
|
+
<i class="pi pi-comments mr-2"></i>
|
|
49
|
+
<span class="font-medium">Messages</span>
|
|
50
|
+
</a>
|
|
51
|
+
</li>
|
|
52
|
+
</ul>
|
|
53
|
+
</li>
|
|
54
|
+
</ul>
|
|
55
|
+
</li>
|
|
56
|
+
<li>
|
|
57
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center text-600 hover:text-900 hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
58
|
+
<i class="pi pi-calendar mr-2"></i>
|
|
59
|
+
<span>Calendar</span>
|
|
60
|
+
</a>
|
|
61
|
+
</li>
|
|
62
|
+
<li>
|
|
63
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center text-600 hover:text-900 hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
64
|
+
<i class="pi pi-chart-line mr-2"></i>
|
|
65
|
+
<span>Stats</span>
|
|
66
|
+
</a>
|
|
67
|
+
</li>
|
|
68
|
+
</ul>
|
|
69
|
+
<ul class="list-none p-0 m-0 flex lg:align-items-center select-none flex-column lg:flex-row border-top-1 surface-border lg:border-top-none">
|
|
70
|
+
<li>
|
|
71
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center text-600 hover:text-900 hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
72
|
+
<i class="pi pi-inbox text-base lg:text-2xl mr-2 lg:mr-0"></i>
|
|
73
|
+
<span class="block lg:hidden font-medium">Inbox</span>
|
|
74
|
+
</a>
|
|
75
|
+
</li>
|
|
76
|
+
<li>
|
|
77
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-3 align-items-center text-600 hover:text-900 hover:surface-100
|
|
78
|
+
font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
79
|
+
<i class="pi pi-bell text-base lg:text-2xl mr-2 lg:mr-0 p-overlay-badge">
|
|
80
|
+
<Badge value="2"></Badge>
|
|
81
|
+
</i>
|
|
82
|
+
<span class="block lg:hidden font-medium">Notifications</span>
|
|
83
|
+
</a>
|
|
84
|
+
</li>
|
|
85
|
+
<li class="border-top-1 surface-border lg:border-top-none">
|
|
86
|
+
<a v-ripple class="flex px-6 p-3 lg:px-3 lg:py-2 align-items-center hover:surface-100 font-medium border-round cursor-pointer transition-colors transition-duration-150 p-ripple">
|
|
87
|
+
<img src="/images/empty-user-photo.svg" class="mr-3 lg:mr-0 border-circle" style="width: 28px; height: 28px"/>
|
|
88
|
+
<div class="block lg:hidden">
|
|
89
|
+
<div class="text-900 font-medium">Josephine Lillard</div>
|
|
90
|
+
<span class="text-600 font-medium text-sm">Marketing Specialist</span>
|
|
91
|
+
</div>
|
|
92
|
+
</a>
|
|
93
|
+
</li>
|
|
94
|
+
</ul>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</template>
|
|
98
|
+
|
|
99
|
+
<script setup>
|
|
100
|
+
import Badge from "primevue/badge"
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped>
|
|
104
|
+
|
|
105
|
+
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="min-h-screen flex flex-column surface-ground">
|
|
3
|
+
<NavBar></NavBar>
|
|
4
|
+
<ConfirmPopup v-if="isMounted"></ConfirmPopup>
|
|
5
|
+
<Toast v-if="isMounted"></Toast>
|
|
6
|
+
<div class="relative h-0 w-full">
|
|
7
|
+
<ProgressBar v-if="loading || working" mode="indeterminate" style="height: .2em" />
|
|
8
|
+
</div>
|
|
9
|
+
<div v-if="pageType == 'simple'" class="p-5 flex flex-column flex-auto align-items-center">
|
|
10
|
+
<slot></slot>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if="pageType == 'wide'">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup>
|
|
19
|
+
import ProgressBar from "primevue/progressbar"
|
|
20
|
+
|
|
21
|
+
import ConfirmPopup from 'primevue/confirmpopup'
|
|
22
|
+
import Toast from 'primevue/toast'
|
|
23
|
+
|
|
24
|
+
import NavBar from "./NavBar.vue"
|
|
25
|
+
|
|
26
|
+
import { onMounted, ref } from 'vue'
|
|
27
|
+
const isMounted = ref(false)
|
|
28
|
+
onMounted(() => isMounted.value = true)
|
|
29
|
+
|
|
30
|
+
const { working, loading } = defineProps({
|
|
31
|
+
working: {
|
|
32
|
+
type: Boolean
|
|
33
|
+
},
|
|
34
|
+
loading: {
|
|
35
|
+
type: Boolean
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
console.log("SETUP PAGE!!!")
|
|
40
|
+
|
|
41
|
+
import { computed } from 'vue'
|
|
42
|
+
import { useRoute } from 'vue-router'
|
|
43
|
+
const route = useRoute()
|
|
44
|
+
|
|
45
|
+
const pageType = computed(() => route.meta.pageType ?? 'simple' )
|
|
46
|
+
|
|
47
|
+
</script>
|