Skip to content

Commit

Permalink
No message
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsHolt committed Oct 17, 2023
1 parent 8d09874 commit d26d958
Show file tree
Hide file tree
Showing 39 changed files with 23,156 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"registry": "https://registry.bower.io"
}
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
last 1 version
ie >= 11
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"jquery" : true,
"es6" : true
},

"extends": "eslint:recommended",

"globals": {
"$" : false,
"L" : false,
"window" : false,
"document" : false,
"undefined" : false,
"moment" : false,
"Raven" : false
},

"rules": {
"strict" : "error",
"camelcase" : "off",
"no-mixed-spaces-and-tabs" : "warn",
"semi" : "warn",
"no-extra-semi" : "warn",
"no-extra-boolean-cast" : "off",
"no-shadow-restricted-names": "off",
"no-prototype-builtins" : "off"
}
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*.bak
/node_modules/
/bower_components/
/.sass-cache/
/dev/
/temp*/
/secret.json
54 changes: 54 additions & 0 deletions .uglifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//Compression options for UglifyJS
{
// "arguments": , // (default: true) -- replace arguments[index] with function parameter name whenever possible.
// "assignments": , // (default: true) -- apply optimizations to assignment expressions.
"booleans": false, // (default: true) -- various optimizations for boolean context, for example !!a ? b : c → a ? b : c
// "collapse_vars": , // (default: true) -- Collapse single-use non-constant variables, side effects permitting.
// "comparisons": , // (default: true) -- apply certain optimizations to binary nodes, e.g. !(a <= b) → a > b, attempts to negate binary nodes, e.g. a = !b && !c && !d && !e → a=!(b||c||d||e) etc.
// "conditionals": , // (default: true) -- apply optimizations for if-s and conditional expressions
// "dead_code": , // (default: true) -- remove unreachable code
// "directives": , // (default: true) -- remove redundant or non-standard directives
// "drop_console": , // (default: false) -- Pass true to discard calls to console.* functions. If you wish to drop a specific function call such as console.info and/or retain side effects from function arguments after dropping the function call then use pure_funcs instead.
// "drop_debugger": notDebug, // (default: true) -- remove debugger; statements
// "evaluate": , // (default: true) -- attempt to evaluate constant expressions
// "expression": , // (default: false) -- Pass true to preserve completion values from terminal statements without return, e.g. in bookmarklets.
// "functions": , // (default: true) -- convert declarations from varto function whenever possible.
// "global_defs": , // (default: {}) -- see conditional compilation
// "hoist_funs": , // (default: false) -- hoist function declarations
// "hoist_props": , // (default: true) -- hoist properties from constant object and array literals into regular variables subject to a set of constraints. For example: var o={p:1, q:2}; f(o.p, o.q); is converted to f(1, 2);. Note: hoist_props works best with mangle enabled, the compress option passes set to 2 or higher, and the compress option toplevel enabled.
// "hoist_vars": , // (default: false) -- hoist var declarations (this is false by default because it seems to increase the size of the output in general)
// "if_return": , // (default: true) -- optimizations for if/return and if/continue
// "inline": , // (default: true) -- inline calls to function with simple/return statement:
// false -- same as 0
// 0 -- disabled inlining
// 1 -- inline simple functions
// 2 -- inline functions with arguments
// 3 -- inline functions with arguments and variables
// true -- same as 3
// "join_vars": , // (default: true) -- join consecutive var statements
// "keep_fargs": , // (default: strict) -- Discard unused function arguments. Code which relies on Function.length will break if this is done indiscriminately, i.e. when passing true. Pass false to always retain function arguments.
"keep_fnames": true // (default: false) -- Pass true to prevent the compressor from discarding function names. Useful for code relying on Function.prototype.name. See also: the keep_fnames mangle option.
// "keep_infinity": , // (default: false) -- Pass true to prevent Infinity from being compressed into 1/0, which may cause performance issues on Chrome.
// "loops": , // (default: true) -- optimizations for do, while and for loops when we can statically determine the condition.
// "negate_iife": , // (default: true) -- negate "Immediately-Called Function Expressions" where the return value is discarded, to avoid the parens that the code generator would insert.
// "passes": , // (default: 1) -- The maximum number of times to run compress. In some cases more than one pass leads to further compressed code. Keep in mind more passes will take more time.
// "properties": , // (default: true) -- rewrite property access using the dot notation, for example foo["bar"] → foo.bar
// "pure_funcs": , // (default: null) -- You can pass an array of names and UglifyJS will assume that those functions do not produce side effects. DANGER: will not check if the name is redefined in scope. An example case here, for instance var q = Math.floor(a/b). If variable q is not used elsewhere, UglifyJS will drop it, but will still keep the Math.floor(a/b), not knowing what it does. You can pass pure_funcs: [ 'Math.floor' ] to let it know that this function won't produce any side effect, in which case the whole statement would get discarded. The current implementation adds some overhead (compression will be slower). Make sure symbols under pure_funcs are also under mangle.reserved to avoid mangling.
// "pure_getters": , // (default: "strict") -- If you pass true for this, UglifyJS will assume that object property access (e.g. foo.bar or foo["bar"]) doesn't have any side effects. Specify "strict" to treat foo.bar as side-effect-free only when foo is certain to not throw, i.e. not null or undefined.
// "reduce_funcs": , // (default: true) -- Allows single-use functions to be inlined as function expressions when permissible allowing further optimization. Enabled by default. Option depends on reduce_vars being enabled. Some code runs faster in the Chrome V8 engine if this option is disabled. Does not negatively impact other major browsers.
// "reduce_vars": , // (default: true) -- Improve optimization on variables assigned with and used as constant values.
// "sequences": , // (default: true) -- join consecutive simple statements using the comma operator. May be set to a positive integer to specify the maximum number of consecutive comma sequences that will be generated. If this option is set to true then the default sequences limit is 200. Set option to false or 0 to disable. The smallest sequences length is 2. A sequences value of 1 is grandfathered to be equivalent to true and as such means 200. On rare occasions the default sequences limit leads to very slow compress times in which case a value of 20 or less is recommended.
// "side_effects": , // (default: true) -- Pass false to disable potentially dropping functions marked as "pure". A function call is marked as "pure" if a comment annotation /*@__PURE__*/ or /*#__PURE__*/ immediately precedes the call. For example: /*@__PURE__*/foo();
// "switches": , // (default: true) -- de-duplicate and remove unreachable switch branches
// "toplevel": , // (default: false) -- drop unreferenced functions ("funcs") and/or variables ("vars") in the top level scope (false by default, true to drop both unreferenced functions and variables)
// "top_retain": , // (default: null) -- prevent specific toplevel functions and variables from unused removal (can be array, comma-separated, RegExp or function. Implies toplevel)
// "typeofs": , // (default: true) -- Transforms typeof foo == "undefined" into foo === void 0. Note: recommend to set this value to false for IE10 and earlier versions due to known issues.
// "unsafe": , // (default: false) -- apply "unsafe" transformations (discussion below)
// "unsafe_comps": , // (default: false) -- compress expressions like a <= b assuming none of the operands can be (coerced to) NaN.
// "unsafe_Function": , // (default: false) -- compress and mangle Function(args, code) when both args and code are string literals.
// "unsafe_math": , // (default: false) -- optimize numerical expressions like 2 * x * 3 into 6 * x, which may give imprecise floating point results.
// "unsafe_proto": , // (default: false) -- optimize expressions like Array.prototype.slice.call(a) into [].slice.call(a)
// "unsafe_regexp": , // (default: false) -- enable substitutions of variables with RegExp values the same way as if they are constants.
// "unsafe_undefined": , // (default: false) -- substitute void 0 if there is a variable named undefined in scope (variable name will be mangled, typically reduced to a single character)
// "unused": , // (default: true) -- drop unreferenced functions and variables (simple direct variable assignments do not count as references unless set to "keep_assign")
}
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--install.ignore-optional true
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

