-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance share extension with HTML and view
- Loading branch information
1 parent
9c7451f
commit 60f435f
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
define(['./share.xml', 'engine/configuration/extensions/share/'], function(shareTemplate, shareConfig) { | ||
|
||
var shareVue = new Vue({ | ||
template: shareTemplate, | ||
data: { | ||
shares: shareConfig.value.shares || [] | ||
} | ||
}); | ||
|
||
addPageComponent(shareVue, 'share'); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<app-page id="share" title="Share"> | ||
<template slot="bar-right"> | ||
<button v-on:click="app.toPage('extension', 'share')" title="Configuration"><i class="fas fa-cog"></i></button> | ||
</template> | ||
<article> | ||
<div class="tile-container"> | ||
<template v-for="share in shares"> | ||
<div class="tile"> | ||
<div class="bar"> | ||
<a :href="share.name + '/'">{{ share.name }}</span> | ||
</div> | ||
</div> | ||
</template> | ||
</div> | ||
</article> | ||
</app-page> |