Skip to content

Commit 9041692

Browse files
committed
Fix deployment
1 parent 84a598a commit 9041692

File tree

5 files changed

+15
-122
lines changed

5 files changed

+15
-122
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ jobs:
1919
persist-credentials: false
2020

2121
- name: Install
22-
run: npm install @qooxdoo/compiler --no-save
22+
run: npm install @qooxdoo/compiler --no-save --no-package-lock
2323

2424
- name: Build
25-
run: npx qx deploy --out=./html --clean --source-maps
25+
run: |
26+
npx qx deploy --out=./html --source-maps
27+
rm -rf ./html/qxl.packagebrowser/demos
28+
mv ./compiled/build/qxl.packagebrowser/demos ./html/qxl.packagebrowser
2629
2730
- name: Deploy
2831
uses: peaceiris/actions-gh-pages@v3
2932
with:
3033
github_token: ${{ secrets.GITHUB_TOKEN }}
3134
publish_dir: ./html
35+
keep_files: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
/qx_packages
44
/packages
55
/node_modules
6+
/html
67
.idea
78
.DS_Store

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ http://www.qooxdoo.org/qxl.packagebrowser/
1313
```bash
1414
git clone https://github.com/qooxdoo/qxl.packagebrowser.git
1515
cd qxl.packagebrowser
16-
npm install @qooxdoo/compiler
16+
npm install --no-save --no-package-lock @qooxdoo/compiler
1717
npx qx serve
1818
```
1919

source/class/qxl/packagebrowser/PackageBrowser.js

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,11 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
9696
this.widgets = {};
9797
this.tests = {};
9898

99-
10099
// Commands & Menu Bar
101100
this.__makeCommands();
102101
this.__menuBar = this.__makeToolBar();
103102
this.add(this.__menuBar);
104103

105-
106104
// Main Split Pane
107105
var mainsplit = new qx.ui.splitpane.Pane("horizontal");
108106
mainsplit.setAppearance("app-splitpane");
@@ -163,7 +161,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
163161
this._demoView = this.__makeDemoView();
164162
infosplit.add(this._demoView, 2);
165163

166-
167164
// Back button and bookmark support
168165
this._history = qx.bom.History.getInstance();
169166
this._history.addListener("changeState", function (e) {
@@ -178,18 +175,10 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
178175
}, this);
179176

180177
this.__menuElements = [this.__ownWindowButton, this.__viewPart];
181-
182178
this.__infoWindow = new qxl.packagebrowser.InfoWindow(this.tr("Info"));
183179
this.__infoWindow.setAutoCenter(true);
184180
},
185181

