Skip to content

Commit

Permalink
fix(chore): references from SUI to FUI
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de authored Dec 21, 2022
1 parent 3b7c177 commit 1d41122
Show file tree
Hide file tree
Showing 22 changed files with 73 additions and 58 deletions.
2 changes: 1 addition & 1 deletion examples/fixed.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>

<div class="ui main text container">
<h1 class="ui header">Semantic UI Fixed Template</h1>
<h1 class="ui header">Fomantic UI Fixed Template</h1>
<p>This is a basic fixed menu template using fixed size containers.</p>
<p>A text container is used for the main container, which is useful for single column layouts</p>
<img class="wireframe" src="assets/images/wireframe/media-paragraph.png">
Expand Down
2 changes: 1 addition & 1 deletion examples/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h3 class="first">Centering Content</h3>
</div>

<h3>Floating Rows</h3>
<p>Since Semantic UI's grid is based on flex box, a <code>left floated</code> item should come first, and a <code>right floated</code> item last in its row.</p>
<p>Since Fomantic UI's grid is based on flex box, a <code>left floated</code> item should come first, and a <code>right floated</code> item last in its row.</p>

<div class="ui grid">
<div class="left floated six wide column">
Expand Down
14 changes: 10 additions & 4 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,14 @@
useAPI: function () {
return $.fn.api !== undefined;
},
useElement: function (element) {
if ($.fn[element] !== undefined) {
return true;
}
module.error(error.noElement.replace('{element}', element));

return false;
},
},

animate: {
Expand Down Expand Up @@ -3613,7 +3621,7 @@
displayType: module.get.displayType(),
}).transition('show');
callback.call(element);
} else if ($.fn.transition !== undefined && $module.transition('is supported')) {
} else if (module.can.useElement('transition') && $module.transition('is supported')) {
$currentMenu
.transition({
animation: transition + ' in',
Expand All @@ -3629,8 +3637,6 @@
},
})
;
} else {
module.error(error.noTransition, transition);
}
}
},
Expand Down Expand Up @@ -4048,7 +4054,7 @@
method: 'The method you called is not defined.',
noAPI: 'The API module is required to load resources remotely',
noStorage: 'Saving remote data requires session storage',
noTransition: 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>',
noElement: 'This module requires ui {element}',
noNormalize: '"ignoreDiacritics" setting will be ignored. Browser does not support String().normalize(). You may consider including <https://cdn.jsdelivr.net/npm/unorm@1.4.1/lib/unorm.min.js> as a polyfill.',
},

Expand Down
17 changes: 13 additions & 4 deletions src/definitions/modules/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
animate: {
show: function (callback) {
callback = isFunction(callback) ? callback : function () {};
if (settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
if (settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
module.set.visible();
$popup
.transition({
Expand All @@ -431,8 +431,6 @@
},
})
;
} else {
module.error(error.noTransition);
}
},
hide: function (callback) {
Expand Down Expand Up @@ -1073,6 +1071,17 @@
},
},

can: {
useElement: function (element) {
if ($.fn[element] !== undefined) {
return true;
}
module.error(error.noElement.replace('{element}', element));

return false;
},
},

