git-truck 0.0.0-3e8160c6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ require('./build/index.js')
package/package.json ADDED
@@ -0,0 +1,125 @@
1
+ {
2
+ "name": "git-truck",
3
+ "version": "0.0.0-3e8160c6",
4
+ "private": false,
5
+ "description": "Visualizing a Git repository",
6
+ "license": "MIT",
7
+ "main": "./build/index.js",
8
+ "bin": "./cli.js",
9
+ "files": [
10
+ "LICENSE",
11
+ "README.md",
12
+ "build/",
13
+ "public/",
14
+ "cli.js"
15
+ ],
16
+ "scripts": {
17
+ "test": "jest --coverage",
18
+ "clean": "rimraf -rf build public/build .cache .temp",
19
+ "tsc": "tsc",
20
+ "build": "rimraf -rf build public/build && remix setup node && cross-env NODE_ENV=production remix build",
21
+ "dev": "cross-env NODE_ENV=development remix build && node dev.js",
22
+ "dev:remix": "cross-env NODE_ENV=development remix watch",
23
+ "prepublishOnly": "npm install && npm run build",
24
+ "dev:node": "cross-env NODE_ENV=development nodemon --watch ./build/index.js ./build/index.js --",
25
+ "start": "cross-env NODE_ENV=production node ./build/index.js",
26
+ "format": "eslint --cache --fix src/**/*.{ts,tsx} && prettier --loglevel warn --write src/**/*.{ts,tsx}",
27
+ "lint": "eslint --cache --fix src/**/*.{ts,tsx}"
28
+ },
29
+ "dependencies": {
30
+ "@react-aria/utils": "^3.11.3",
31
+ "@react-spring/web": "^9.4.4",
32
+ "@remix-run/dev": "^1.3.3",
33
+ "@remix-run/express": "^1.3.3",
34
+ "@remix-run/react": "^1.3.3",
35
+ "@remix-run/serve": "^1.3.3",
36
+ "@styled-icons/material": "^10.34.0",
37
+ "@styled-icons/material-outlined": "^10.34.0",
38
+ "@styled-icons/octicons": "^10.44.0",
39
+ "byte-size": "^8.1.0",
40
+ "compression": "^1.7.4",
41
+ "cross-env": "^7.0.3",
42
+ "d3-hierarchy": "^3.1.1",
43
+ "distinct-colors": "^3.0.0",
44
+ "dotenv": "^16.0.0",
45
+ "express": "^4.17.3",
46
+ "fs-extra": "^10.0.1",
47
+ "get-port": "^6.1.2",
48
+ "github-colors": "git+https://github.com/ozh/github-colors.git",
49
+ "ignore": "^5.2.0",
50
+ "lang-map": "^0.4.0",
51
+ "latest-version": "^6.0.0",
52
+ "morgan": "^1.10.0",
53
+ "nanospinner": "^1.0.0",
54
+ "open": "^8.4.0",
55
+ "react": "^17.0.2",
56
+ "react-dom": "^17.0.2",
57
+ "react-konami-code": "^2.2.2",
58
+ "react-use": "^17.3.2",
59
+ "react-use-size": "^2.0.4",
60
+ "remix": "^1.2.3",
61
+ "semver": "^7.3.7",
62
+ "styled-components": "^5.3.3",
63
+ "yargs": "^17.4.0"
64
+ },
65
+ "devDependencies": {
66
+ "@remix-run/eslint-config": "^1.2.3",
67
+ "@types/byte-size": "^8.1.0",
68
+ "@types/compression": "^1.7.2",
69
+ "@types/d3-hierarchy": "^3.0.2",
70
+ "@types/express": "^4.17.13",
71
+ "@types/jest": "^27.4.1",
72
+ "@types/morgan": "^1.9.3",
73
+ "@types/react": "^17.0.40",
74
+ "@types/react-dom": "^17.0.9",
75
+ "@types/semver": "^7.3.9",
76
+ "@types/semver-compare": "^1.0.1",
77
+ "@types/styled-components": "^5.1.24",
78
+ "@types/yargs": "^17.0.10",
79
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
80
+ "@typescript-eslint/parser": "^5.15.0",
81
+ "eslint": "^8.9.0",
82
+ "eslint-config-prettier": "^8.5.0",
83
+ "eslint-plugin-prettier": "^4.0.0",
84
+ "eslint-plugin-react": "^7.29.4",
85
+ "husky": "^7.0.4",
86
+ "jest": "^27.5.1",
87
+ "lint-staged": "^12.3.5",
88
+ "nodemon": "^2.0.15",
89
+ "npm-run-all": "^4.1.5",
90
+ "rimraf": "^3.0.2",
91
+ "ts-jest": "^27.1.3",
92
+ "typescript": "^4.6.2"
93
+ },
94
+ "jest": {
95
+ "preset": "ts-jest",
96
+ "testEnvironment": "node",
97
+ "setupFiles": [
98
+ "dotenv/config"
99
+ ],
100
+ "roots": [
101
+ "<rootDir>/src/"
102
+ ]
103
+ },
104
+ "prettier": {
105
+ "semi": false,
106
+ "printWidth": 120
107
+ },
108
+ "lint-staged": {
109
+ "src/**/*.{ts,tsx}": [
110
+ "eslint --cache --fix",
111
+ "prettier --write"
112
+ ]
113
+ },
114
+ "engines": {
115
+ "node": ">=14"
116
+ },
117
+ "repository": {
118
+ "type": "git",
119
+ "url": "git+https://github.com/git-truck/git-truck.git"
120
+ },
121
+ "bugs": {
122
+ "url": "https://github.com/git-truck/git-truck/issues"
123
+ },
124
+ "homepage": "https://github.com/git-truck/git-truck#readme"
125
+ }
@@ -0,0 +1,3 @@
1
+ .container {
2
+ position: relative;
3
+ }
@@ -0,0 +1,26 @@
1
+ .tree,
2
+ .blob {
3
+ position: relative;
4
+ cursor: pointer;
5
+ pointer-events: all;
6
+ }
7
+
8
+ .tree {
9
+ stroke: var(--border-color);
10
+ fill: transparent;
11
+ }
12
+
13
+ .blob:hover, .tree:hover {
14
+ stroke: darkslategray;
15
+ }
16
+
17
+ .object-name {
18
+ font-weight: bold;
19
+ font-size: 0.8rem;
20
+ fill: "#333";
21
+ }
22
+
23
+ .name-path {
24
+ fill: transparent;
25
+ pointer-events: none;
26
+ }
@@ -0,0 +1,52 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ body {
8
+ margin: 0;
9
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
10
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
11
+ sans-serif;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ min-height: 100vh;
15
+
16
+ background-color: var(--global-bg-color);
17
+ }
18
+
19
+ #root {
20
+ height: 100%;
21
+ }
22
+
23
+ .container {
24
+ height: 100%;
25
+ }
26
+
27
+ code {
28
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
29
+ monospace;
30
+ }
31
+
32
+ input, button, textarea, select {
33
+ font: inherit;
34
+ }
35
+
36
+ button:focus,
37
+ input:focus,
38
+ select:focus {
39
+ outline-color: var(--focused-outline-color);
40
+ }
41
+
42
+ @keyframes dash {
43
+ to {
44
+ stroke-dashoffset: 0;
45
+ }
46
+ }
47
+
48
+ @keyframes hide_initially {
49
+ to {
50
+ opacity: 1;
51
+ }
52
+ }
@@ -0,0 +1,25 @@
1
+ :root {
2
+ --unit: 8px;
3
+ --global-bg-color: hsl(210, 38%, 95%);
4
+ --side-panel-width-units: 35;
5
+ --side-panel-width: calc(var(--side-panel-width-units) * var(--unit));
6
+ --title-color: hsl(200, 5%, 30%);
7
+ --text-color: hsl(200, 5%, 25%);
8
+ --border-color: hsl(0, 0%, 70%);
9
+ --border-width: 1px;
10
+ --surface-color: hsl(0, 0%, 90%);
11
+ --border-color-alpha: hsla(0, 0%, 0%, 30%);
12
+ --focused-outline-color: hsl(216, 83%, 62%);
13
+ /* Generated with: https://shadows.brumm.af/ */
14
+ --shadow: 0.9px 0.9px 2.7px hsla(0, 0%, 0%, 0.07),
15
+ 2.2px 2.2px 6.9px hsla(0, 0%, 0%, 0.048),
16
+ 4.4px 4.4px 14.2px hsla(0, 0%, 0%, 0.039),
17
+ 9.1px 9.1px 29.2px hsla(0, 0%, 0%, 0.031), 25px 25px 80px hsla(0, 0%, 0%, 0.022);
18
+ --small-shadow: 0.9px 0.9px 1.7px hsla(0, 0%, 0%, 0.5);
19
+
20
+ --hover-transition-duration: 200ms;
21
+ --button-text-color: hsl(216, 0%, 30%);
22
+ --button-bg: hsl(216, 0%, 95%);
23
+ --button-hovered-bg: hsl(216, 0%, 90%);
24
+ --button-outline: hsl(216, 0%, 50%);
25
+ }