Skip to content

Commit

Permalink
feat: update all styling and designs
Browse files Browse the repository at this point in the history
Final update to prepare for full release. Merge next -> main after this.
  • Loading branch information
SimeonC committed May 27, 2024
1 parent e6cf4f8 commit e0080dd
Show file tree
Hide file tree
Showing 208 changed files with 8,114 additions and 2,736 deletions.
40 changes: 8 additions & 32 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"projectOwner": "tablecheck",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
Expand All @@ -15,71 +13,49 @@
"name": "Wahid Magdy",
"avatar_url": "https://avatars.githubusercontent.com/u/3442546?v=4",
"profile": "https://github.com/wahidmagdy",
"contributions": [
"doc",
"example"
]
"contributions": ["doc", "example"]
},
{
"login": "SimeonC",
"name": "Simeon Cheeseman",
"avatar_url": "https://avatars.githubusercontent.com/u/1085899?v=4",
"profile": "https://github.com/SimeonC",
"contributions": [
"infra",
"example",
"code",
"test",
"doc"
]
"contributions": ["infra", "example", "code", "test", "doc"]
},
{
"login": "irmir",
"name": "irmir",
"avatar_url": "https://avatars.githubusercontent.com/u/59263605?v=4",
"profile": "https://github.com/irmir",
"contributions": [
"example",
"code"
]
"contributions": ["example", "code"]
},
{
"login": "gazpachu",
"name": "Joan Mira",
"avatar_url": "https://avatars.githubusercontent.com/u/1721288?v=4",
"profile": "http://joanmira.com/",
"contributions": [
"doc",
"code"
]
"contributions": ["doc", "code"]
},
{
"login": "johnnyshields",
"name": "Johnny Shields",
"avatar_url": "https://avatars.githubusercontent.com/u/27655?v=4",
"profile": "https://github.com/johnnyshields",
"contributions": [
"doc"
]
"contributions": ["doc"]
},
{
"login": "Findmitrey",
"name": "Dmitriy",
"avatar_url": "https://avatars.githubusercontent.com/u/19979106?v=4",
"profile": "https://github.com/Findmitrey",
"contributions": [
"example",
"code"
]
"contributions": ["example", "code"]
},
{
"login": "daniellizik",
"name": "Daniel Lizik",
"avatar_url": "https://avatars.githubusercontent.com/u/10506366?v=4",
"profile": "https://github.com/daniellizik",
"contributions": [
"code"
]
"contributions": ["code"]
}
],
"contributorsPerLine": 6,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ tsconfig.*.json
.@tablecheck
.rollup.cache
/cache
/.nx
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ coverage
assets
CHANGELOG.md
system/css/*.css
website/src/static/css/fonts.css
website/src/static/css/fonts.css
.nx
.gritmodules
storybook-static
tmp
.@tablecheck
89 changes: 89 additions & 0 deletions auditjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,86 @@
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-28863?component-type=npm&component-name=tar&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
},
{
"coordinates": "pkg:npm/micromatch@4.0.5",
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/micromatch@4.0.5?utm_source=auditjs&utm_medium=integration&utm_content=4.0.45",
"vulnerabilities": [
{
"id": "CVE-2024-4067",
"title": "[CVE-2024-4067] CWE-1333",
"description": "The NPM package `micromatch` is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in `micromatch.braces()` in `index.js` because the pattern `.*` will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persists. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.\n",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cve": "CVE-2024-4067",
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-4067?component-type=npm&component-name=micromatch&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
},
{
"coordinates": "pkg:npm/braces@3.0.2",
"description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/braces@3.0.2?utm_source=auditjs&utm_medium=integration&utm_content=4.0.45",
"vulnerabilities": [
{
"id": "CVE-2024-4068",
"title": "[CVE-2024-4068] CWE-1050",
"description": "The NPM package `braces` fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \"imbalanced braces\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.\n",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cve": "CVE-2024-4068",
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-4068?component-type=npm&component-name=braces&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
},
{
"coordinates": "pkg:npm/micromatch@3.1.10",
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/micromatch@3.1.10?utm_source=auditjs&utm_medium=integration&utm_content=4.0.45",
"vulnerabilities": [
{
"id": "CVE-2024-4067",
"title": "[CVE-2024-4067] CWE-1333",
"description": "The NPM package `micromatch` is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in `micromatch.braces()` in `index.js` because the pattern `.*` will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persists. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.\n",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cve": "CVE-2024-4067",
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-4067?component-type=npm&component-name=micromatch&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
},
{
"coordinates": "pkg:npm/braces@2.3.2",
"description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/braces@2.3.2?utm_source=auditjs&utm_medium=integration&utm_content=4.0.45",
"vulnerabilities": [
{
"id": "CVE-2024-4068",
"title": "[CVE-2024-4068] CWE-1050",
"description": "The NPM package `braces` fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \"imbalanced braces\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.\n",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cve": "CVE-2024-4068",
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-4068?component-type=npm&component-name=braces&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
},
{
"coordinates": "pkg:npm/ejs@3.1.9",
"description": "Embedded JavaScript templates",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/ejs@3.1.9?utm_source=auditjs&utm_medium=integration&utm_content=4.0.45",
"vulnerabilities": [
{
"id": "CVE-2024-33883",
"title": "[CVE-2024-33883] CWE-1321",
"description": "The ejs (aka Embedded JavaScript templates) package before 3.1.10 for Node.js lacks certain pollution protection.",
"cvssScore": 8.6,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H",
"cve": "CVE-2024-33883",
"reference": "https://ossindex.sonatype.org/vulnerability/CVE-2024-33883?component-type=npm&component-name=ejs&utm_source=auditjs&utm_medium=integration&utm_content=4.0.45"
}
]
}
],
"ignore": [
Expand Down Expand Up @@ -1518,6 +1598,15 @@
},
{
"id": "CVE-2024-28863"
},
{
"id": "CVE-2024-4067"
},
{
"id": "CVE-2024-4068"
},
{
"id": "CVE-2024-33883"
}
]
}
34 changes: 34 additions & 0 deletions localNodeModulesSync.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* USAGE: node localNodeModulesSync.mjs <target1> <target2> ...
* Run this after a build and it will copy the build lib folders
* into the node_modules of the specified target project folders.
*/
import path from 'path';

import fs from 'fs-extra';

const systemDir = path.join(process.cwd(), 'system');

const targets = process.argv.slice(2).map((t) => path.resolve(t));

const folders = fs
.readdirSync(systemDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name);

for (const target of targets) {
for (const folder of folders) {
const root = path.join(systemDir, folder);
const packageName = fs.readJsonSync(path.join(root, 'package.json')).name;
const dest = path.join(target, 'node_modules', packageName, 'lib');
if (!fs.existsSync(dest)) {
continue;
}
console.log(`Copying ${packageName} to ${target}`);
fs.emptyDirSync(dest);
fs.copySync(path.join(root, 'lib'), dest, { overwrite: true });
}
console.log(
'Stop any dev servers and run `rm -rf node_modules/.vite` to see changes'
);
}
25 changes: 25 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "format", "lint", "test", "tsc"]
}
}
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/lib"]
},
"lint": {
"dependsOn": ["^lint"]
},
"test": {
"dependsOn": ["^test"]
},
"tsc": {
"dependsOn": ["^tsc"]
}
}
}
Loading

0 comments on commit e0080dd

Please sign in to comment.