has: {
popup: function () {
return $popup && $popup.length > 0;
Expand Down Expand Up @@ -1445,7 +1454,7 @@
invalidPosition: 'The position you specified is not a valid position',
cannotPlace: 'Popup does not fit within the boundaries of the viewport',
method: 'The method you called is not defined.',
noTransition: 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>',
noElement: 'This module requires ui {element}',
notFound: 'The target or popup you specified does not exist on the page',
},

Expand Down
12 changes: 6 additions & 6 deletions src/semantic.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
███████╗███████╗███╗ ███╗ █████╗ ███╗ ██╗████████╗██╗ ██████╗ ██╗ ██╗██╗
██╔════╝██╔════╝████╗ ████║██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██║ ██║██║
███████╗█████╗ ██╔████╔██║███████║██╔██╗ ██║ ██║ ██║██║ ██║ ██║██║
╚════██║██╔══╝ ██║╚██╔╝██║██╔══██║██║╚██╗██║ ██║ ██║██║ ██║ ██║██║
███████║███████╗██║ ╚═╝ ██║██║ ██║██║ ╚████║ ██║ ██║╚██████╗ ╚██████╔╝██║
╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
███████╗ █████████╗ ███╗ █████╗ ███╗ ██╗████████╗██╗ ██████╗ ██╗ ██╗██╗
██╔════╝██╔═══██╗████╗ ████║██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██║ ██║██║
█████╗ ██║ ██║██╔████╔██║███████║██╔██╗ ██║ ██║ ██║██║ ██║ ██║██║
██╔══╝ ██║ ██║██║╚██╔╝██║██╔══██║██║╚██╗██║ ██║ ██║██║ ██║ ██║██║
██║ ╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ╚████║ ██║ ██║╚██████╗ ╚██████╔╝██║
╚═╚═════╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
Import this file into your LESS project to use Fomantic-UI without build tools
*/
Expand Down
4 changes: 2 additions & 2 deletions tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

## How to use

These tasks can be imported into your own gulpfile allowing you to avoid using Semantic's build tools
These tasks can be imported into your own gulpfile allowing you to avoid using Fomantic's build tools

```javascript
const watch = require('path/to/semantic/tasks/watch');
const watch = require('path/to/fomantic/tasks/watch');
gulp.task('watch ui', watch);
```
4 changes: 2 additions & 2 deletions tasks/admin/components/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module.exports = function (callback) {
.pipe(flatten())
.pipe(jsonEditor(function (bower) {
bower.name = packageName;
bower.description = capitalizedComponent + ' - Semantic UI';
bower.description = capitalizedComponent + ' - Fomantic UI';
if (isJavascript) {
bower.main = isCSS
? [component + '.js', component + '.css']
Expand Down Expand Up @@ -205,7 +205,7 @@ module.exports = function (callback) {
if (version) {
npm.version = version;
}
npm.title = 'Semantic UI - ' + capitalizedComponent;
npm.title = 'Fomantic UI - ' + capitalizedComponent;
npm.description = 'Single component release of ' + component;
npm.repository = {
type: 'git',
Expand Down
4 changes: 2 additions & 2 deletions tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const
;

module.exports = function (callback) {
console.info('Building Semantic');
console.info('Building Fomantic');

if (!install.isSetup()) {
console.error('Cannot find semantic.json. Run "gulp install" to set-up Semantic');
console.error('Cannot find semantic.json. Run "gulp install" to set-up Fomantic');

return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function build(src, config) {

function buildAssets(src, config, callback) {
if (!install.isSetup()) {
console.error('Cannot build assets. Run "gulp install" to set-up Semantic');
console.error('Cannot build assets. Run "gulp install" to set-up Fomantic');
callback();

return;
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function pack(type, compress) {

function buildCSS(src, type, config, opts, callback) {
if (!install.isSetup()) {
console.error('Cannot build CSS files. Run "gulp install" to set-up Semantic');
console.error('Cannot build CSS files. Run "gulp install" to set-up Fomantic');
callback();

return;
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function pack(type, compress) {

function buildJS(src, type, config, callback) {
if (!install.isSetup()) {
console.error('Cannot build Javascript. Run "gulp install" to set-up Semantic');
console.error('Cannot build Javascript. Run "gulp install" to set-up Fomantic');
callback();

return;
Expand Down
2 changes: 1 addition & 1 deletion tasks/collections/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
Lets you serve files to a local documentation instance
https://github.com/Semantic-Org/Semantic-UI-Docs/
https://github.com/fomantic/Fomantic-UI-Docs/
*/
module.exports = function (gulp) {
let
Expand Down
4 changes: 2 additions & 2 deletions tasks/collections/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
Lets you serve files to a local documentation instance
https://github.com/Semantic-Org/Semantic-UI-Docs/
https://github.com/fomantic/Fomantic-UI-Docs/
*/
module.exports = function (gulp) {
let
Expand All @@ -17,5 +17,5 @@ module.exports = function (gulp) {
gulp.task('install').description = 'Runs set-up';

gulp.task('check-install', checkInstall);
gulp.task('check-install').description = 'Displays current version of Semantic';
gulp.task('check-install').description = 'Displays current version of Fomantic';
};
2 changes: 1 addition & 1 deletion tasks/collections/various.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
Lets you serve files to a local documentation instance
https://github.com/Semantic-Org/Semantic-UI-Docs/
https://github.com/fomantic/Fomantic-UI-Docs/
*/
module.exports = function (gulp) {
let
Expand Down
10 changes: 5 additions & 5 deletions tasks/config/admin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = {
notes: './RELEASE-NOTES.md',
},

org: 'Semantic-Org',
repo: 'Semantic-UI',
org: 'fomantic',
repo: 'Fomantic-UI',

// files created for package managers
files: {
Expand All @@ -39,18 +39,18 @@ module.exports = {
},

// root name for distribution repos
distRepoRoot: 'Semantic-UI-',
distRepoRoot: 'Fomantic-UI-',

// root name for single component repos
componentRepoRoot: 'UI-',

// root name for package managers
packageRoot: 'semantic-ui-',
packageRoot: 'fomantic-ui-',

// root path to repos
outputRoot: '../repos/',

homepage: 'http://www.semantic-ui.com',
homepage: 'https://www.fomantic-ui.com',

// distributions that get separate repos
distributions: [
Expand Down
16 changes: 8 additions & 8 deletions tasks/config/admin/templates/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Semantic {Component}
# Fomantic {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.
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.

For the latest changes please see the [Release Notes](https://github.com/Semantic-Org/UI-{Component}/blob/master/RELEASE-NOTES.md)
For the latest changes please see the [Release Notes](https://github.com/fomantic/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)
If you're looking for the full version of Fomantic including all components and build tools [check out the main project repository](https://github.com/fomantic/Fomantic-UI)

#### To install with Bower
```
bower install semantic-ui-{component}
bower install fomantic-ui-{component}
```

#### To install with NPM
```
npm install semantic-ui-{component}
npm install fomantic-ui-{component}
```

#### To install with Meteor
```
meteor add semantic:ui-{component}
meteor add fomantic:ui-{component}
```


## Addendum

This element's definitions (required class names, html structures) are available in the [UI Docs](http://www.semantic-ui.com)
This element's definitions (required class names, html structures) are available in the [UI Docs](https://www.fomantic-ui.com)

Please consider checking out [all the benefits to theming](http://www.learnsemantic.com/guide/expert.html) before using these stand-alone releases.
5 changes: 3 additions & 2 deletions tasks/config/admin/templates/bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "Component",
"description" : "Component distribution",
"homepage" : "http://www.semantic-ui.com",
"homepage" : "https://www.fomantic-ui.com",
"author": {
"name" : "Jack Lukic",
"web" : "http://www.jacklukic.com"
Expand All @@ -10,13 +10,14 @@
"./index.js"
],
"keywords": [
"fomantic",
"semantic",
"ui",
"css3",
"framework"
],
"license" : [
"http://semantic-ui.mit-license.org/"
"https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md"
],
"ignore": [
"docs",
Expand Down
6 changes: 3 additions & 3 deletions tasks/config/admin/templates/component-package.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package.describe({
name: 'semantic:ui-{component}',
summary: 'Semantic UI - {Component}: Single component release',
name: 'fomantic:ui-{component}',
summary: 'Fomantic UI - {Component}: Single component release',
version: '{version}',
git: 'git://github.com/Semantic-Org/UI-{Component}.git',
git: 'git://github.com/fomantic/UI-{Component}.git',
});

Package.onUse(function (api) {
Expand Down
10 changes: 5 additions & 5 deletions tasks/config/admin/templates/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "semantic",
"name": "fomantic",
"version": "1.0.0",
"title": "Semantic UI",
"title": "Fomantic UI",
"description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.",
"homepage": "http://www.semantic-ui.com",
"homepage": "https://www.fomantic-ui.com",
"author": "Jack Lukic <jack@semantic-ui.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/Semantic-Org/Semantic-UI.git"
"url": "git://github.com/fomantic/Fomantic-UI.git"
},
"bugs": {
"url": "https://github.com/Semantic-Org/Semantic-UI/issues"
"url": "https://github.com/fomantic/Fomantic-UI/issues"
},
"devDependencies": {}
}
4 changes: 2 additions & 2 deletions tasks/docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ module.exports = function (callback) {
Build
--------------- */

console.info('Building Semantic for docs');
console.info('Building Fomantic for docs');

if (!install.isSetup()) {
console.error('Cannot build files. Run "gulp install" to set-up Semantic');
console.error('Cannot build files. Run "gulp install" to set-up Fomantic');
callback();

return;
Expand Down
5 changes: 2 additions & 3 deletions tasks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
For more notes
* Runs automatically after npm update (hooks)
* (NPM) Install - Will ask for where to put semantic (outside pm folder)
* (NPM) Upgrade - Will look for semantic install, copy over files and update if new version
* (NPM) Install - Will ask for where to put fomantic (outside pm folder)
* (NPM) Upgrade - Will look for fomantic install, copy over files and update if new version
* Standard installer runs asking for paths to site files etc
*/

Expand Down
2 changes: 1 addition & 1 deletion tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const
// export task
module.exports = function () {
if (!install.isSetup()) {
console.error('Cannot watch files. Run "gulp install" to set-up Semantic');
console.error('Cannot watch files. Run "gulp install" to set-up Fomantic');

return;
}
Expand Down

0 comments on commit 1d41122

Please sign in to comment.