update repo structure

This commit is contained in:
Rene Haas
2022-07-30 19:45:11 +02:00
parent 908f692569
commit 843d627715
158 changed files with 26998 additions and 9790 deletions
@@ -1,24 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
@@ -1,15 +0,0 @@
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
<stop stop-color="#41D1FF"/>
<stop offset="1" stop-color="#BD34FE"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFEA83"/>
<stop offset="0.0833333" stop-color="#FFDD35"/>
<stop offset="1" stop-color="#FFA800"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

@@ -1,13 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OverlayScrollbars example</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
@@ -1,17 +0,0 @@
{
"name": "overlayscrollbars-example",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^4.5.4",
"vite": "^2.9.9"
},
"dependencies": {
"overlayscrollbars": "file:./../overlayscrollbars"
}
}
@@ -1,8 +0,0 @@
import './style.css';
const app = document.querySelector<HTMLDivElement>('#app')!;
app.innerHTML = `
<h1>Hello Vite!</h1>
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a>
`;
@@ -1,8 +0,0 @@
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
-1
View File
@@ -1 +0,0 @@
/// <reference types="vite/client" />
@@ -1,20 +0,0 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
},
"include": ["src"]
}
@@ -1,7 +0,0 @@
{
"name": "OverlayScrollbars",
"exports": "auto",
"globals": {
"jquery": "jQuery"
}
}
@@ -1,19 +0,0 @@
export { default as not } from 'dir/not.png';
import j from 'jquery';
var abc = 'abc';
const a = 1 + 1;
var file = {
a,
};
const a$1 = 'a';
const b = 'b';
const c = 'c';
var index = j('div');
export default index;
export { a$1 as a, abc, b, c, file };
//# sourceMappingURL=overlayscrollbars-jquery.esm.js.map
@@ -1 +0,0 @@
{"version":3,"file":"overlayscrollbars-jquery.esm.js","sources":["../src/dir/abc.js","../src/file.js","../src/test.js","../src/index.js"],"sourcesContent":["export default 'abc';\r\n","const a = 1 + 1;\r\nexport default {\r\n a,\r\n};\r\n","export const a = 'a';\r\nexport const b = 'b';\r\nexport const c = 'c';\r\n","import abc from 'dir/abc';\r\nimport not from 'dir/not.png';\r\nimport file from 'file';\r\nimport j from 'jquery';\r\nimport { a, b, c } from 'test';\r\n\r\nexport default j('div');\r\nexport { a, b, c, file, abc, not };\r\n"],"names":["a","b","c","j"],"mappings":";;;AAAA,UAAe,KAAf;;ACAA,MAAMA,CAAC,GAAG,IAAI,CAAd;AACA,WAAe;AACbA,EAAAA;AADa,CAAf;;MCDaA,GAAC,GAAG;MACJC,CAAC,GAAG;MACJC,CAAC,GAAG;;ACIjB,YAAeC,CAAC,CAAC,KAAD,CAAhB;;;;"}
@@ -1 +0,0 @@
export{default as not}from"dir/not.png";import a from"jquery";var r="abc";var o={a:2};const t="a",e="b",p="c";var d=a("div");export default d;export{t as a,r as abc,e as b,p as c,o as file};
@@ -1,36 +0,0 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
? factory(exports, require('dir/not.png'), require('jquery'))
: typeof define === 'function' && define.amd
? define(['exports', 'dir/not.png', 'jquery'], factory)
: ((global = global || self), factory((global.OverlayScrollbars = {}), global.not_png, global.jQuery));
})(this, function (exports, not_png, j) {
'use strict';
not_png = not_png && Object.prototype.hasOwnProperty.call(not_png, 'default') ? not_png['default'] : not_png;
j = j && Object.prototype.hasOwnProperty.call(j, 'default') ? j['default'] : j;
var abc = 'abc';
var a = 1 + 1;
var file = {
a: a,
};
var a$1 = 'a';
var b = 'b';
var c = 'c';
var index = j('div');
exports.not = not_png;
exports.a = a$1;
exports.abc = abc;
exports.b = b;
exports.c = c;
exports.default = index;
exports.file = file;
Object.defineProperty(exports, '__esModule', { value: true });
});
//# sourceMappingURL=overlayscrollbars-jquery.js.map
@@ -1 +0,0 @@
{"version":3,"file":"overlayscrollbars-jquery.js","sources":["../src/dir/abc.js","../src/file.js","../src/test.js","../src/index.js"],"sourcesContent":["export default 'abc';\r\n","const a = 1 + 1;\r\nexport default {\r\n a,\r\n};\r\n","export const a = 'a';\r\nexport const b = 'b';\r\nexport const c = 'c';\r\n","import abc from 'dir/abc';\r\nimport not from 'dir/not.png';\r\nimport file from 'file';\r\nimport j from 'jquery';\r\nimport { a, b, c } from 'test';\r\n\r\nexport default j('div');\r\nexport { a, b, c, file, abc, not };\r\n"],"names":["a","b","c","j"],"mappings":";;;;;;;;;;;;AAAA,YAAe,KAAf;;ECAA,IAAMA,CAAC,GAAG,IAAI,CAAd;AACA,aAAe;EACbA,EAAAA,CAAC,EAADA;EADa,CAAf;;MCDaA,GAAC,GAAG;MACJC,CAAC,GAAG;MACJC,CAAC,GAAG;;ACIjB,cAAeC,CAAC,CAAC,KAAD,CAAhB;;;;;;;;;;;;"}
@@ -1 +0,0 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dir/not.png"),require("jquery")):"function"==typeof define&&define.amd?define(["exports","dir/not.png","jquery"],t):t((e=e||self).OverlayScrollbars={},e.not_png,e.jQuery)}(this,(function(e,t,r){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var o={a:2},n=(r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r)("div");e.not=t,e.a="a",e.abc="abc",e.b="b",e.c="c",e.default=n,e.file=o,Object.defineProperty(e,"__esModule",{value:!0})}));
-27
View File
@@ -1,27 +0,0 @@
{
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/jquery": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.0.tgz",
"integrity": "sha512-C7qQUjpMWDUNYQRTXsP5nbYYwCwwgy84yPgoTT7fPN69NH92wLeCtFaMsWeolJD1AF/6uQw3pYt62rzv83sMmw==",
"dev": true,
"requires": {
"@types/sizzle": "*"
}
},
"@types/sizzle": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.2.tgz",
"integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==",
"dev": true
},
"jquery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
}
}
}
@@ -1,11 +0,0 @@
{
"private": true,
"description": "OverlayScrollbars version 2",
"version": "0.0.1",
"peerDependencies": {
"jquery": "^3.5.1"
},
"devDependencies": {
"@types/jquery": "^3.5.0"
}
}
@@ -1 +0,0 @@
export default 'abc';
@@ -1,4 +0,0 @@
const a = 1 + 1;
export default {
a,
};
@@ -1,8 +0,0 @@
import abc from 'dir/abc';
import not from 'dir/not.png';
import file from 'file';
import j from 'jquery';
import { a, b, c } from 'test';
export default j('div');
export { a, b, c, file, abc, not };
@@ -1,3 +0,0 @@
export const a = 'a';
export const b = 'b';
export const c = 'c';
+1 -1
View File
@@ -1 +1 @@
module.exports = require('../../babel.config.base');
module.exports = require('@local/config/babel');
+2 -2
View File
@@ -99,7 +99,7 @@
flex: none;
box-sizing: border-box;
position: relative;
max-width: 1px;
max-width: 0px;
max-height: 1px;
padding: 0;
margin: 0;
@@ -107,7 +107,7 @@
overflow: hidden;
z-index: -1;
height: 0;
top: calc(-100% + 1px);
top: calc(100% + 1px);
contain: strict; }
.os-trinsic-observer:not(:empty) {
height: calc(100% + 1px);
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
module.exports = require('../../jest-playwright.config.base');
+1 -1
View File
@@ -1 +1 @@
module.exports = require('../../jest.config.base');
module.exports = require('@local/config/jest');
+2 -1
View File
@@ -16,6 +16,7 @@
"test:browser-dev": "jest --runInBand --detectOpenHandles --selectProjects browser-dev --testPathPattern",
"build": "rollup -c",
"test:playwright": "playwright test",
"posttest:playwright": "node playwright.coverage.js"
"posttest:playwright": "node playwright.coverage.js",
"root:tt": "node workspace.root.js root:some"
}
}
@@ -1 +1 @@
module.exports = require('../../playwright.config.base');
module.exports = require('@local/config/playwright');
@@ -1 +0,0 @@
require('../../playwright.coverage.base');
@@ -1 +0,0 @@
module.exports = require('../../playwright.rollup.base');
+1 -1
View File
@@ -1,5 +1,5 @@
const { terser: rollupTerser } = require('rollup-plugin-terser');
const createRollupConfig = require('../../rollup.config.base');
const createRollupConfig = require('@local/rollup');
const { devDependencies, peerDependencies } = require('./package.json');
module.exports = createRollupConfig({
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup } from '@/playwright/rollup';
import { playwrightRollup } from '@local/playwright-tooling';
import { test } from '@playwright/test';
import { InternalEnvironment } from 'environment';
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test } from '@playwright/test';
playwrightRollup();
@@ -1,5 +1,4 @@
// @ts-ignore
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
import { playwrightRollup, expectSuccess } from '@local/playwright-tooling';
import { test, Page } from '@playwright/test';
playwrightRollup();
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "@local/tsconfig",
"compilerOptions": {
"baseUrl": "./src",
"paths": {
+13 -1
View File
@@ -136,7 +136,7 @@ type StructureDynamicInitializationElement = DynamicInitializationElement<[
* If element is provided, the provided element takes all its responsibilities.
* DOM hierarchy isn't checked in this case, its assumed that hieararchy is correct in such a case.
*
* Null or Undefined means that the environment initialization strategy is used.
* undefined means that the default initialization strategy is used.
*/
interface StructureInitialization {
target: InitializationTargetElement;
@@ -224,12 +224,24 @@ interface State {
directionRTL: boolean;
destroyed: boolean;
}
interface ScrollbarElements {
scrollbar: HTMLElement;
track: HTMLElement;
handle: HTMLElement;
}
interface CloneableScrollbarElements extends ScrollbarElements {
clone(): ScrollbarElements;
}
interface Elements {
target: HTMLElement;
host: HTMLElement;
padding: HTMLElement;
viewport: HTMLElement;
content: HTMLElement;
scrollOffsetElement: HTMLElement;
scrollEventElement: HTMLElement | Document;
scrollbarHorizontal: CloneableScrollbarElements;
scrollbarVertical: CloneableScrollbarElements;
}
interface OnUpdatedEventListenerArgs {
updateHints: {
+1 -1
View File
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "@local/tsconfig",
"compilerOptions": {
"baseUrl": "./src/"
}