|
@@ -4,6 +4,7 @@
|
|
|
<div
|
|
|
class="syno-sds-appview syno-sds-appview-animate"
|
|
|
style="width: 100%; height: 100%"
|
|
|
+ :style="{display:display}"
|
|
|
>
|
|
|
<div class="syno-sds-appview-container">
|
|
|
<div class="search-field" style="width: 278px">
|
|
@@ -12,6 +13,7 @@
|
|
|
size="16"
|
|
|
placeholder="搜索"
|
|
|
class="search-field-input"
|
|
|
+ @click.stop="searchInputFocus"
|
|
|
/>
|
|
|
<button
|
|
|
type="button"
|
|
@@ -25,7 +27,7 @@
|
|
|
<div class="shortcut-zone right-zone" style="width: 13%"></div>
|
|
|
</div>
|
|
|
<div class="sds-app-panel">
|
|
|
- <div class="v-ps ps ps--active-y">
|
|
|
+ <div class="v-ps ps ps--active-y" v-if="DesktopAppViewDetail.detailMessageList.length">
|
|
|
<div class="app-layout-wrapper" style="width: 74%; height: 100%">
|
|
|
<div
|
|
|
class="sds-desktop-layout search-layout"
|
|
@@ -34,12 +36,15 @@
|
|
|
<div class="sds-desktop-layout">
|
|
|
<li
|
|
|
class="launch-icon app-item-icon"
|
|
|
- v-for="(detailMessage,detailMessageIndex) in DesktopAppViewDetail.detailMessageList"
|
|
|
+ v-for="
|
|
|
+ detailMessage in DesktopAppViewDetail.detailMessageList"
|
|
|
:key="detailMessage.id"
|
|
|
>
|
|
|
<div
|
|
|
class="image"
|
|
|
- :style="{backgroundImage: `url(${detailMessage.titleImgUrl})`}"
|
|
|
+ :style="{
|
|
|
+ backgroundImage: `url(${detailMessage.titleImgUrl})`,
|
|
|
+ }"
|
|
|
>
|
|
|
<div
|
|
|
class="sds-application-notify-badge-num"
|
|
@@ -47,7 +52,7 @@
|
|
|
></div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="text">{{detailMessage.title}}</div>
|
|
|
+ <div class="text">{{ detailMessage.title }}</div>
|
|
|
</li>
|
|
|
<!-- <li
|
|
|
class="launch-icon app-item-icon"
|
|
@@ -592,6 +597,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="sds-desktop-no-result" v-else>
|
|
|
+ 找不到符合的项目。
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -607,8 +615,8 @@ export default {
|
|
|
id: 0,
|
|
|
title: "控制中心",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/controlCenter.png",
|
|
|
-
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/controlCenter.png",
|
|
|
},
|
|
|
{
|
|
|
id: 1,
|
|
@@ -626,49 +634,57 @@ export default {
|
|
|
id: 3,
|
|
|
title: "资源监控",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/resourceMonitor.png",
|
|
|
- },
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/resourceMonitor.png",
|
|
|
+ },
|
|
|
{
|
|
|
id: 4,
|
|
|
title: "存储管理器",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/storageManager.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/storageManager.png",
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
title: "日志中心",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/logCenter.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/logCenter.png",
|
|
|
},
|
|
|
{
|
|
|
id: 6,
|
|
|
title: "安全顾问",
|
|
|
spacialCls: "file",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/securityScan.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/securityScan.png",
|
|
|
},
|
|
|
{
|
|
|
id: 7,
|
|
|
title: "技术支持中心",
|
|
|
spacialCls: "question",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/supportCenter.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/supportCenter.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 8,
|
|
|
title: "Storage Manager",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/storageManager.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/storageManager.png",
|
|
|
},
|
|
|
{
|
|
|
id: 9,
|
|
|
title: "Synology MailPlus Server",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/mailPlusServer.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/mailPlusServer.png",
|
|
|
},
|
|
|
{
|
|
|
id: 10,
|
|
|
title: "Synology Chat 管理控制台",
|
|
|
spacialCls: "file",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/chatAdminpng.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/chatAdminpng.png",
|
|
|
},
|
|
|
{
|
|
|
id: 11,
|
|
@@ -676,7 +692,7 @@ export default {
|
|
|
spacialCls: "question",
|
|
|
titleImgUrl: "../../../../public/image/DesktopAppView/chat.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 12,
|
|
|
title: "File Station",
|
|
|
spacialCls: "file",
|
|
@@ -686,7 +702,8 @@ export default {
|
|
|
id: 13,
|
|
|
title: "Hyper Backup",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/hyperBackup.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/hyperBackup.png",
|
|
|
},
|
|
|
{
|
|
|
id: 14,
|
|
@@ -698,9 +715,10 @@ export default {
|
|
|
id: 15,
|
|
|
title: "Synology Calendar",
|
|
|
spacialCls: "question",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/synologyCalendar.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/synologyCalendar.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 16,
|
|
|
title: "Synology Contacts",
|
|
|
spacialCls: "tjCenter",
|
|
@@ -710,7 +728,8 @@ export default {
|
|
|
id: 17,
|
|
|
title: "Universal Search",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/universalSearch.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/universalSearch.png",
|
|
|
},
|
|
|
{
|
|
|
id: 18,
|
|
@@ -722,25 +741,29 @@ export default {
|
|
|
id: 19,
|
|
|
title: "Audio Station",
|
|
|
spacialCls: "question",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/audioStation.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/audioStation.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 20,
|
|
|
title: "Synology Drive 管理控制台",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/driveAdminConsole.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/driveAdminConsole.png",
|
|
|
},
|
|
|
{
|
|
|
id: 21,
|
|
|
title: "Download Station",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/downloadStation.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/downloadStation.png",
|
|
|
},
|
|
|
{
|
|
|
id: 22,
|
|
|
title: "Synology Drive",
|
|
|
spacialCls: "file",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/synologyDrive.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/synologyDrive.png",
|
|
|
},
|
|
|
{
|
|
|
id: 23,
|
|
@@ -748,32 +771,36 @@ export default {
|
|
|
spacialCls: "question",
|
|
|
titleImgUrl: "../../../../public/image/DesktopAppView/mailPlus.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 24,
|
|
|
title: "媒体服务器",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/mediaServer.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/mediaServer.png",
|
|
|
},
|
|
|
{
|
|
|
id: 25,
|
|
|
-
|
|
|
+
|
|
|
title: "Note Station",
|
|
|
spacialCls: "question",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/noteStation.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/noteStation.png",
|
|
|
},
|
|
|
{
|
|
|
id: 26,
|
|
|
title: "OAuth Service",
|
|
|
spacialCls: "controlCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/authenticator.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/authenticator.png",
|
|
|
},
|
|
|
{
|
|
|
id: 27,
|
|
|
title: "PDF 查看器",
|
|
|
spacialCls: "tjCenter",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/documentViewer.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/documentViewer.png",
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
id: 28,
|
|
|
title: "Synology Drive ShareSync",
|
|
|
spacialCls: "file",
|
|
@@ -783,39 +810,79 @@ export default {
|
|
|
id: 29,
|
|
|
title: "Video Station",
|
|
|
spacialCls: "file",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/videoStation.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/videoStation.png",
|
|
|
},
|
|
|
{
|
|
|
id: 30,
|
|
|
title: "文本编辑器",
|
|
|
spacialCls: "file",
|
|
|
- titleImgUrl: "../../../../public/image/DesktopAppView/textEditor.png",
|
|
|
+ titleImgUrl:
|
|
|
+ "../../../../public/image/DesktopAppView/textEditor.png",
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ display: 'none',
|
|
|
};
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ this.$bus.on("showAppView",this.showAppView)
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ // 显示appView页面
|
|
|
+ showAppView(){
|
|
|
+ this.display = 'block'
|
|
|
+ this.$bus.emit('appViewIsOpen',true)
|
|
|
+ window.onclick = ()=>{
|
|
|
+ this.display = 'none'
|
|
|
+ this.$bus.emit('appViewIsOpen',false)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 搜索框聚焦
|
|
|
+ searchInputFocus(e){
|
|
|
+ if(! e.srcElement.parentElement.className.includes('search-field-focused'))
|
|
|
+ console.log(e.srcElement.parentElement.className += ' search-field-focused')
|
|
|
+ }
|
|
|
+ //
|
|
|
+ },
|
|
|
components: {},
|
|
|
- name:'DesktopAppView',
|
|
|
+ name: "DesktopAppView",
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="css" scoped>
|
|
|
- .sds-desktop-layout {
|
|
|
- flex-direction: row;
|
|
|
- overflow:-moz-scrollbars-none;
|
|
|
- }
|
|
|
- .app-layout-wrapper::-webkit-scrollbar { width: 0 !important }
|
|
|
-
|
|
|
- .app-layout-wrapper{
|
|
|
- overflow: scroll;
|
|
|
- }
|
|
|
-
|
|
|
- .syno-sds-appview .sds-app-panel .sds-desktop-layout{
|
|
|
- justify-content: space-around;
|
|
|
- }
|
|
|
-
|
|
|
- .syno-sds-appview .sds-app-panel .sds-desktop-layout .app-item-icon{
|
|
|
- align-self: flex-start;
|
|
|
- }
|
|
|
+.sds-desktop-layout {
|
|
|
+ display: grid;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+ grid-template-columns: repeat(auto-fill, 172px);
|
|
|
+ overflow: -moz-scrollbars-none;
|
|
|
+}
|
|
|
+.app-layout-wrapper::-webkit-scrollbar {
|
|
|
+ width: 0 !important;
|
|
|
+}
|
|
|
+
|
|
|
+.app-layout-wrapper {
|
|
|
+ overflow: scroll;
|
|
|
+}
|
|
|
+
|
|
|
+.syno-sds-appview .sds-app-panel .sds-desktop-layout {
|
|
|
+ justify-content: space-around;
|
|
|
+}
|
|
|
+
|
|
|
+.syno-sds-appview .sds-app-panel .sds-desktop-layout .app-item-icon {
|
|
|
+ align-self: flex-start;
|
|
|
+}
|
|
|
+
|
|
|
+.search-field input::-webkit-input-placeholder {
|
|
|
+ color: rgb(102 111 122);
|
|
|
+}
|
|
|
+
|
|
|
+.search-field input:-moz-placeholder {
|
|
|
+ color: rgb(102 111 122);
|
|
|
+}
|
|
|
+
|
|
|
+.search-field input:-ms-input-placeholder {
|
|
|
+ color: rgb(102 111 122);
|
|
|
+}
|
|
|
</style>
|