Skip to content

Commit

Permalink
Implement a full-screen widget #112
Browse files Browse the repository at this point in the history
-Added studio sidebar widget. Empty now, will be filled later
  • Loading branch information
ashklianko authored and alansemenov committed Apr 8, 2022
1 parent 9a1330c commit d57d389
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/admin/widgets/guillotine/guillotine.html
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>
15 changes: 15 additions & 0 deletions src/main/resources/admin/widgets/guillotine/guillotine.js
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 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.
7 changes: 7 additions & 0 deletions src/main/resources/admin/widgets/guillotine/guillotine.xml
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>

0 comments on commit d57d389

Please sign in to comment.