-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code to get the content for the addons page.
- Loading branch information
Showing
23 changed files
with
365 additions
and
28 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
45 changes: 39 additions & 6 deletions
45
uSync8.BackOffice/App_Plugins/uSync8/settings/expansion.html
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 |
---|---|---|
@@ -1,6 +1,39 @@ | ||
<umb-box> | ||
<umb-box-header title="Expansion Packs"></umb-box-header> | ||
<umb-box-content> | ||
This is the placeholder for the Expansion packs page, things like uSync.Snapshots, and Audit. | ||
</umb-box-content> | ||
</umb-box> | ||
<div ng-controller="uSyncExpansionController as vm"> | ||
<umb-load-indicator ng-if="vm.loading"></umb-load-indicator> | ||
<div ng-if="!vm.loading"> | ||
<umb-box> | ||
<umb-box-header title="Expansion Packs"></umb-box-header> | ||
<umb-box-content> | ||
{{vm.addons.intro}} | ||
</umb-box-content> | ||
</umb-box> | ||
|
||
<div class="usync-boxes"> | ||
<umb-box class="usync-box" ng-repeat="expansion in vm.addons.expansions" | ||
ng-class="{'usync-box-inprogress' : expansion.state === 'working'}"> | ||
<umb-box-header title="{{expansion.name}}" | ||
description="{{expansion.summary}}"></umb-box-header> | ||
<umb-box-content> | ||
<div class="usync-box-icon"> | ||
<i class="icon {{expansion.icon}}"></i> | ||
</div> | ||
<div> | ||
{{expansion.description}} | ||
</div> | ||
<div ng-if="expansion.state !== 'working'"> | ||
<a href="{{expansion.url}}" target="_blank">More Info</a> | ||
</div> | ||
<div class="usync-box-nuget" ng-if="expansion.state !== 'working'"> | ||
<a href="https://nuget.org/packages/{{expansion.package}}"> | ||
install-package {{expansion.package}} | ||
<span ng-if="expansion.state === 'preview'">pre</span> | ||
</a> | ||
</div> | ||
<div ng-if="expansion.state === 'working'" class="text-success"> | ||
Coming Soon! | ||
</div> | ||
</umb-box-content> | ||
</umb-box> | ||
</div> | ||
</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
uSync8.BackOffice/App_Plugins/uSync8/settings/expansionController.js
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,20 @@ | ||
(function () { | ||
|
||
'use strict'; | ||
|
||
function expansionController($scope, uSync8DashboardService) { | ||
|
||
var vm = this; | ||
vm.loading = true; | ||
/// | ||
|
||
uSync8DashboardService.getAddOnSplash() | ||
.then(function (result) { | ||
vm.addons = result.data; | ||
vm.loading = false; | ||
}); | ||
} | ||
|
||
angular.module('umbraco') | ||
.controller('uSyncExpansionController', expansionController); | ||
})(); |
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
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
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
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
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
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
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,50 @@ | ||
{ | ||
"intro": "Get more out of uSync (Local)", | ||
"expansions": [ | ||
{ | ||
"name": "uSync Content Edition", | ||
"summary": "Add content to your sync", | ||
"icon": "icon-document", | ||
"description": "Add Content, Media, Dictionary Items and Domain Settings to your uSync syncs", | ||
"url": "https://jumoo.co.uk/usync/content/", | ||
"package": "uSync.ContentEdition", | ||
"state": "preview" | ||
}, | ||
{ | ||
"name": "uSync Snapshots", | ||
"summary": "Moment in time snapshots of your umbraco state", | ||
"icon": "icon-flash", | ||
"description": "Take moment in time snapshots of your umbraco site, and combine and apply them to target sites", | ||
"url": "https://jumoo.co.uk/usync/snapshots/", | ||
"package": "uSync.Snapshots", | ||
"state": "working" | ||
}, | ||
{ | ||
"name": "uSync Audit", | ||
"summary": "Keep track of things", | ||
"icon": "icon-ordered-list", | ||
"description": "Log and audit the changes to your doctypes, datatypes and more, with links to slack", | ||
"url": "https://jumoo.co.uk/usync/audit", | ||
"package": "uSync.Audit", | ||
"state": "working" | ||
}, | ||
{ | ||
"name": "uSync People Edition", | ||
"summary": "Users and Members", | ||
"icon": "icon-user", | ||
"description": "Sync user and membership accounts", | ||
"url": "https://jumoo.co.uk/usync/people", | ||
"package": "uSync.PeopleEdition", | ||
"state": "working" | ||
}, | ||
{ | ||
"name": "More soon", | ||
"summary": "We're always adding options", | ||
"icon": "icon-add", | ||
"description": "Keep an eye out for new uSync expansion packages", | ||
"url": "https://jumoo.co.uk/usync/expansion", | ||
"package": " ", | ||
"state": "working" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.