22 changes: 22 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2023 Niels Holt

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# fcoo-application-logo-and-color
>

## Description
css, scss-mixin, and js for setting application-colors and logo for FCOO web applications

## Installation
### bower
`bower install https://github.com/FCOO/fcoo-application-logo-and-color.git --save`

## Demo
http://FCOO.github.io/fcoo-application-logo-and-color/demo/

## Usage

<!--
### options
| Id | Type | Default | Description |
| :--: | :--: | :-----: | --- |
| options1 | boolean | true | If <code>true</code> the ... |
| options2 | string | null | Contain the ... |
### Methods
.methods1( arg1, arg2,...): Do something
.methods2( arg1, arg2,...): Do something else
-->


## Copyright and License
This plugin is licensed under the [MIT license](https://github.com/FCOO/fcoo-application-logo-and-color/LICENSE).

Copyright (c) 2023 [FCOO](https://github.com/FCOO)

## Contact information

Niels Holt [email protected]
38 changes: 38 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "fcoo-application-logo-and-color",
"version": "0.0.1",
"homepage": "https://github.com/FCOO/fcoo-application-logo-and-color",
"authors": [
"Niels Holt"
],
"description": "",
"main": [
"dist/fcoo-application-logo-and-color.js",
"dist/fcoo-application-logo-and-color.css"
],
"repository": {
"type": "git",
"url": "git://github.com/FCOO/fcoo-application-logo-and-color.git"
},
"dependencies": {
"jquery": "latest"
},
"devDependencies": {
"bourbon": "latest",
"modernizr-mixin": "latest",
"mathsass": "latest",
"modernizr-scss": "FCOO/modernizr-scss#latest",
"sass-color-helpers": "latest"
},
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"moduleType": [
"es6"
]
}
Loading

0 comments on commit d26d958

Please sign in to comment.