Skip to content

Commit cc189fd

Browse files
committed
Initial commit
0 parents  commit cc189fd

File tree

14 files changed

+826
-0
lines changed

14 files changed

+826
-0
lines changed

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"tslint.enable": true,
4+
"tslint.configFile": ".vscode/tslint.json",
5+
"editor.insertSpaces": false,
6+
"editor.tabSize": 4
7+
}

.vscode/tasks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "0.1.0",
5+
"command": "tsc",
6+
"isShellCommand": true,
7+
"args": ["-w", "-p", "."],
8+
"showOutput": "silent",
9+
"isWatching": true,
10+
"problemMatcher": "$tsc-watch"
11+
}

.vscode/tslint.json

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"rules": {
3+
"align": [
4+
true
5+
],
6+
"ban": [
7+
true,
8+
[ "_", "forEach" ],
9+
[ "_", "each" ],
10+
[ "$", "each" ],
11+
[ "angular", "forEach" ]
12+
],
13+
"class-name": true,
14+
"comment-format": [
15+
true,
16+
"check-space"
17+
],
18+
"curly": true,
19+
"forin": true,
20+
"interface-name": [
21+
true,
22+
"always-prefix"
23+
],
24+
"jsdoc-format": true,
25+
"label-position": true,
26+
"label-undefined": true,
27+
"member-ordering": [
28+
true,
29+
{ "order": "fields-first" }
30+
],
31+
"new-parens": true,
32+
"no-angle-bracket-type-assertion": true,
33+
"no-any": false,
34+
"no-arg": true,
35+
"no-bitwise": false,
36+
"no-conditional-assignment": true,
37+
"no-consecutive-blank-lines": false,
38+
"no-console": [
39+
true,
40+
"debug",
41+
"info",
42+
"time",
43+
"timeEnd",
44+
"trace"
45+
],
46+
"no-construct": true,
47+
"no-constructor-vars": false,
48+
"no-debugger": true,
49+
"no-default-export": true,
50+
"no-duplicate-key": true,
51+
"no-duplicate-variable": true,
52+
"no-empty": true,
53+
"no-eval": true,
54+
"no-inferrable-types": false,
55+
"no-internal-module": false,
56+
"no-invalid-this": [
57+
true,
58+
"check-function-in-method"
59+
],
60+
"no-reference": true,
61+
"no-require-imports": true,
62+
"no-shadowed-variable": true,
63+
"no-switch-case-fall-through": true,
64+
"no-unreachable": true,
65+
"no-unused-variable": true,
66+
"no-use-before-declare": true,
67+
"no-var-keyword": true,
68+
"no-var-requires": true,
69+
"one-variable-per-declaration": [true,
70+
"ignore-for-loop"
71+
],
72+
"quotemark": [
73+
true,
74+
"single",
75+
"avoid-escape"
76+
],
77+
"switch-default": true,
78+
"trailing-comma": [
79+
true,
80+
{
81+
"multiline": "always",
82+
"singleline": "never"
83+
}
84+
],
85+
"triple-equals": [
86+
true,
87+
"allow-null-check"
88+
],
89+
"typedef": [
90+
true,
91+
"call-signature",
92+
"parameter",
93+
"arrow-parameter",
94+
"property-declaration",
95+
"variable-declaration",
96+
"member-variable-declaration"
97+
],
98+
"typedef-whitespace": [
99+
true,
100+
{
101+
"call-signature": "nospace",
102+
"index-signature": "nospace",
103+
"parameter": "nospace",
104+
"property-declaration": "nospace",
105+
"variable-declaration": "nospace"
106+
},
107+
{
108+
"call-signature": "space",
109+
"index-signature": "space",
110+
"parameter": "space",
111+
"property-declaration": "space",
112+
"variable-declaration": "space"
113+
}
114+
],
115+
"use-isnan": true,
116+
"variable-name": [
117+
true,
118+
"allow-leading-underscore",
119+
"ban-keywords"
120+
],
121+
"whitespace": [
122+
true,
123+
"check-branch",
124+
"check-decl",
125+
"check-operator",
126+
"check-separator",
127+
"check-type"
128+
]
129+
}
130+
}

css/style.css

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.gitlab-tree-plugin-wrapper
2+
{
3+
display: flex;
4+
}
5+
6+
.gitlab-tree-plugin-left
7+
{
8+
flex: 0 0 250px;
9+
border: 1px solid #e5e5e5;
10+
margin-right: 15px;
11+
overflow: auto;
12+
}
13+
14+
.gitlab-tree-plugin-left .folder
15+
{
16+
padding-left: 20px;
17+
margin-bottom: 10px;
18+
}
19+
20+
21+
.gitlab-tree-plugin-left .folder .holder
22+
{
23+
white-space: nowrap;
24+
text-overflow: ellipsis;
25+
overflow: hidden;
26+
}
27+
28+
.gitlab-tree-plugin-left .folder .holder:before
29+
{
30+
font: normal normal normal 14px/1 FontAwesome;
31+
content: "\f114";
32+
padding-right: 7px;
33+
}
34+
35+
.gitlab-tree-plugin-left > .folder
36+
{
37+
padding-left: 0px;
38+
}
39+
40+
.gitlab-tree-plugin-left > .folder > .folder
41+
{
42+
padding-left: 15px;
43+
}
44+
45+
.gitlab-tree-plugin-left > .folder > .holder
46+
{
47+
background-color: #fafafa;
48+
border-bottom: 1px solid #e5e5e5;
49+
margin: 0;
50+
text-align: left;
51+
padding: 10px 16px;
52+
word-wrap: break-word;
53+
border-radius: 3px 3px 0 0;
54+
font-weight: bold;
55+
56+
margin-bottom: 15px;
57+
}
58+
59+
.gitlab-tree-plugin-left > .folder > .holder:before
60+
{
61+
content: "\f07c";
62+
}
63+
64+
.gitlab-tree-plugin-left .file
65+
{
66+
padding-left: 20px;
67+
}
68+
69+
.gitlab-tree-plugin-left a
70+
{
71+
display: block;
72+
}
73+
74+
.gitlab-tree-plugin-right
75+
{
76+
flex: 0 0 1;
77+
}

icons/icon128.png

548 Bytes
Loading

icons/icon16.png

273 Bytes
Loading

icons/icon19.png

242 Bytes
Loading

icons/icon48.png

325 Bytes
Loading

manifest.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "GitLab - Tree view",
3+
"homepage_url": "https://github.com/tomasbonco/gitlabtree",
4+
"author": "Tomáš Bončo",
5+
"version": "0.0.1",
6+
"manifest_version": 2,
7+
"description": "Provides folder structure view for code review.",
8+
"icons": {
9+
"16": "icons/icon16.png",
10+
"48": "icons/icon48.png",
11+
"128": "icons/icon128.png"
12+
},
13+
"permissions": [
14+
"activeTab"
15+
],
16+
"content_scripts": [
17+
{
18+
"matches": [
19+
"<all_urls>"
20+
],
21+
"js": [
22+
"src/inject/inject.js"
23+
],
24+
"css": [
25+
"css/style.css"
26+
]
27+
}
28+
]
29+
}

src/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)