186-
187-
/*
188-
*****************************************************************************
189-
MEMBERS
190-
*****************************************************************************
191-
*/
192-
193182
members: {
194183
// ------------------------------------------------------------------------
195184
// CONSTRUCTOR HELPERS
@@ -199,7 +188,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
199188
__logDone: null,
200189
_tree: null,
201190
_searchTextField: null,
202-
__currentJSCode: null,
203191
__menuElements: null,
204192
_versionFilter: null,
205193
_navPart: null,
@@ -220,9 +208,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
220208
welcomeUrl: null,
221209

222210
__makeCommands: function () {
223-
this._cmdObjectSummary = new qx.ui.command.Command("Ctrl+O");
224-
this._cmdObjectSummary.addListener("execute", this.__getObjectSummary, this);
225-
226211
this._cmdRunSample = new qx.ui.command.Command("F5");
227212
this._cmdRunSample.addListener("execute", this.runSample, this);
228213

@@ -236,55 +221,11 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
236221
this._cmdSampleInOwnWindow.addListener("execute", this.__openWindow, this);
237222
},
238223

239-
/**
240-
* TODOC
241-
*
242-
*/
243-
__getObjectSummary: function () {
244-
var cw = this._iframe.getWindow();
245-
var msg;
246-
if (cw && cw.qx) {
247-
msg = cw.qx.dev.ObjectSummary.getInfo();
248-
} else {
249-
msg = "Unable to access namespace. Maybe no demo loaded.";
250-
}
251-
252-
var area = new qx.ui.form.TextArea(msg);
253-
area.setDecorator(null);
254-
area.setAutoSize(true);
255-
area.setMaxHeight(qx.bom.Viewport.getHeight() - 100);
256-
this.__infoWindow.setContent(area);
257-
this.__infoWindow.setWidth(400);
258-
this.__infoWindow.show();
259-
},
260-
261224
__openWindow: function () {
262225
var sampUrl = this._iframe.getSource();
263226
window.open(sampUrl, "_blank");
264227
},
265228

266-
267-
__setCurrentJSCode: function (code) {
268-
this.__currentJSCode = code;
269-
},
270-
271-
272-
/**
273-
* Handler for opening the api viewer.
274-
*/
275-
__onApiOpen: function () {
276-
window.open("./apiviewer");
277-
},
278-
279-
280-
/**
281-
* Handler for opening the manual.
282-
*/
283-
__onManualOpen: function () {
284-
window.open("../docs");
285-
},
286-
287-
288229
__makeToolBar: function () {
289230
var bar = new qx.ui.toolbar.ToolBar();
290231

@@ -478,7 +419,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
478419

479420
/**
480421
* Tree View in Left Pane
481-
* - only make root node; rest will befilled when iframe has loaded (with
422+
* - only make root node; rest will be filled when iframe has loaded (with
482423
* leftReloadTree)
483424
*
484425
* @return {var} TODOC
@@ -554,9 +495,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
554495

555496

556497
/**
557-
* TODOC
558-
*
559-
* @param e {Event} TODOC
498+
* @param e {Event}
560499
* @return {void}
561500
*/
562501
leftReloadTree: function (e) {
@@ -566,7 +505,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
566505
var _initialNode = null;
567506

568507
// set a section to open initially
569-
var state = this._history.getState().replace(/\~/g, "/");
508+
var state = this._history.getState().replace(/~/g, "/");
570509

571510
let icons = this.self(arguments).icons;
572511

@@ -877,6 +816,7 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
877816
* @param {qxl.packagebrowser.Tree} modelNode
878817
* @return {string}
879818
* @private
819+
* @ignore(top)
880820
*/
881821
__getProblemsHtml(modelNode) {
882822
let {data:{compilation_log}, manifest:{info, requires={}}} = modelNode;
@@ -937,7 +877,8 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
937877
description:
938878
`The <span class="code">Manifest.json</span> file of the class
939879
<span class="code">$2</span> declares to provide a path
940-
<span class="code">$1</span>, which does not exist.`
880+
<span class="code">$1</span>, which does not exist.
881+
If no such path is needed, consider removing the entry in Manifest.json.`
941882
},
942883
{
943884
regex: /^(.*)Error validating data for ([^:]+): (.+)$/,
@@ -1339,6 +1280,6 @@ qx.Class.define("qxl.packagebrowser.PackageBrowser", {
13391280

13401281
destruct: function () {
13411282
this.widgets = this.tests = this._sampleToTreeNodeMap = this.tree = this.logelem = null;
1342-
this._disposeObjects("mainsplit", "tree1", "left", "toolbar", "f1", "f2", "_history", "logappender", "_cmdObjectSummary", "_cmdRunSample", "_cmdPrevSample", "_cmdNextSample", "_cmdSampleInOwnWindow", "_navPart", "__ownWindowButton", "__viewPart", "__viewGroup", "__menuBar", "_infosplit", "_searchTextField", "_tree", "_iframe", "_demoView", "__menuElements", "__logSync", "_leftComposite", "_urlWindow", "_nextButton", "_prevButton", "__menuItemStore", "__overflowMenu");
1283+
this._disposeObjects("mainsplit", "tree1", "left", "toolbar", "f1", "f2", "_history", "logappender", "_cmdRunSample", "_cmdPrevSample", "_cmdNextSample", "_cmdSampleInOwnWindow", "_navPart", "__ownWindowButton", "__viewPart", "__viewGroup", "__menuBar", "_infosplit", "_searchTextField", "_tree", "_iframe", "_demoView", "__menuElements", "__logSync", "_leftComposite", "_urlWindow", "_nextButton", "_prevButton", "__menuItemStore", "__overflowMenu");
13431284
}
13441285
});

source/class/qxl/packagebrowser/test/DemoTest.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)