-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Added studio sidebar widget. Empty now, will be filled later
- Loading branch information
1 parent
9a1330c
commit d57d389
Showing
4 changed files
with
110 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<widget id="widget-guillotine" style="display: flex;justify-content: center;"> | ||
Welcome to Guillotine application! | ||
</widget> |
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,15 @@ | ||
const mustache = require('/lib/mustache'); | ||
|
||
function handleGet() { | ||
const view = resolve('./guillotine.html'); | ||
const params = { | ||
// | ||
}; | ||
|
||
return { | ||
contentType: 'text/html', | ||
body: mustache.render(view, params), | ||
}; | ||
} | ||
|
||
exports.get = handleGet; |
85 changes: 85 additions & 0 deletions
85
src/main/resources/admin/widgets/guillotine/guillotine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 @@ | ||
<widget xmlns="urn:enonic:xp:model:1.0"> | ||
<display-name>Guillotine</display-name> | ||
<description>Generate a dynamic GraphQL API</description> | ||
<interfaces> | ||
<interface>contentstudio.sidebar</interface> | ||
</interfaces> | ||
</widget> |