diff options
| author | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
| commit | 3f4c0720e1e3421431e7baa20882a4a4512a7fab (patch) | |
| tree | 734ca81d7d0841d8863e3f523ebba14c282dc681 /src/wwwroot/libraries/fomantic/tasks/config/admin | |
| download | fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.tar.xz fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.zip | |
Diffstat (limited to 'src/wwwroot/libraries/fomantic/tasks/config/admin')
10 files changed, 334 insertions, 0 deletions
diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/github.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/github.js new file mode 100644 index 0000000..a2c9e20 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/github.js @@ -0,0 +1,37 @@ +/******************************* + GitHub Login +*******************************/ +/* + Logs into GitHub using OAuth +*/ + +var + fs = require('fs'), + path = require('path'), + githubAPI = require('@octokit/rest'), + + // stores oauth info for GitHub API + oAuthConfig = path.join(__dirname, 'oauth.js'), + oAuth = fs.existsSync(oAuthConfig) + ? require(oAuthConfig) + : false, + github +; + +if(!oAuth) { + console.error('Must add oauth token for GitHub in tasks/config/admin/oauth.js'); +} + +github = new githubAPI({ + version : '3.0.0', + debug : true, + protocol : 'https', + timeout : 5000 +}); + +github.authenticate({ + type: 'oauth', + token: oAuth.token +}); + +module.exports = github; diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/oauth.example.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/oauth.example.js new file mode 100644 index 0000000..c4d864a --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/oauth.example.js @@ -0,0 +1,11 @@ +/* + Used to import GitHub Auth Token + To Automate GitHub Updates +*/ + +module.exports = { + token : 'AN-OAUTH2-TOKEN', + username : 'github-username', + name : 'Your Name', + email : 'user@email.com' +};
\ No newline at end of file diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/release.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/release.js new file mode 100644 index 0000000..0eb61e4 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/release.js @@ -0,0 +1,117 @@ +/******************************* + Release Settings +*******************************/ + +// release settings +module.exports = { + + // path to components for repos + source : './dist/components/', + + // modified asset paths for component repos + paths: { + source : '../themes/default/assets/', + output : 'assets/' + }, + + templates: { + bower : './tasks/config/admin/templates/bower.json', + composer : './tasks/config/admin/templates/composer.json', + package : './tasks/config/admin/templates/package.json', + meteor : { + css : './tasks/config/admin/templates/css-package.js', + component : './tasks/config/admin/templates/component-package.js', + less : './tasks/config/admin/templates/less-package.js', + }, + readme : './tasks/config/admin/templates/README.md', + notes : './RELEASE-NOTES.md' + }, + + org : 'Semantic-Org', + repo : 'Semantic-UI', + + // files created for package managers + files: { + composer : 'composer.json', + config : 'semantic.json', + npm : 'package.json', + meteor : 'package.js' + }, + + // root name for distribution repos + distRepoRoot : 'Semantic-UI-', + + // root name for single component repos + componentRepoRoot : 'UI-', + + // root name for package managers + packageRoot : 'semantic-ui-', + + // root path to repos + outputRoot : '../repos/', + + homepage : 'http://www.semantic-ui.com', + + // distributions that get separate repos + distributions: [ + 'LESS', + 'CSS' + ], + + // components that get separate repositories for bower/npm + components : [ + 'accordion', + 'ad', + 'api', + 'breadcrumb', + 'button', + 'card', + 'calendar', + 'checkbox', + 'comment', + 'container', + 'dimmer', + 'divider', + 'dropdown', + 'embed', + 'emoji', + 'feed', + 'flag', + 'form', + 'grid', + 'header', + 'icon', + 'image', + 'input', + 'item', + 'label', + 'list', + 'loader', + 'menu', + 'message', + 'modal', + 'nag', + 'placeholder', + 'popup', + 'progress', + 'rail', + 'slider', + 'rating', + 'reset', + 'reveal', + 'search', + 'segment', + 'shape', + 'sidebar', + 'site', + 'statistic', + 'step', + 'sticky', + 'tab', + 'table', + 'text', + 'toast', + 'transition', + 'visibility' + ] +}; diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/README.md b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/README.md new file mode 100644 index 0000000..ec1d4eb --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/README.md @@ -0,0 +1,32 @@ +# Semantic {Component} + +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 Semantic UI, and want to keep file size to a minimum. + +For the latest changes please see the [Release Notes](https://github.com/Semantic-Org/UI-{Component}/blob/master/RELEASE-NOTES.md) + +**Special Note** +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). + +If you're looking for the full version of Semantic including all components and build tools [check out the main project repository](https://github.com/Semantic-Org/Semantic-UI/tree/1.0) + +#### To install with Bower +``` +bower install semantic-ui-{component} +``` + +#### To install with NPM +``` +npm install semantic-ui-{component} +``` + +#### To install with Meteor +``` +meteor add semantic:ui-{component} +``` + + +## Addendum + +This element's definitions (required class names, html structures) are available in the [UI Docs](http://www.semantic-ui.com) + +Please consider checking out [all the benefits to theming](http://www.learnsemantic.com/guide/expert.html) before using these stand-alone releases. diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/bower.json b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/bower.json new file mode 100644 index 0000000..ab4951a --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/bower.json @@ -0,0 +1,29 @@ +{ + "name" : "Component", + "description" : "Component distribution", + "homepage" : "http://www.semantic-ui.com", + "author": { + "name" : "Jack Lukic", + "web" : "http://www.jacklukic.com" + }, + "ignore": [ + "./index.js" + ], + "keywords": [ + "semantic", + "ui", + "css3", + "framework" + ], + "license" : [ + "http://semantic-ui.mit-license.org/" + ], + "ignore": [ + "docs", + "node", + "server", + "spec", + "src", + "test" + ] +} diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/component-package.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/component-package.js new file mode 100644 index 0000000..74cd51b --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/component-package.js @@ -0,0 +1,14 @@ + +Package.describe({ + name : 'semantic:ui-{component}', + summary : 'Semantic UI - {Component}: Single component release', + version : '{version}', + git : 'git://github.com/Semantic-Org/UI-{Component}.git', +}); + +Package.onUse(function(api) { + api.versionsFrom('1.0'); + api.addFiles([ + {files} + ], 'client'); +}); diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/composer.json b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/composer.json new file mode 100644 index 0000000..ddc49b9 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/composer.json @@ -0,0 +1,22 @@ +{ + "name" : "fomantic/ui", + "description" : "Fomantic empowers designers and developers by creating a shared vocabulary for UI.", + "homepage" : "https://fomantic-ui.com", + "authors": [ + { + "name" : "Jack Lukic", + "email": "jacklukic@gmail.com", + "homepage" : "http://www.jacklukic.com", + "role" : "Creator" + } + ], + "keywords": [ + "fomantic", + "fomantic-ui", + "semantic", + "ui", + "css", + "framework" + ], + "license" : "MIT" +}
\ No newline at end of file diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/css-package.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/css-package.js new file mode 100644 index 0000000..0949ce3 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/css-package.js @@ -0,0 +1,34 @@ +var + where = 'client' // Adds files only to the client +; + +Package.describe({ + name : 'semantic:ui-css', + summary : 'Semantic UI - CSS Release of Semantic UI', + version : '{version}', + git : 'git://github.com/Semantic-Org/Semantic-UI-CSS.git', +}); + +Package.onUse(function(api) { + + api.versionsFrom('1.0'); + + api.use('jquery', 'client'); + + api.addFiles([ + // icons + 'themes/default/assets/fonts/icons.eot', + 'themes/default/assets/fonts/icons.svg', + 'themes/default/assets/fonts/icons.ttf', + 'themes/default/assets/fonts/icons.woff', + 'themes/default/assets/fonts/icons.woff2', + + // flags + 'themes/default/assets/images/flags.png', + + // release + 'semantic.css', + 'semantic.js' + ], 'client'); + +}); diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/less-package.js b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/less-package.js new file mode 100644 index 0000000..e2f8a25 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/less-package.js @@ -0,0 +1,21 @@ +var + where = 'client' // Adds files only to the client +; + +Package.describe({ + name : 'semantic:ui', + summary : 'Semantic UI - LESS Release of Semantic UI', + version : '{version}', + git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git', +}); + +Package.onUse(function(api) { + + api.versionsFrom('1.0'); + api.use('less', 'client'); + + api.addFiles([ + {files} + ], 'client'); + +}); diff --git a/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/package.json b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/package.json new file mode 100644 index 0000000..5d96785 --- /dev/null +++ b/src/wwwroot/libraries/fomantic/tasks/config/admin/templates/package.json @@ -0,0 +1,17 @@ +{ + "name": "semantic", + "version": "1.0.0", + "title": "Semantic UI", + "description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.", + "homepage": "http://www.semantic-ui.com", + "author": "Jack Lukic <jack@semantic-ui.com>", + "license": "MIT", + "repository": { + "type": "git", + "url": "git://github.com/Semantic-Org/Semantic-UI.git" + }, + "bugs": { + "url": "https://github.com/Semantic-Org/Semantic-UI/issues" + }, + "devDependencies": {} +} |
