10000 autocommit docs · SimonBiggs/phosphorjs.github.io@af25786 · GitHub
[go: up one dir, main page]

Skip to content

Commit af25786

Browse files
author
Travis Bot
committed
autocommit docs
1 parent b65103b commit af25786

File tree

7 files changed

+22
-39
lines changed

7 files changed

+22
-39
lines changed

examples/flexbox/bundle.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ var phosphor_widget_1 = require('phosphor-widget');
2020
require('./index.css');
2121
/**
2222
* A widget which uses CSS flexbox to layout its children.
23-
*
24-
* **See Also:** './index.css'
2523
*/
2624
var MyVBox = (function (_super) {
2725
__extends(MyVBox, _super);

examples/flexbox/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ var phosphor_widget_1 = require('phosphor-widget');
1717
require(' 10000 ./index.css');
1818
/**
1919
* A widget which uses CSS flexbox to layout its children.
20-
*
21-
* **See Also:** './index.css'
2220
*/
2321
var MyVBox = (function (_super) {
2422
__extends(MyVBox, _super);

examples/flexbox/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ import './index.css';
2828

2929
/**
3030
* A widget which uses CSS flexbox to layout its children.
31-
*
32-
* **See Also:** './index.css'
3331
*/
3432
class MyVBox extends Widget {
33+
3534
constructor() {
3635
super();
3736
this.addClass('my-vbox');

examples/todomvc/bundle.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
var css = "/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2015, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\nbody {\n margin: 0;\n padding: 0;\n background: #F5F6F7;\n}\n#main {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.TodoWidget {\n overflow: auto;\n padding-left: 10px;\n padding-right: 10px;\n}\n.p-TabBar {\n min-height: 24px;\n}\n.p-TabBar-content {\n bottom: 1px;\n align-items: flex-end;\n}\n.p-TabBar-content > .p-Tab {\n flex-basis: 125px;\n max-height: 21px;\n margin-left: -1px;\n border: 1px solid #C0C0C0;\n border-bottom: none;\n padding: 0px 10px;\n background: #E5E5E5;\n font: 12px Helvetica, Arial, sans-serif;\n}\n.p-TabBar-content > .p-Tab.p-mod-first {\n margin-left: 0;\n}\n.p-TabBar-content > .p-Tab.p-mod-selected {\n min-height: 24px;\n background: white;\n transform: translateY(1px);\n}\n.p-TabBar-content > .p-Tab:hover:not(.p-mod-selected) {\n background: #F0F0F0;\n}\n.p-TabBar-content > .p-Tab > span {\n line-height: 21px;\n}\n.p-TabBar-footer {\n display: block;\n height: 1px;\n background: #C0C0C0;\n}\n.p-TabPanel > .p-StackedPanel {\n padding: 10px;\n background: white;\n border: 1px solid #C0C0C0;\n border-top: none;\n}\n"; (require("browserify-css").createStyle(css, { "href": "index.css"})); module.exports = css;
2+
var css = "/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2015, PhosphorJS Contributors\n|\n| Distributed under the terms of the BSD 3-Clause License.\n|\n| The full license is in the file LICENSE, distributed with this software.\n|----------------------------------------------------------------------------*/\nbody {\n margin: 0;\n padding: 0;\n background: #F5F6F7;\n}\n#main {\n position: absolute;\n top: 10px;\n left: 10px;\n right: 10px;\n bottom: 10px;\n}\n.TodoWidget {\n overflow: auto;\n padding: 10px;\n}\n.todoapp {\n margin-bottom: 10px;\n}\n.p-TabBar {\n min-height: 24px;\n}\n.p-TabBar-content {\n bottom: 1px;\n align-items: flex-end;\n}\n.p-TabBar-content > .p-Tab {\n flex-basis: 125px;\n max-height: 21px;\n margin-left: -1px;\n border: 1px solid #C0C0C0;\n border-bottom: none;\n padding: 0px 10px;\n background: #E5E5E5;\n font: 12px Helvetica, Arial, sans-serif;\n}\n.p-TabBar-content > .p-Tab.p-mod-first {\n margin-left: 0;\n}\n.p-TabBar-content > .p-Tab.p-mod-selected {\n min-height: 24px;\n background: white;\n transform: translateY(1px);\n}\n.p-TabBar-content > .p-Tab:hover:not(.p-mod-selected) {\n background: #F0F0F0;\n}\n.p-TabBar-content > .p-Tab > span {\n line-height: 21px;\n}\n.p-TabBar-footer {\n display: block;\n height: 1px;\n background: #C0C0C0;\n}\n.p-TabPanel > .p-StackedPanel {\n background: white;\n border: 1px solid #C0C0C0;\n border-top: none;\n}\n"; (require("browserify-css").createStyle(css, { "href": "index.css"})); module.exports = css;
33
},{"browserify-css":3}],2:[function(require,module,exports){
44
/*-----------------------------------------------------------------------------
55
| Copyright (c) 2014-2015, PhosphorJS Contributors
@@ -90,17 +90,12 @@ var CodeMirrorWidget = (function (_super) {
9090
};
9191
return CodeMirrorWidget;
9292
})(phosphor_widget_1.Widget);
93+
/**
94+
* The main application entry point.
95+
*/
9396
function main() {
94-
// Create Todo widget with a new Todo model
9597
var model = new app.TodoModel('react-todos');
9698
var todo = new TodoWidget(model);
97-
// Create the CodeMirror widget with a typescript mode.
98-
var cm = new CodeMirrorWidget({
99-
mode: 'text/typescript',
100-
lineNumbers: true,
101-
tabSize: 2,
102-
});
103-
// Create the CodeMirror widget with a typescript mode.
10499
var cmSource = new CodeMirrorWidget({
105100
mode: 'text/typescript',
106101
lineNumbers: true,

examples/todomvc/index.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ body {
1414

1515
#main {
1616
position: absolute;
17-
top: 0;
18-
left: 0;
19-
right: 0;
20-
bottom: 0;
17+
top: 10px;
18+
left: 10px;
19+
right: 10px;
20+
bottom: 10px;
2121
}
2222

2323

2424
.TodoWidget {
2525
overflow: auto;
26-
padding-left: 10px;
27-
padding-right: 10px;
26+
padding: 10px;
27+
}
28+
29+
30+
.todo F438 app {
31+
margin-bottom: 10px;
2832
}
2933

3034

@@ -81,7 +85,6 @@ body {
8185

8286

8387
.p-TabPanel > .p-StackedPanel {
84-
padding: 10px;
8588
background: white;
8689
border: 1px solid #C0C0C0;
8790
border-top: none;

examples/todomvc/index.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,12 @@ var CodeMirrorWidget = (function (_super) {
8787
};
8888
return CodeMirrorWidget;
8989
})(phosphor_widget_1.Widget);
90+
/**
91+
* The main application entry point.
92+
*/
9093
function main() {
91-
// Create Todo widget with a new Todo model
9294
var model = new app.TodoModel('react-todos');
9395
var todo = new TodoWidget(model);
94-
// Create the CodeMirror widget with a typescript mode.
95-
var cm = new CodeMirrorWidget({
96-
mode: 'text/typescript',
97-
lineNumbers: true,
98-
tabSize: 2,
99-
});
100-
// Create the CodeMirror widget with a typescript mode.
10196
var cmSource = new CodeMirrorWidget({
10297
mode: 'text/typescript',
10398
lineNumbers: true,

examples/todomvc/index.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,13 @@ class CodeMirrorWidget extends Widget {
103103
}
104104

105105

106+
/**
107+
* The main application entry point.
108+
*/
106109
function main(): void {
107-
// Create Todo widget with a new Todo model
108110
var model = new app.TodoModel('react-todos');
109111
var todo = new TodoWidget(model);
110112

111-
// Create the CodeMirror widget with a typescript mode.
112-
var cm = new CodeMirrorWidget({
113-
mode: 'text/typescript',
114-
lineNumbers: true,
115-
tabSize: 2,
116-
});
117-
118-
// Create the CodeMirror widget with a typescript mode.
119113
var cmSource = new CodeMirrorWidget({
120114
mode: 'text/typescript',
121115
lineNumbers: true,
@@ -143,4 +137,5 @@ function main(): void {
143137
window.onresize = () => panel.update();
144138
}
145139

140+
146141
window.onload = main;

0 commit comments

Comments
 (0)
0