mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
13
web/node_modules/@emotion/utils/CHANGELOG.md
generated
vendored
Normal file
13
web/node_modules/@emotion/utils/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# @emotion/utils
|
||||
|
||||
## 0.11.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [`4c62ae9`](https://github.com/emotion-js/emotion/commit/4c62ae9447959d438928e1a26f76f1487983c968) [#1698](https://github.com/emotion-js/emotion/pull/1698) Thanks [@Andarist](https://github.com/Andarist)! - Add LICENSE file
|
||||
|
||||
## 0.11.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool
|
21
web/node_modules/@emotion/utils/LICENSE
generated
vendored
Normal file
21
web/node_modules/@emotion/utils/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Emotion team and other contributors
|
||||
|
||||
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.
|
45
web/node_modules/@emotion/utils/dist/utils.browser.cjs.js
generated
vendored
Normal file
45
web/node_modules/@emotion/utils/dist/utils.browser.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var isBrowser = "object" !== 'undefined';
|
||||
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
||||
var rawClassName = '';
|
||||
classNames.split(' ').forEach(function (className) {
|
||||
if (registered[className] !== undefined) {
|
||||
registeredStyles.push(registered[className]);
|
||||
} else {
|
||||
rawClassName += className + " ";
|
||||
}
|
||||
});
|
||||
return rawClassName;
|
||||
}
|
||||
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
|
||||
if ( // we only need to add the styles to the registered cache if the
|
||||
// class name could be used further down
|
||||
// the tree but if it's a string tag, we know it won't
|
||||
// so we don't have to add it to registered cache.
|
||||
// this improves memory usage since we can avoid storing the whole style string
|
||||
(isStringTag === false || // we need to always store it if we're in compat mode and
|
||||
// in node since emotion-server relies on whether a style is in
|
||||
// the registered cache to know whether a style is global or not
|
||||
// also, note that this check will be dead code eliminated in the browser
|
||||
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
||||
cache.registered[className] = serialized.styles;
|
||||
}
|
||||
|
||||
if (cache.inserted[serialized.name] === undefined) {
|
||||
var current = serialized;
|
||||
|
||||
do {
|
||||
var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
|
||||
|
||||
current = current.next;
|
||||
} while (current !== undefined);
|
||||
}
|
||||
};
|
||||
|
||||
exports.getRegisteredStyles = getRegisteredStyles;
|
||||
exports.insertStyles = insertStyles;
|
40
web/node_modules/@emotion/utils/dist/utils.browser.esm.js
generated
vendored
Normal file
40
web/node_modules/@emotion/utils/dist/utils.browser.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
var isBrowser = "object" !== 'undefined';
|
||||
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
||||
var rawClassName = '';
|
||||
classNames.split(' ').forEach(function (className) {
|
||||
if (registered[className] !== undefined) {
|
||||
registeredStyles.push(registered[className]);
|
||||
} else {
|
||||
rawClassName += className + " ";
|
||||
}
|
||||
});
|
||||
return rawClassName;
|
||||
}
|
||||
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
|
||||
if ( // we only need to add the styles to the registered cache if the
|
||||
// class name could be used further down
|
||||
// the tree but if it's a string tag, we know it won't
|
||||
// so we don't have to add it to registered cache.
|
||||
// this improves memory usage since we can avoid storing the whole style string
|
||||
(isStringTag === false || // we need to always store it if we're in compat mode and
|
||||
// in node since emotion-server relies on whether a style is in
|
||||
// the registered cache to know whether a style is global or not
|
||||
// also, note that this check will be dead code eliminated in the browser
|
||||
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
||||
cache.registered[className] = serialized.styles;
|
||||
}
|
||||
|
||||
if (cache.inserted[serialized.name] === undefined) {
|
||||
var current = serialized;
|
||||
|
||||
do {
|
||||
var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
|
||||
|
||||
current = current.next;
|
||||
} while (current !== undefined);
|
||||
}
|
||||
};
|
||||
|
||||
export { getRegisteredStyles, insertStyles };
|
54
web/node_modules/@emotion/utils/dist/utils.cjs.dev.js
generated
vendored
Normal file
54
web/node_modules/@emotion/utils/dist/utils.cjs.dev.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var isBrowser = typeof document !== 'undefined';
|
||||
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
||||
var rawClassName = '';
|
||||
classNames.split(' ').forEach(function (className) {
|
||||
if (registered[className] !== undefined) {
|
||||
registeredStyles.push(registered[className]);
|
||||
} else {
|
||||
rawClassName += className + " ";
|
||||
}
|
||||
});
|
||||
return rawClassName;
|
||||
}
|
||||
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
|
||||
if ( // we only need to add the styles to the registered cache if the
|
||||
// class name could be used further down
|
||||
// the tree but if it's a string tag, we know it won't
|
||||
// so we don't have to add it to registered cache.
|
||||
// this improves memory usage since we can avoid storing the whole style string
|
||||
(isStringTag === false || // we need to always store it if we're in compat mode and
|
||||
// in node since emotion-server relies on whether a style is in
|
||||
// the registered cache to know whether a style is global or not
|
||||
// also, note that this check will be dead code eliminated in the browser
|
||||
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
||||
cache.registered[className] = serialized.styles;
|
||||
}
|
||||
|
||||
if (cache.inserted[serialized.name] === undefined) {
|
||||
var stylesForSSR = '';
|
||||
var current = serialized;
|
||||
|
||||
do {
|
||||
var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
|
||||
|
||||
if (!isBrowser && maybeStyles !== undefined) {
|
||||
stylesForSSR += maybeStyles;
|
||||
}
|
||||
|
||||
current = current.next;
|
||||
} while (current !== undefined);
|
||||
|
||||
if (!isBrowser && stylesForSSR.length !== 0) {
|
||||
return stylesForSSR;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.getRegisteredStyles = getRegisteredStyles;
|
||||
exports.insertStyles = insertStyles;
|
7
web/node_modules/@emotion/utils/dist/utils.cjs.js
generated
vendored
Normal file
7
web/node_modules/@emotion/utils/dist/utils.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./utils.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./utils.cjs.dev.js");
|
||||
}
|
2
web/node_modules/@emotion/utils/dist/utils.cjs.js.flow
generated
vendored
Normal file
2
web/node_modules/@emotion/utils/dist/utils.cjs.js.flow
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// @flow
|
||||
export * from "../src/index.js";
|
29
web/node_modules/@emotion/utils/dist/utils.cjs.prod.js
generated
vendored
Normal file
29
web/node_modules/@emotion/utils/dist/utils.cjs.prod.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
|
||||
var isBrowser = "undefined" != typeof document;
|
||||
|
||||
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
||||
var rawClassName = "";
|
||||
return classNames.split(" ").forEach(function(className) {
|
||||
void 0 !== registered[className] ? registeredStyles.push(registered[className]) : rawClassName += className + " ";
|
||||
}), rawClassName;
|
||||
}
|
||||
|
||||
var insertStyles = function(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
if ((!1 === isStringTag || !1 === isBrowser && void 0 !== cache.compat) && void 0 === cache.registered[className] && (cache.registered[className] = serialized.styles),
|
||||
void 0 === cache.inserted[serialized.name]) {
|
||||
var stylesForSSR = "", current = serialized;
|
||||
do {
|
||||
var maybeStyles = cache.insert("." + className, current, cache.sheet, !0);
|
||||
isBrowser || void 0 === maybeStyles || (stylesForSSR += maybeStyles), current = current.next;
|
||||
} while (void 0 !== current);
|
||||
if (!isBrowser && 0 !== stylesForSSR.length) return stylesForSSR;
|
||||
}
|
||||
};
|
||||
|
||||
exports.getRegisteredStyles = getRegisteredStyles, exports.insertStyles = insertStyles;
|
49
web/node_modules/@emotion/utils/dist/utils.esm.js
generated
vendored
Normal file
49
web/node_modules/@emotion/utils/dist/utils.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
var isBrowser = typeof document !== 'undefined';
|
||||
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
||||
var rawClassName = '';
|
||||
classNames.split(' ').forEach(function (className) {
|
||||
if (registered[className] !== undefined) {
|
||||
registeredStyles.push(registered[className]);
|
||||
} else {
|
||||
rawClassName += className + " ";
|
||||
}
|
||||
});
|
||||
return rawClassName;
|
||||
}
|
||||
var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
|
||||
if ( // we only need to add the styles to the registered cache if the
|
||||
// class name could be used further down
|
||||
// the tree but if it's a string tag, we know it won't
|
||||
// so we don't have to add it to registered cache.
|
||||
// this improves memory usage since we can avoid storing the whole style string
|
||||
(isStringTag === false || // we need to always store it if we're in compat mode and
|
||||
// in node since emotion-server relies on whether a style is in
|
||||
// the registered cache to know whether a style is global or not
|
||||
// also, note that this check will be dead code eliminated in the browser
|
||||
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
||||
cache.registered[className] = serialized.styles;
|
||||
}
|
||||
|
||||
if (cache.inserted[serialized.name] === undefined) {
|
||||
var stylesForSSR = '';
|
||||
var current = serialized;
|
||||
|
||||
do {
|
||||
var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
|
||||
|
||||
if (!isBrowser && maybeStyles !== undefined) {
|
||||
stylesForSSR += maybeStyles;
|
||||
}
|
||||
|
||||
current = current.next;
|
||||
} while (current !== undefined);
|
||||
|
||||
if (!isBrowser && stylesForSSR.length !== 0) {
|
||||
return stylesForSSR;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { getRegisteredStyles, insertStyles };
|
28
web/node_modules/@emotion/utils/package.json
generated
vendored
Normal file
28
web/node_modules/@emotion/utils/package.json
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "@emotion/utils",
|
||||
"version": "0.11.3",
|
||||
"description": "internal utils for emotion",
|
||||
"main": "dist/utils.cjs.js",
|
||||
"module": "dist/utils.esm.js",
|
||||
"browser": {
|
||||
"./dist/utils.cjs.js": "./dist/utils.browser.cjs.js",
|
||||
"./dist/utils.esm.js": "./dist/utils.browser.esm.js"
|
||||
},
|
||||
"types": "types/index.d.ts",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test:typescript": "dtslint types"
|
||||
},
|
||||
"repository": "https://github.com/emotion-js/emotion/tree/master/packages/serialize",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"dist",
|
||||
"types"
|
||||
],
|
||||
"devDependencies": {
|
||||
"dtslint": "^0.3.0"
|
||||
}
|
||||
}
|
66
web/node_modules/@emotion/utils/src/index.js
generated
vendored
Normal file
66
web/node_modules/@emotion/utils/src/index.js
generated
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
// @flow
|
||||
import type { RegisteredCache, EmotionCache, SerializedStyles } from './types'
|
||||
|
||||
let isBrowser = typeof document !== 'undefined'
|
||||
|
||||
export function getRegisteredStyles(
|
||||
registered: RegisteredCache,
|
||||
registeredStyles: string[],
|
||||
classNames: string
|
||||
) {
|
||||
let rawClassName = ''
|
||||
|
||||
classNames.split(' ').forEach(className => {
|
||||
if (registered[className] !== undefined) {
|
||||
registeredStyles.push(registered[className])
|
||||
} else {
|
||||
rawClassName += `${className} `
|
||||
}
|
||||
})
|
||||
return rawClassName
|
||||
}
|
||||
|
||||
export const insertStyles = (
|
||||
cache: EmotionCache,
|
||||
serialized: SerializedStyles,
|
||||
isStringTag: boolean
|
||||
) => {
|
||||
let className = `${cache.key}-${serialized.name}`
|
||||
if (
|
||||
// we only need to add the styles to the registered cache if the
|
||||
// class name could be used further down
|
||||
// the tree but if it's a string tag, we know it won't
|
||||
// so we don't have to add it to registered cache.
|
||||
// this improves memory usage since we can avoid storing the whole style string
|
||||
(isStringTag === false ||
|
||||
// we need to always store it if we're in compat mode and
|
||||
// in node since emotion-server relies on whether a style is in
|
||||
// the registered cache to know whether a style is global or not
|
||||
// also, note that this check will be dead code eliminated in the browser
|
||||
(isBrowser === false && cache.compat !== undefined)) &&
|
||||
cache.registered[className] === undefined
|
||||
) {
|
||||
cache.registered[className] = serialized.styles
|
||||
}
|
||||
if (cache.inserted[serialized.name] === undefined) {
|
||||
let stylesForSSR = ''
|
||||
let current = serialized
|
||||
do {
|
||||
let maybeStyles = cache.insert(
|
||||
`.${className}`,
|
||||
current,
|
||||
cache.sheet,
|
||||
true
|
||||
)
|
||||
if (!isBrowser && maybeStyles !== undefined) {
|
||||
stylesForSSR += maybeStyles
|
||||
}
|
||||
current = current.next
|
||||
} while (current !== undefined)
|
||||
if (!isBrowser && stylesForSSR.length !== 0) {
|
||||
return stylesForSSR
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export * from './types'
|
31
web/node_modules/@emotion/utils/src/types.js
generated
vendored
Normal file
31
web/node_modules/@emotion/utils/src/types.js
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
// @flow
|
||||
/*::
|
||||
import { StyleSheet } from '@emotion/sheet'
|
||||
|
||||
*/
|
||||
|
||||
export type RegisteredCache = { [string]: string }
|
||||
|
||||
export type Interpolation = any
|
||||
|
||||
export type SerializedStyles = {|
|
||||
name: string,
|
||||
styles: string,
|
||||
map?: string,
|
||||
next?: SerializedStyles
|
||||
|}
|
||||
|
||||
export type EmotionCache = {
|
||||
inserted: { [string]: string | true },
|
||||
registered: RegisteredCache,
|
||||
sheet: StyleSheet,
|
||||
key: string,
|
||||
compat?: true,
|
||||
nonce?: string,
|
||||
insert: (
|
||||
selector: string,
|
||||
serialized: SerializedStyles,
|
||||
sheet: StyleSheet,
|
||||
shouldCache: boolean
|
||||
) => string | void
|
||||
}
|
46
web/node_modules/@emotion/utils/types/index.d.ts
generated
vendored
Normal file
46
web/node_modules/@emotion/utils/types/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export interface RegisteredCache {
|
||||
[key: string]: string
|
||||
}
|
||||
|
||||
export interface StyleSheet {
|
||||
container: HTMLElement
|
||||
nonce?: string
|
||||
key: string
|
||||
insert(rule: string): void
|
||||
flush(): void
|
||||
tags: Array<HTMLStyleElement>
|
||||
}
|
||||
|
||||
export interface EmotionCache {
|
||||
stylis(key: string, value: string): Array<string>
|
||||
inserted: {
|
||||
[key: string]: string | true
|
||||
}
|
||||
registered: RegisteredCache
|
||||
sheet: StyleSheet
|
||||
key: string
|
||||
compat?: true
|
||||
nonce?: string
|
||||
}
|
||||
|
||||
export interface SerializedStyles {
|
||||
name: string
|
||||
styles: string
|
||||
map?: string
|
||||
next?: SerializedStyles
|
||||
}
|
||||
|
||||
export const isBrowser: boolean
|
||||
export function getRegisteredStyles(
|
||||
registered: RegisteredCache,
|
||||
registeredStyles: Array<string>,
|
||||
classNames: string
|
||||
): string
|
||||
export function insertStyles(
|
||||
cache: EmotionCache,
|
||||
serialized: SerializedStyles,
|
||||
isStringTag: boolean
|
||||
): string | void
|
45
web/node_modules/@emotion/utils/types/tests.ts
generated
vendored
Normal file
45
web/node_modules/@emotion/utils/types/tests.ts
generated
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
import {
|
||||
EmotionCache,
|
||||
RegisteredCache,
|
||||
SerializedStyles,
|
||||
StyleSheet,
|
||||
getRegisteredStyles,
|
||||
insertStyles,
|
||||
isBrowser
|
||||
} from '@emotion/utils'
|
||||
|
||||
declare const testCache: EmotionCache
|
||||
declare const testRegisteredCache: RegisteredCache
|
||||
|
||||
getRegisteredStyles(testRegisteredCache, [], 'abc')
|
||||
getRegisteredStyles(testRegisteredCache, [], 'abc def')
|
||||
getRegisteredStyles(testRegisteredCache, [], 'dead end')
|
||||
getRegisteredStyles(testRegisteredCache, ['color: red;'], 'black parade')
|
||||
// $ExpectError
|
||||
getRegisteredStyles()
|
||||
// $ExpectError
|
||||
getRegisteredStyles(testRegisteredCache)
|
||||
|
||||
insertStyles(
|
||||
testCache,
|
||||
{
|
||||
name: 'abc',
|
||||
styles: 'color: green;background: red;'
|
||||
},
|
||||
false
|
||||
)
|
||||
// $ExpectError
|
||||
insertStyles()
|
||||
// $ExpectError
|
||||
insertStyles(testCache)
|
||||
// $ExpectError
|
||||
insertStyles(testCache, {})
|
||||
// $ExpectError
|
||||
insertStyles(testCache, {
|
||||
name: 'abc',
|
||||
styles: 'font-size: 18px;'
|
||||
})
|
||||
|
||||
const test0: boolean = isBrowser
|
||||
// $ExpectError
|
||||
const test1: number = isBrowser
|
27
web/node_modules/@emotion/utils/types/tsconfig.json
generated
vendored
Normal file
27
web/node_modules/@emotion/utils/types/tsconfig.json
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "../",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"module": "commonjs",
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"target": "es5",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": []
|
||||
},
|
||||
"include": [
|
||||
"./*.ts",
|
||||
"./*.tsx"
|
||||
]
|
||||
}
|
10
web/node_modules/@emotion/utils/types/tslint.json
generated
vendored
Normal file
10
web/node_modules/@emotion/utils/types/tslint.json
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extends": "dtslint/dtslint.json",
|
||||
"rules": {
|
||||
"array-type": [
|
||||
true,
|
||||
"generic"
|
||||
],
|
||||
"semicolon": false
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue