fomantic-ui 2.10.0-beta.1 → 2.10.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +9 -0
- package/.eslintrc.js +0 -10
- package/CONTRIBUTING.md +4 -1
- package/CONTRIBUTORS.md +1 -0
- package/FAQ.md +7 -2
- package/README.md +5 -9
- package/ROADMAP.md +4 -4
- package/SECURITY.md +8 -7
- package/changelog-setup.js +64 -70
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +103 -142
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +157 -210
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -2
- package/dist/components/calendar.js +314 -352
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -2
- package/dist/components/checkbox.js +85 -135
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +2 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -11
- package/dist/components/dimmer.js +61 -94
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -2
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +30 -51
- package/dist/components/dropdown.js +736 -1055
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +85 -114
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +3809 -7617
- package/dist/components/emoji.min.css +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +2 -3
- package/dist/components/flyout.js +226 -355
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -95
- package/dist/components/form.js +335 -444
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -58
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +4 -4
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -536
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -9
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +5 -9
- package/dist/components/modal.js +261 -384
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +68 -98
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -2
- package/dist/components/popup.js +198 -271
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +109 -144
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +91 -123
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +2 -9
- package/dist/components/search.js +277 -379
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -2
- package/dist/components/shape.js +158 -224
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +2 -3
- package/dist/components/sidebar.js +124 -206
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +9 -25
- package/dist/components/site.js +38 -57
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +246 -329
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +70 -100
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +135 -180
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +176 -244
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +3 -37
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -3
- package/dist/components/toast.js +109 -147
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +91 -146
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +146 -224
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +3906 -8720
- package/dist/semantic.js +4397 -6155
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/show-examples.js +2 -4
- package/gulpfile.js +5 -7
- package/package.json +3 -5
- package/scripts/nightly-version.js +7 -10
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +156 -209
- package/src/definitions/behaviors/form.js +334 -443
- package/src/definitions/behaviors/state.js +69 -99
- package/src/definitions/behaviors/visibility.js +145 -223
- package/src/definitions/collections/form.less +1 -13
- package/src/definitions/collections/grid.less +1 -61
- package/src/definitions/collections/menu.less +0 -11
- package/src/definitions/collections/table.less +1 -35
- package/src/definitions/elements/input.less +1 -61
- package/src/definitions/elements/segment.less +0 -6
- package/src/definitions/globals/site.js +37 -56
- package/src/definitions/globals/site.less +2 -18
- package/src/definitions/modules/accordion.js +102 -141
- package/src/definitions/modules/calendar.js +313 -351
- package/src/definitions/modules/checkbox.js +84 -134
- package/src/definitions/modules/dimmer.js +60 -93
- package/src/definitions/modules/dimmer.less +0 -9
- package/src/definitions/modules/dropdown.js +735 -1054
- package/src/definitions/modules/dropdown.less +31 -47
- package/src/definitions/modules/embed.js +84 -113
- package/src/definitions/modules/flyout.js +225 -354
- package/src/definitions/modules/modal.js +260 -383
- package/src/definitions/modules/modal.less +1 -1
- package/src/definitions/modules/nag.js +67 -97
- package/src/definitions/modules/popup.js +197 -270
- package/src/definitions/modules/progress.js +108 -143
- package/src/definitions/modules/rating.js +90 -122
- package/src/definitions/modules/search.js +276 -378
- package/src/definitions/modules/search.less +0 -3
- package/src/definitions/modules/shape.js +157 -223
- package/src/definitions/modules/sidebar.js +123 -205
- package/src/definitions/modules/slider.js +245 -328
- package/src/definitions/modules/slider.less +1 -1
- package/src/definitions/modules/sticky.js +134 -179
- package/src/definitions/modules/tab.js +175 -243
- package/src/definitions/modules/toast.js +108 -146
- package/src/definitions/modules/toast.less +1 -1
- package/src/definitions/modules/transition.js +90 -145
- package/src/theme.less +0 -13
- package/src/themes/basic/elements/icon.variables +1 -1
- package/src/themes/default/collections/grid.variables +0 -30
- package/src/themes/default/collections/table.variables +1 -5
- package/src/themes/default/elements/icon.variables +3 -3
- package/src/themes/default/globals/site.variables +8 -15
- package/src/themes/default/globals/variation.variables +1 -2
- package/src/themes/default/modules/dropdown.variables +1 -0
- package/src/themes/default/modules/slider.variables +1 -1
- package/src/themes/github/elements/icon.variables +1 -1
- package/src/themes/material/elements/icon.variables +1 -1
- package/tasks/README.md +1 -1
- package/tasks/admin/components/create.js +89 -122
- package/tasks/admin/components/init.js +34 -65
- package/tasks/admin/components/update.js +50 -61
- package/tasks/admin/distributions/create.js +71 -111
- package/tasks/admin/distributions/init.js +32 -63
- package/tasks/admin/distributions/update.js +49 -57
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +14 -19
- package/tasks/admin/release.js +2 -2
- package/tasks/build/assets.js +14 -18
- package/tasks/build/css.js +59 -68
- package/tasks/build/javascript.js +48 -56
- package/tasks/build.js +4 -6
- package/tasks/check-install.js +5 -8
- package/tasks/clean.js +5 -7
- package/tasks/collections/admin.js +14 -16
- package/tasks/collections/build.js +6 -8
- package/tasks/collections/docs.js +4 -6
- package/tasks/collections/install.js +2 -4
- package/tasks/collections/rtl.js +2 -4
- package/tasks/collections/various.js +2 -4
- package/tasks/config/admin/github.js +9 -19
- package/tasks/config/admin/templates/README.md +2 -2
- package/tasks/config/admin/templates/bower.json +2 -4
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -4
- package/tasks/config/admin/templates/less-package.js +1 -3
- package/tasks/config/defaults.js +0 -1
- package/tasks/config/npm/gulpfile.js +4 -6
- package/tasks/config/project/config.js +27 -35
- package/tasks/config/project/install.js +64 -82
- package/tasks/config/project/release.js +7 -9
- package/tasks/config/tasks.js +10 -21
- package/tasks/config/user.js +14 -20
- package/tasks/docs/build.js +26 -31
- package/tasks/docs/metadata.js +30 -39
- package/tasks/docs/serve.js +23 -27
- package/tasks/install.js +94 -128
- package/tasks/rtl/build.js +2 -4
- package/tasks/rtl/watch.js +3 -5
- package/tasks/watch.js +13 -13
- package/test/meteor/fonts.js +1 -2
- package/test/modules/module.spec.js +16 -18
- package/types/fomantic-ui-calendar.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +45 -1
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +1 -1
- package/types/fomantic-ui-form.d.ts +0 -7
- package/types/fomantic-ui-modal.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +12 -6
- package/types/fomantic-ui-toast.d.ts +1 -1
- package/src/themes/basic/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/github/assets/fonts/octicons.woff +0 -0
- package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -2,46 +2,44 @@
|
|
2
2
|
Build Task
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
settings = tasks.settings
|
41
|
-
;
|
5
|
+
const gulp = require('gulp');
|
6
|
+
|
7
|
+
// node dependencies
|
8
|
+
const console = require('@fomantic/better-console');
|
9
|
+
|
10
|
+
// gulp dependencies
|
11
|
+
const chmod = require('gulp-chmod');
|
12
|
+
const concat = require('gulp-concat');
|
13
|
+
const dedupe = require('@fomantic/gulp-dedupe');
|
14
|
+
const flatten = require('gulp-flatten');
|
15
|
+
const gulpif = require('gulp-if');
|
16
|
+
const header = require('@fomantic/gulp-header');
|
17
|
+
const normalize = require('normalize-path');
|
18
|
+
const ordered = require('ordered-read-streams');
|
19
|
+
const plumber = require('@fomantic/gulp-plumber');
|
20
|
+
const print = require('gulp-print').default;
|
21
|
+
const rename = require('gulp-rename');
|
22
|
+
const replace = require('gulp-replace');
|
23
|
+
const uglify = require('gulp-uglify');
|
24
|
+
|
25
|
+
// config
|
26
|
+
const config = require('../config/user');
|
27
|
+
const docsConfig = require('../config/docs');
|
28
|
+
const tasks = require('../config/tasks');
|
29
|
+
const install = require('../config/project/install');
|
30
|
+
|
31
|
+
// shorthand
|
32
|
+
const globs = config.globs;
|
33
|
+
const assets = config.paths.assets;
|
34
|
+
|
35
|
+
const banner = tasks.banner;
|
36
|
+
const filenames = tasks.filenames;
|
37
|
+
const comments = tasks.regExp.comments;
|
38
|
+
const log = tasks.log;
|
39
|
+
const settings = tasks.settings;
|
42
40
|
|
43
41
|
/**
|
44
|
-
* Concat and uglify the
|
42
|
+
* Concat and uglify the JavaScript files
|
45
43
|
* @param {string|array} src - source files
|
46
44
|
* @param type
|
47
45
|
* @param config
|
@@ -60,24 +58,22 @@ function build(src, type, config) {
|
|
60
58
|
.pipe(header(banner, settings.header))
|
61
59
|
.pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
|
62
60
|
.pipe(gulp.dest(config.paths.output.compressed))
|
63
|
-
.pipe(print(log.created))
|
64
|
-
;
|
61
|
+
.pipe(print(log.created));
|
65
62
|
}
|
66
63
|
|
67
64
|
/**
|
68
|
-
* Packages the
|
65
|
+
* Packages the JavaScript files in dist
|
69
66
|
* @param {string} type - type of the js processing (none, rtl, docs)
|
70
67
|
* @param {boolean} compress - should the output be compressed
|
71
68
|
*/
|
72
69
|
function pack(type, compress) {
|
73
|
-
const output
|
70
|
+
const output = type === 'docs' ? docsConfig.paths.output : config.paths.output;
|
74
71
|
const concatenatedJS = compress ? filenames.concatenatedMinifiedJS : filenames.concatenatedJS;
|
75
72
|
|
76
73
|
let src = globs.components
|
77
74
|
.replace(/[{}]/g, '')
|
78
75
|
.split(',')
|
79
|
-
.map((c) => gulp.src(output.uncompressed + '/**/' + c + globs.ignored + '.js'))
|
80
|
-
;
|
76
|
+
.map((c) => gulp.src(output.uncompressed + '/**/' + c + globs.ignored + '.js'));
|
81
77
|
|
82
78
|
return ordered(src)
|
83
79
|
.pipe(plumber())
|
@@ -89,8 +85,7 @@ function pack(type, compress) {
|
|
89
85
|
.pipe(header(banner, settings.header))
|
90
86
|
.pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
|
91
87
|
.pipe(gulp.dest(output.packaged))
|
92
|
-
.pipe(print(log.created))
|
93
|
-
;
|
88
|
+
.pipe(print(log.created));
|
94
89
|
}
|
95
90
|
|
96
91
|
function buildJS(src, type, config, callback) {
|
@@ -115,13 +110,13 @@ function buildJS(src, type, config, callback) {
|
|
115
110
|
}
|
116
111
|
|
117
112
|
// copy source javascript
|
118
|
-
const js
|
113
|
+
const js = () => build(src, type, config);
|
119
114
|
js.displayName = 'Building un/compressed Javascript';
|
120
115
|
|
121
|
-
const packUncompressed
|
116
|
+
const packUncompressed = () => pack(type, false);
|
122
117
|
packUncompressed.displayName = 'Packing uncompressed Javascript';
|
123
118
|
|
124
|
-
const packCompressed
|
119
|
+
const packCompressed = () => pack(type, true);
|
125
120
|
packCompressed.displayName = 'Packing compressed Javascript';
|
126
121
|
|
127
122
|
gulp.series(js, gulp.parallel(packUncompressed, packCompressed))(callback);
|
@@ -132,10 +127,8 @@ module.exports = function (callback) {
|
|
132
127
|
};
|
133
128
|
|
134
129
|
// We keep the changed files in an array to call build with all of them at the same time
|
135
|
-
let
|
136
|
-
|
137
|
-
files = []
|
138
|
-
;
|
130
|
+
let timeout;
|
131
|
+
let files = [];
|
139
132
|
|
140
133
|
module.exports.watch = function (type, config) {
|
141
134
|
gulp
|
@@ -151,7 +144,7 @@ module.exports.watch = function (type, config) {
|
|
151
144
|
clearTimeout(timeout);
|
152
145
|
}
|
153
146
|
|
154
|
-
// Add file to internal changed files array
|
147
|
+
// Add the file to the internal changed files array
|
155
148
|
if (!files.includes(path)) {
|
156
149
|
files.push(path);
|
157
150
|
}
|
@@ -166,8 +159,7 @@ module.exports.watch = function (type, config) {
|
|
166
159
|
// Reset internal changed files array
|
167
160
|
files = [];
|
168
161
|
}, 1000);
|
169
|
-
})
|
170
|
-
;
|
162
|
+
});
|
171
163
|
};
|
172
164
|
|
173
165
|
module.exports.buildJS = buildJS;
|
package/tasks/build.js
CHANGED
@@ -2,13 +2,11 @@
|
|
2
2
|
* Build Task
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
gulp = require('gulp'),
|
5
|
+
// dependencies
|
6
|
+
const gulp = require('gulp');
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
;
|
8
|
+
// config
|
9
|
+
const install = require('./config/project/install');
|
12
10
|
|
13
11
|
module.exports = function (callback) {
|
14
12
|
console.info('Building Fomantic');
|
package/tasks/check-install.js
CHANGED
@@ -2,15 +2,12 @@
|
|
2
2
|
* Check Install
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
console = require('@fomantic/better-console'),
|
9
|
-
isSetup = require('./config/project/install').isSetup,
|
5
|
+
// node dependencies
|
6
|
+
const console = require('@fomantic/better-console');
|
7
|
+
const isSetup = require('./config/project/install').isSetup;
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
;
|
9
|
+
const install = require('./install');
|
10
|
+
const watch = require('./watch');
|
14
11
|
|
15
12
|
// export task
|
16
13
|
module.exports = function (callback) {
|
package/tasks/clean.js
CHANGED
@@ -2,13 +2,11 @@
|
|
2
2
|
Clean Task
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
|
7
|
-
config = require('./config/user'),
|
8
|
-
tasks = require('./config/tasks')
|
9
|
-
;
|
5
|
+
const fs = require('fs-extra');
|
6
|
+
const config = require('./config/user');
|
10
7
|
|
11
8
|
// cleans distribution files
|
12
|
-
module.exports = function () {
|
13
|
-
|
9
|
+
module.exports = function (callback) {
|
10
|
+
fs.removeSync(config.paths.clean);
|
11
|
+
callback();
|
14
12
|
};
|
@@ -2,24 +2,22 @@
|
|
2
2
|
* Admin Task Collection
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
register = require('../admin/register')
|
19
|
-
;
|
5
|
+
// less/css distributions
|
6
|
+
const initComponents = require('../admin/components/init');
|
7
|
+
const createComponents = require('../admin/components/create');
|
8
|
+
const updateComponents = require('../admin/components/update');
|
9
|
+
|
10
|
+
// single component releases
|
11
|
+
const initDistributions = require('../admin/distributions/init');
|
12
|
+
const createDistributions = require('../admin/distributions/create');
|
13
|
+
const updateDistributions = require('../admin/distributions/update');
|
14
|
+
|
15
|
+
const release = require('../admin/release');
|
16
|
+
const publish = require('../admin/publish');
|
17
|
+
const register = require('../admin/register');
|
20
18
|
|
21
19
|
/*
|
22
|
-
|
20
|
+
These are tasks to be run by project maintainers
|
23
21
|
- Creating Component Repos
|
24
22
|
- Syncing with GitHub via APIs
|
25
23
|
- Modifying package files
|
@@ -2,15 +2,13 @@
|
|
2
2
|
* Define Build Sub-Tasks
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
watch = require('../watch'),
|
5
|
+
const watch = require('../watch');
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
;
|
7
|
+
// build sub-tasks
|
8
|
+
const build = require('../build');
|
9
|
+
const buildJS = require('../build/javascript');
|
10
|
+
const buildCSS = require('../build/css');
|
11
|
+
const buildAssets = require('../build/assets');
|
14
12
|
|
15
13
|
module.exports = function (gulp) {
|
16
14
|
gulp.task('watch', watch);
|
@@ -3,10 +3,8 @@
|
|
3
3
|
*******************************/
|
4
4
|
|
5
5
|
// docs tasks
|
6
|
-
const
|
7
|
-
|
8
|
-
serveDocs = require('../docs/serve')
|
9
|
-
;
|
6
|
+
const buildDocs = require('../docs/build');
|
7
|
+
const serveDocs = require('../docs/serve');
|
10
8
|
|
11
9
|
/*
|
12
10
|
Lets you serve files to a local documentation instance
|
@@ -14,8 +12,8 @@ const
|
|
14
12
|
*/
|
15
13
|
module.exports = function (gulp) {
|
16
14
|
gulp.task('serve-docs', serveDocs);
|
17
|
-
gulp.task('serve-docs').description = 'Serve file changes to
|
15
|
+
gulp.task('serve-docs').description = 'Serve file changes to FUI Docs';
|
18
16
|
|
19
17
|
gulp.task('build-docs', buildDocs);
|
20
|
-
gulp.task('build-docs').description = 'Build all files and add to
|
18
|
+
gulp.task('build-docs').description = 'Build all files and add to FUI Docs';
|
21
19
|
};
|
@@ -3,10 +3,8 @@
|
|
3
3
|
*******************************/
|
4
4
|
|
5
5
|
// docs tasks
|
6
|
-
const
|
7
|
-
|
8
|
-
checkInstall = require('../check-install')
|
9
|
-
;
|
6
|
+
const install = require('../install');
|
7
|
+
const checkInstall = require('../check-install');
|
10
8
|
|
11
9
|
/*
|
12
10
|
Lets you serve files to a local documentation instance
|
package/tasks/collections/rtl.js
CHANGED
@@ -2,10 +2,8 @@
|
|
2
2
|
* Define RTL Sub-Tasks
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
|
7
|
-
watchRTL = require('../rtl/watch')
|
8
|
-
;
|
5
|
+
const buildRTL = require('../rtl/build');
|
6
|
+
const watchRTL = require('../rtl/watch');
|
9
7
|
|
10
8
|
module.exports = function (gulp) {
|
11
9
|
gulp.task('watch-rtl', watchRTL);
|
@@ -2,10 +2,8 @@
|
|
2
2
|
* Define Various Sub-Tasks
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
|
7
|
-
version = require('../version')
|
8
|
-
;
|
5
|
+
const clean = require('../clean');
|
6
|
+
const version = require('../version');
|
9
7
|
|
10
8
|
/*
|
11
9
|
Lets you serve files to a local documentation instance
|
@@ -5,31 +5,21 @@
|
|
5
5
|
Logs into GitHub using OAuth
|
6
6
|
*/
|
7
7
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
GithubAPI = require('@octokit/rest'),
|
8
|
+
const fs = require('node:fs');
|
9
|
+
const path = require('node:path');
|
10
|
+
const GithubAPI = require('@octokit/rest');
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
;
|
12
|
+
// stores oauth info for GitHub API
|
13
|
+
const oAuth = fs.existsSync(path.join(__dirname, './oauth.js'))
|
14
|
+
? require('./oauth.js') // eslint-disable-line import/extensions
|
15
|
+
: false;
|
18
16
|
|
19
17
|
if (!oAuth) {
|
20
18
|
console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js');
|
21
19
|
}
|
22
20
|
|
23
|
-
let github = new GithubAPI({
|
24
|
-
|
25
|
-
debug: true,
|
26
|
-
protocol: 'https',
|
27
|
-
timeout: 5000,
|
28
|
-
});
|
29
|
-
|
30
|
-
github.authenticate({
|
31
|
-
type: 'oauth',
|
32
|
-
token: oAuth.token,
|
21
|
+
let github = new GithubAPI.Octokit({
|
22
|
+
auth: oAuth.token,
|
33
23
|
});
|
34
24
|
|
35
25
|
module.exports = github;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
This repository contains pre-compiled {component} files using the default themes. This is intended for use in projects that do not need all the bells and whistles of Fomantic UI, and want to keep file size to a minimum.
|
4
4
|
|
5
|
-
For the latest changes please see the [Release Notes](https://github.com/fomantic/UI-{Component}/blob/master/RELEASE-NOTES.md)
|
5
|
+
For the latest changes, please see the [Release Notes](https://github.com/fomantic/UI-{Component}/blob/master/RELEASE-NOTES.md)
|
6
6
|
|
7
7
|
**Special Note**
|
8
8
|
An update in `2.0.8` has fixed an issue which may have prevented some single component modules from working correctly. Please see notes in [this pull request](https://github.com/Semantic-Org/Semantic-UI/pull/2816).
|
@@ -27,6 +27,6 @@ meteor add fomantic:ui-{component}
|
|
27
27
|
|
28
28
|
## Addendum
|
29
29
|
|
30
|
-
This element's definitions (required class names,
|
30
|
+
This element's definitions (required class names, HTML structures) are available in the [UI Docs](https://www.fomantic-ui.com)
|
31
31
|
|
32
32
|
Please consider checking out [all the benefits to theming](http://www.learnsemantic.com/guide/expert.html) before using these stand-alone releases.
|
@@ -4,11 +4,8 @@
|
|
4
4
|
"homepage" : "https://www.fomantic-ui.com",
|
5
5
|
"author": {
|
6
6
|
"name" : "Jack Lukic",
|
7
|
-
"web" : "
|
7
|
+
"web" : "https://www.jacklukic.com"
|
8
8
|
},
|
9
|
-
"ignore": [
|
10
|
-
"./index.js"
|
11
|
-
],
|
12
9
|
"keywords": [
|
13
10
|
"fomantic",
|
14
11
|
"semantic",
|
@@ -20,6 +17,7 @@
|
|
20
17
|
"https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md"
|
21
18
|
],
|
22
19
|
"ignore": [
|
20
|
+
"./index.js",
|
23
21
|
"docs",
|
24
22
|
"node",
|
25
23
|
"server",
|
@@ -1,6 +1,4 @@
|
|
1
|
-
let
|
2
|
-
where = 'client' // Adds files only to the client
|
3
|
-
;
|
1
|
+
let where = 'client'; // Adds files only to the client
|
4
2
|
|
5
3
|
Package.describe({
|
6
4
|
name: 'fomantic:ui-css',
|
@@ -16,7 +14,6 @@ Package.onUse(function (api) {
|
|
16
14
|
|
17
15
|
api.addAssets([
|
18
16
|
// icons
|
19
|
-
'themes/default/assets/fonts/icons.woff',
|
20
17
|
'themes/default/assets/fonts/icons.woff2',
|
21
18
|
], 'client');
|
22
19
|
|
package/tasks/config/defaults.js
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
* Set-up
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
gulp = require('gulp'),
|
5
|
+
const gulp = require('gulp');
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
// read user config to know what task to load
|
8
|
+
const config = require('./tasks/config/user'); // eslint-disable-line import/extensions
|
10
9
|
|
11
|
-
|
12
|
-
;
|
10
|
+
const rtl = require('./tasks/collections/rtl'); // eslint-disable-line import/extensions
|
13
11
|
|
14
12
|
/*******************************
|
15
13
|
* Tasks
|
@@ -2,12 +2,10 @@
|
|
2
2
|
Set-up
|
3
3
|
*******************************/
|
4
4
|
|
5
|
-
const
|
6
|
-
|
7
|
-
path = require('path'),
|
5
|
+
const fs = require('node:fs');
|
6
|
+
const path = require('node:path');
|
8
7
|
|
9
|
-
|
10
|
-
;
|
8
|
+
const defaults = require('../defaults');
|
11
9
|
|
12
10
|
/*******************************
|
13
11
|
Exports
|
@@ -16,28 +14,24 @@ const
|
|
16
14
|
module.exports = {
|
17
15
|
|
18
16
|
getPath: function (file, directory) {
|
19
|
-
let
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
;
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
// reached file system root, let's stop
|
31
|
-
if (nextDirectory === directory) {
|
32
|
-
return;
|
33
|
-
}
|
34
|
-
// otherwise recurse
|
35
|
-
walk(nextDirectory, file);
|
17
|
+
let configPath;
|
18
|
+
let walk = function (directory) {
|
19
|
+
let nextDirectory = path.resolve(path.join(directory, path.sep, '..'));
|
20
|
+
let currentPath = path.normalize(path.join(directory, file));
|
21
|
+
if (fs.existsSync(currentPath)) {
|
22
|
+
// found the file
|
23
|
+
configPath = path.normalize(directory);
|
24
|
+
} else {
|
25
|
+
// reached file system root, let's stop
|
26
|
+
if (nextDirectory === directory) {
|
27
|
+
return;
|
36
28
|
}
|
29
|
+
// otherwise recurse
|
30
|
+
walk(nextDirectory, file);
|
37
31
|
}
|
38
|
-
;
|
32
|
+
};
|
39
33
|
|
40
|
-
// start walk from outside require-dot-files directory
|
34
|
+
// start the walk from outside require-dot-files directory
|
41
35
|
file = file || defaults.files.config;
|
42
36
|
directory = directory || path.join(__dirname, path.sep, '..');
|
43
37
|
walk(directory);
|
@@ -51,12 +45,10 @@ module.exports = {
|
|
51
45
|
File Paths
|
52
46
|
--------------- */
|
53
47
|
|
54
|
-
let
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
folder
|
59
|
-
;
|
48
|
+
let configPath = this.getPath();
|
49
|
+
let sourcePaths = {};
|
50
|
+
let outputPaths = {};
|
51
|
+
let folder;
|
60
52
|
|
61
53
|
// resolve paths (config location + base + path)
|
62
54
|
for (folder in config.paths.source) {
|
@@ -81,7 +73,7 @@ module.exports = {
|
|
81
73
|
CSS URLs
|
82
74
|
--------------- */
|
83
75
|
|
84
|
-
// determine asset paths in
|
76
|
+
// determine asset paths in CSS by finding relative path between themes and output
|
85
77
|
// force forward slashes
|
86
78
|
|
87
79
|
config.paths.assets = {
|
@@ -99,7 +91,7 @@ module.exports = {
|
|
99
91
|
config.hasPermissions = true;
|
100
92
|
config.parsedPermissions = typeof config.permission === 'string' ? parseInt(config.permission, 8) : config.permission;
|
101
93
|
} else {
|
102
|
-
// pass blank object to avoid causing errors
|
94
|
+
// pass a blank object to avoid causing errors
|
103
95
|
config.permission = {};
|
104
96
|
config.hasPermissions = false;
|
105
97
|
config.parsedPermissions = {};
|
@@ -113,7 +105,7 @@ module.exports = {
|
|
113
105
|
config.globs = {};
|
114
106
|
}
|
115
107
|
|
116
|
-
// remove duplicates from component array
|
108
|
+
// remove duplicates from the component array
|
117
109
|
if (Array.isArray(config.components)) {
|
118
110
|
config.components = config.components.filter(function (component, index) {
|
119
111
|
return config.components.indexOf(component) === index;
|
@@ -123,12 +115,12 @@ module.exports = {
|
|
123
115
|
const components = Array.isArray(config.components) && config.components.length > 0
|
124
116
|
? config.components
|
125
117
|
: defaults.components;
|
126
|
-
const individuals =
|
118
|
+
const individuals = Array.isArray(config.individuals) && config.individuals.length > 0
|
127
119
|
? config.individuals
|
128
120
|
: [];
|
129
121
|
const componentsExceptIndividuals = components.filter((component) => !individuals.includes(component));
|
130
122
|
|
131
|
-
// takes component object and creates file glob matching selected components
|
123
|
+
// takes the component object and creates file glob matching selected components
|
132
124
|
config.globs.components = componentsExceptIndividuals.length === 1 ? componentsExceptIndividuals[0] : '{' + componentsExceptIndividuals.join(',') + '}';
|
133
125
|
|
134
126
|
// components that should be built, but excluded from main .css/.js files
|