Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enonicXpGradle = "3.6.2"
nodeGradle = "7.1.0"

# App
libAsset = "1.0.3"
libAsset = "2.0.0-SNAPSHOT"
libMustache = "2.1.1"

[libraries]
Expand Down
720 changes: 565 additions & 155 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/main/resources/admin/extensions/launcher/launcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
displayName:
text: "Launcher"
i18n: "Launcher"
allow:
- "role:system.admin"
- "role:system.admin.login"
interfaces:
- "generic"
10 changes: 10 additions & 0 deletions src/main/resources/admin/extensions/shortcuts/shortcuts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
displayName:
text: "Useful Links"
i18n: "home.dashboard.widget.shortcuts.displayName"
interfaces:
- "admin.dashboard"
config:
width: "small"
style: "custom"
height: "small"
order: "0"
5 changes: 5 additions & 0 deletions src/main/resources/admin/extensions/youtube/youtube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
displayName: "Enonic Webinars"
interfaces:
- "admin.dashboard.disabled"
config:
width: "full"
15 changes: 0 additions & 15 deletions src/main/resources/admin/tools/home/home.xml

This file was deleted.

9 changes: 9 additions & 0 deletions src/main/resources/admin/tools/home/home.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
allow:
- "role:system.admin"
- "role:system.admin.login"
apis:
- "admin:extension"
- "admin:status"
- "admin:event"
interfaces:
- "admin.dashboard"
11 changes: 0 additions & 11 deletions src/main/resources/admin/widgets/launcher/launcher.xml

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/resources/admin/widgets/shortcuts/shortcuts.xml

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/resources/admin/widgets/youtube/youtube.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import {ResourceRequest as WidgetResourceRequest} from './ResourceRequest';
export class GetByInterfaceRequest
extends WidgetResourceRequest {

private readonly widgetInterface: string;
private readonly extensionInterface: string;

constructor(widgetInterface: string) {
super();
this.widgetInterface = widgetInterface;
this.extensionInterface = widgetInterface;
}

getParams(): object {
return {
widgetInterface: this.widgetInterface,
'interface': this.extensionInterface,
};
}
}
6 changes: 3 additions & 3 deletions src/main/resources/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ const getConfig = (req) => {
path: 'images/background.webp'
}),
xpVersion: admin.getVersion(),
launcherUrl: admin.widgetUrl({
launcherUrl: admin.extensionUrl({
application: app.name,
widget: 'launcher',
extension: 'launcher',
params: {
autoOpen: true,
appName: app.name,
},
}),
widgetApiUrl: portal.apiUrl({
api: 'admin:widget'
api: 'admin:extension'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extensionApiUrl

}),
statusApiUrl: portal.apiUrl({
api: 'admin:status',
Expand Down
Loading