datajunction-ui 0.0.1-rc.18 → 0.0.1-rc.19
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/dj-logo.svg +10 -0
- package/package.json +19 -3
- package/src/app/icons/AlertIcon.jsx +32 -0
- package/src/app/icons/DJLogo.jsx +36 -0
- package/src/app/icons/DeleteIcon.jsx +21 -0
- package/src/app/icons/EditIcon.jsx +18 -0
- package/src/app/index.tsx +18 -0
- package/src/app/pages/AddEditNodePage/FormikSelect.jsx +33 -0
- package/src/app/pages/AddEditNodePage/FullNameField.jsx +36 -0
- package/src/app/pages/AddEditNodePage/Loadable.jsx +16 -0
- package/src/app/pages/AddEditNodePage/NodeQueryField.jsx +89 -0
- package/src/app/pages/AddEditNodePage/__tests__/FormikSelect.test.jsx +44 -0
- package/src/app/pages/AddEditNodePage/__tests__/FullNameField.test.jsx +29 -0
- package/src/app/pages/AddEditNodePage/__tests__/NodeQueryField.test.jsx +30 -0
- package/src/app/pages/AddEditNodePage/__tests__/__snapshots__/index.test.jsx.snap +84 -0
- package/src/app/pages/AddEditNodePage/__tests__/index.test.jsx +353 -0
- package/src/app/pages/AddEditNodePage/index.jsx +349 -0
- package/src/app/pages/NamespacePage/__tests__/__snapshots__/index.test.tsx.snap +51 -0
- package/src/app/pages/NamespacePage/index.jsx +36 -0
- package/src/app/pages/NodePage/NodeHistory.jsx +0 -1
- package/src/app/pages/NodePage/index.jsx +43 -26
- package/src/app/pages/Root/index.tsx +3 -3
- package/src/app/services/DJService.js +72 -1
- package/src/setupTests.ts +1 -1
- package/src/styles/index.css +82 -5
- package/src/styles/node-creation.scss +190 -0
- package/src/styles/styles.scss.d.ts +9 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// Fonts
|
|
2
|
+
form {
|
|
3
|
+
text-align: left;
|
|
4
|
+
|
|
5
|
+
select {
|
|
6
|
+
background-color: #eeeeee;
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
border-style: none;
|
|
9
|
+
padding: 1rem;
|
|
10
|
+
font-family: Lato, 'sans-serif';
|
|
11
|
+
font-size: 110%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input {
|
|
15
|
+
background-color: #eeeeee;
|
|
16
|
+
border-radius: 10px;
|
|
17
|
+
border-style: none;
|
|
18
|
+
border-width: 1px;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
padding: 1rem;
|
|
21
|
+
font-size: 110%;
|
|
22
|
+
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
23
|
+
rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
label {
|
|
27
|
+
font-family: 'Lato', sans-serif;
|
|
28
|
+
display: block;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
margin-bottom: 5px;
|
|
31
|
+
font-size: 90%;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.NodeCreationInput {
|
|
36
|
+
margin: 0.5rem 0;
|
|
37
|
+
display: inline-grid;
|
|
38
|
+
width: 35%;
|
|
39
|
+
padding: 0 20px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.DisplayNameInput,
|
|
43
|
+
.FullNameInput,
|
|
44
|
+
.NamespaceInput {
|
|
45
|
+
span {
|
|
46
|
+
color: red;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.DisplayNameInput,
|
|
51
|
+
.FullNameInput,
|
|
52
|
+
.NamespaceInput {
|
|
53
|
+
display: inline-grid;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
flex-wrap: nowrap;
|
|
56
|
+
margin: 1rem 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.DisplayNameInput {
|
|
60
|
+
width: 45%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.FullNameInput {
|
|
64
|
+
width: 100%;
|
|
65
|
+
|
|
66
|
+
input {
|
|
67
|
+
width: 75%;
|
|
68
|
+
color: #275c86;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.NamespaceInput {
|
|
73
|
+
padding: 0 20px;
|
|
74
|
+
width: 30%;
|
|
75
|
+
|
|
76
|
+
div:first-child {
|
|
77
|
+
flex: 1 0 auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
input {
|
|
81
|
+
width: 35%;
|
|
82
|
+
border: 0;
|
|
83
|
+
font-family: 'Lato', sans-serif;
|
|
84
|
+
padding: 5px 0;
|
|
85
|
+
font-size: 18px;
|
|
86
|
+
font-weight: 300;
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.SelectInput {
|
|
92
|
+
background-color: #eee;
|
|
93
|
+
border-radius: 10px;
|
|
94
|
+
border-style: none;
|
|
95
|
+
border-color: transparent;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
padding: 0.5rem;
|
|
98
|
+
font-size: 110%;
|
|
99
|
+
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
100
|
+
rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
|
|
101
|
+
}
|
|
102
|
+
.SelectInput div,
|
|
103
|
+
.SelectInput div div {
|
|
104
|
+
border: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.SelectInput div:first-child {
|
|
108
|
+
background-color: #eee !important;
|
|
109
|
+
border: none;
|
|
110
|
+
color: #0c4128;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.DescriptionInput {
|
|
114
|
+
width: 100%;
|
|
115
|
+
|
|
116
|
+
textarea {
|
|
117
|
+
width: 75%;
|
|
118
|
+
background-color: #eeeeee;
|
|
119
|
+
border-radius: 10px;
|
|
120
|
+
border-style: none;
|
|
121
|
+
border-width: 1px;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
padding: 1rem;
|
|
124
|
+
font-family: Lato, Sans;
|
|
125
|
+
font-size: 110%;
|
|
126
|
+
margin: 0.5rem 0;
|
|
127
|
+
height: 100px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.QueryInput {
|
|
132
|
+
width: 75%;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.NodeModeInput {
|
|
136
|
+
select {
|
|
137
|
+
background-color: #eeeeee;
|
|
138
|
+
border-radius: 10px;
|
|
139
|
+
border-style: none;
|
|
140
|
+
padding: 1rem;
|
|
141
|
+
font-family: Lato, Sans;
|
|
142
|
+
font-size: 110%;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
button {
|
|
147
|
+
display: block;
|
|
148
|
+
border-radius: 10px;
|
|
149
|
+
border-style: none;
|
|
150
|
+
padding: 1rem;
|
|
151
|
+
margin: 0.5rem 20px;
|
|
152
|
+
text-transform: uppercase;
|
|
153
|
+
font-family: Lato, Sans;
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
font-size: 110%;
|
|
156
|
+
background-size: 200% auto;
|
|
157
|
+
background-color: #ffd559;
|
|
158
|
+
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
159
|
+
rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.message {
|
|
164
|
+
padding: 20px;
|
|
165
|
+
opacity: 1;
|
|
166
|
+
margin-bottom: 15px;
|
|
167
|
+
border-radius: 0.5rem;
|
|
168
|
+
line-height: 1.25rem;
|
|
169
|
+
font-size: 1.2rem;
|
|
170
|
+
svg {
|
|
171
|
+
margin-right: 0.3rem;
|
|
172
|
+
height: 1.5rem;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.success {
|
|
176
|
+
background-color: rgb(245, 253, 242);
|
|
177
|
+
color: rgb(53, 110, 35);
|
|
178
|
+
svg {
|
|
179
|
+
filter: invert(34%) sepia(86%) saturate(465%) hue-rotate(60deg)
|
|
180
|
+
brightness(82%) contrast(80%);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
.alert {
|
|
184
|
+
background-color: rgb(253 242 242/1);
|
|
185
|
+
color: rgb(155 28 28/1);
|
|
186
|
+
svg {
|
|
187
|
+
filter: invert(16%) sepia(68%) saturate(2827%) hue-rotate(344deg)
|
|
188
|
+
brightness(96%) contrast(100%);
|
|
189
|
+
}
|
|
190
|
+
}
|