Compare commits
756
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a55a9d811f | ||
|
|
d639fde539 | ||
|
|
b4b68df0ae | ||
|
|
981b6406c0 | ||
|
|
5e199cfa0b | ||
|
|
6eb6d385a4 | ||
|
|
39d402049c | ||
|
|
9cf78dc536 | ||
|
|
fb93911abd | ||
|
|
49e665774b | ||
|
|
25eda48a3e | ||
|
|
83121a9276 | ||
|
|
28216a08d0 | ||
|
|
c684505ebf | ||
|
|
07a15f62bc | ||
|
|
33d2011a27 | ||
|
|
3548df523b | ||
|
|
e7d8be2a22 | ||
|
|
ce833e16c2 | ||
|
|
bb43bedd1b | ||
|
|
78c5a4d7bf | ||
|
|
0029c4c6d2 | ||
|
|
243948cf49 | ||
|
|
f5b7cda053 | ||
|
|
c41fc95f00 | ||
|
|
e83805b300 | ||
|
|
72672dfcdf | ||
|
|
01ebdeece7 | ||
|
|
3804b350b0 | ||
|
|
a90c8256ac | ||
|
|
cbb1de0747 | ||
|
|
31c13515f0 | ||
|
|
e26c21ec6a | ||
|
|
4f4539934c | ||
|
|
65a141da5c | ||
|
|
22317a454d | ||
|
|
e620174fa1 | ||
|
|
49d33649df | ||
|
|
9fbf37481b | ||
|
|
0cea547c4f | ||
|
|
6e251f7173 | ||
|
|
ef91cf73a8 | ||
|
|
fad5d9842f | ||
|
|
9f26001bc8 | ||
|
|
bcb9781035 | ||
|
|
70189e5d59 | ||
|
|
e40d3d1b04 | ||
|
|
a5ab8472a9 | ||
|
|
f2bdfb14c9 | ||
|
|
b4e0bfae0a | ||
|
|
2c13f6dcb3 | ||
|
|
cd8b0e7093 | ||
|
|
250ce9b4c4 | ||
|
|
334233b8b4 | ||
|
|
b2d7d9d14d | ||
|
|
5603603668 | ||
|
|
74c946175b | ||
|
|
915e66bd59 | ||
|
|
9b741d7ec0 | ||
|
|
561379dac2 | ||
|
|
3074dfd9ae | ||
|
|
1bfd5c9ff9 | ||
|
|
22a45b74e4 | ||
|
|
0ea255a2a3 | ||
|
|
2d67fb19aa | ||
|
|
229d704bb1 | ||
|
|
3a77f3c766 | ||
|
|
7dee9083bf | ||
|
|
0c27d7d9bd | ||
|
|
0ea1c5b379 | ||
|
|
f4c4fc430b | ||
|
|
38706a4615 | ||
|
|
c6f34e97e1 | ||
|
|
babc2e0a42 | ||
|
|
b83801cd1d | ||
|
|
ab4c934b26 | ||
|
|
6b74a02b30 | ||
|
|
cdb1f790c6 | ||
|
|
b4bf7ee4d1 | ||
|
|
d7a9ee6fd1 | ||
|
|
5d97e97a02 | ||
|
|
46ab81d988 | ||
|
|
986a709b06 | ||
|
|
eaab261be9 | ||
|
|
b5920e7d76 | ||
|
|
9cebcace5a | ||
|
|
5497d301ef | ||
|
|
b47f852c7f | ||
|
|
05681171df | ||
|
|
1cb463b85f | ||
|
|
8ba6ef7870 | ||
|
|
80ddb1fd5f | ||
|
|
f9010b3041 | ||
|
|
5382f56c89 | ||
|
|
ab80400e05 | ||
|
|
2807a9a019 | ||
|
|
f212f570b5 | ||
|
|
6d84915363 | ||
|
|
725c1bf71e | ||
|
|
e4f3dfc970 | ||
|
|
b5253a6bc0 | ||
|
|
edc2939d62 | ||
|
|
6c66ad4264 | ||
|
|
be12ca902a | ||
|
|
532336c95f | ||
|
|
4760951963 | ||
|
|
49170e8ba4 | ||
|
|
51cb76965a | ||
|
|
5d8d8fda64 | ||
|
|
901155057d | ||
|
|
e7cc80f9c6 | ||
|
|
19214d2c92 | ||
|
|
b3f8dc4f39 | ||
|
|
c27e0498e3 | ||
|
|
f90b9a192c | ||
|
|
4783c97432 | ||
|
|
c47bb6dc12 | ||
|
|
5599962713 | ||
|
|
82d82a7487 | ||
|
|
4628e4d51d | ||
|
|
b19a3e8a2a | ||
|
|
1ca7c2f734 | ||
|
|
1a17308ebc | ||
|
|
bb3ee67256 | ||
|
|
e2c19a5c3f | ||
|
|
6f3a254a52 | ||
|
|
58d0f59832 | ||
|
|
13947616f2 | ||
|
|
933b58e2e5 | ||
|
|
e882e4aa17 | ||
|
|
48ead9b9fc | ||
|
|
9f7ee32765 | ||
|
|
d34d8125c5 | ||
|
|
64f3832257 | ||
|
|
71cf4c580f | ||
|
|
e4f46da8f9 | ||
|
|
acad839530 | ||
|
|
46f06c8da1 | ||
|
|
9205cd7410 | ||
|
|
770383635f | ||
|
|
6c6ab09596 | ||
|
|
5e5eb236f1 | ||
|
|
3f4609d2a2 | ||
|
|
fb119ec3a3 | ||
|
|
2589171a3e | ||
|
|
1b65ead4be | ||
|
|
eebe11c094 | ||
|
|
88164a3e93 | ||
|
|
5292bbecf6 | ||
|
|
e9e780a3ce | ||
|
|
b796fd2581 | ||
|
|
e3415ca597 | ||
|
|
a02d7a2553 | ||
|
|
0f1b6b083b | ||
|
|
c8e1090610 | ||
|
|
ddb5cec68b | ||
|
|
bd3536ffb9 | ||
|
|
d41c1ee841 | ||
|
|
ce1d11b55a | ||
|
|
6f38d7cb1c | ||
|
|
1d364a3cc1 | ||
|
|
f3eae752e7 | ||
|
|
f44fdf84f8 | ||
|
|
044b0cd9c4 | ||
|
|
052d173ca1 | ||
|
|
c412be02c8 | ||
|
|
daf931a5c1 | ||
|
|
f48db81990 | ||
|
|
968dc9d8d7 | ||
|
|
1ce0be81c7 | ||
|
|
c325df7d21 | ||
|
|
77ec0a7fa6 | ||
|
|
d991d3c6d8 | ||
|
|
330a4419da | ||
|
|
eec316ef37 | ||
|
|
6c83ccf15f | ||
|
|
ab57e73c85 | ||
|
|
939365f7f4 | ||
|
|
b32831853a | ||
|
|
2d8b1a472c | ||
|
|
34bd7d3456 | ||
|
|
bae4a48ed2 | ||
|
|
fe4e66a405 | ||
|
|
5173efe21d | ||
|
|
e94dc8f0bc | ||
|
|
edcfba0948 | ||
|
|
dbc0bda0d2 | ||
|
|
69a6d0c684 | ||
|
|
38f7164dca | ||
|
|
b25d7ed939 | ||
|
|
8cc4873063 | ||
|
|
9c416977cc | ||
|
|
df26b33c79 | ||
|
|
ccf61b13f5 | ||
|
|
7e29e89eec | ||
|
|
5163f1cee0 | ||
|
|
7427253fb3 | ||
|
|
7f4ee3df34 | ||
|
|
b56e857c8f | ||
|
|
a3f6bc8bc4 | ||
|
|
f1833b6ba5 | ||
|
|
89d5e93f0e | ||
|
|
a7af71f158 | ||
|
|
a64801809a | ||
|
|
0ef5b9635e | ||
|
|
7cf8719d3f | ||
|
|
285387f39a | ||
|
|
adc9f2d49d | ||
|
|
cc9d943769 | ||
|
|
c3aaf097fc | ||
|
|
69f78d5f76 | ||
|
|
a69c8cb53c | ||
|
|
b96b5476cd | ||
|
|
708024605b | ||
|
|
b495a0142a | ||
|
|
4c85b86231 | ||
|
|
e46c37c7a2 | ||
|
|
35e1d8c2eb | ||
|
|
2832cd657b | ||
|
|
00bdb0bf55 | ||
|
|
8b4b2ecb18 | ||
|
|
d2c15d88d7 | ||
|
|
04343af119 | ||
|
|
e771458a32 | ||
|
|
733cd009aa | ||
|
|
91ce33f075 | ||
|
|
0f451562a3 | ||
|
|
e99bae6b62 | ||
|
|
cfbf99befa | ||
|
|
c600f77b84 | ||
|
|
cbe390f0ba | ||
|
|
b689983799 | ||
|
|
8cf817342d | ||
|
|
0e5ab4fc9c | ||
|
|
3216188a7e | ||
|
|
f2369f10e9 | ||
|
|
03283c3746 | ||
|
|
af860e0084 | ||
|
|
2e6e2815d6 | ||
|
|
9ba5cb776c | ||
|
|
cb592731c5 | ||
|
|
82f1f64d65 | ||
|
|
a7adaa8abd | ||
|
|
ce49da77ac | ||
|
|
0e8bc6b0e1 | ||
|
|
2f95b6e7c8 | ||
|
|
762517f448 | ||
|
|
201dd62c81 | ||
|
|
f6ea959c01 | ||
|
|
1d71efeccc | ||
|
|
93310265a2 | ||
|
|
3803169987 | ||
|
|
173a4a0aa0 | ||
|
|
4a21ea2b1a | ||
|
|
002c7002e7 | ||
|
|
c9382e0c15 | ||
|
|
68318ba410 | ||
|
|
9def104a84 | ||
|
|
c52629cda2 | ||
|
|
95b763d9ed | ||
|
|
7ed3876d19 | ||
|
|
2935e989f7 | ||
|
|
5f182b7fb6 | ||
|
|
fdc7198274 | ||
|
|
d779b98eda | ||
|
|
74a4c7da77 | ||
|
|
c24227daab | ||
|
|
5695d038ce | ||
|
|
87fcc7793b | ||
|
|
9597fef6d4 | ||
|
|
04fc3f89f4 | ||
|
|
c276d6d9b8 | ||
|
|
58663b6968 | ||
|
|
0bea7d4ff4 | ||
|
|
e12959b97d | ||
|
|
b966f2e6a5 | ||
|
|
772c4fe326 | ||
|
|
e2e0784a4a | ||
|
|
b577dcc3d5 | ||
|
|
c741f8b2c4 | ||
|
|
09cb005c7a | ||
|
|
c4aa0fd4b1 | ||
|
|
efe38cae1a | ||
|
|
50b1a9d422 | ||
|
|
4817cd48d6 | ||
|
|
d6b3b161d4 | ||
|
|
4205a510ca | ||
|
|
b2af4fe021 | ||
|
|
f916a40ebb | ||
|
|
d8dd7f6f17 | ||
|
|
0116657897 | ||
|
|
333220bc4a | ||
|
|
66f422bf68 | ||
|
|
4b3654d4a4 | ||
|
|
2da3d2955e | ||
|
|
3bde6ee880 | ||
|
|
1bbe09a7d0 | ||
|
|
577fb7cfab | ||
|
|
d4df6f7b78 | ||
|
|
cf121c24b6 | ||
|
|
690f4a7a76 | ||
|
|
56ed632842 | ||
|
|
314386131f | ||
|
|
c2a6938339 | ||
|
|
4433eadae3 | ||
|
|
53422cbd74 | ||
|
|
f128c58b03 | ||
|
|
34c7ce3913 | ||
|
|
93b0da92e1 | ||
|
|
1a4ce7b1d6 | ||
|
|
11d9ce5a53 | ||
|
|
90813f382f | ||
|
|
44e9bb95c5 | ||
|
|
4eb633389d | ||
|
|
77bff33162 | ||
|
|
524c9ec28a | ||
|
|
dfca398d7a | ||
|
|
0b17ec8bd9 | ||
|
|
14d4ba3c6c | ||
|
|
15997b3136 | ||
|
|
55abcc302e | ||
|
|
326186e7e8 | ||
|
|
8c89eabc2c | ||
|
|
6bd88aeaae | ||
|
|
f20c93e0b7 | ||
|
|
d0ec82b68e | ||
|
|
d571630134 | ||
|
|
fae6f15d19 | ||
|
|
4e9af8fb7b | ||
|
|
bf82bae8de | ||
|
|
93e49639fd | ||
|
|
ce8f209917 | ||
|
|
0d6a16ecaa | ||
|
|
00d1b622ef | ||
|
|
59d242507c | ||
|
|
3f770ebc9e | ||
|
|
88e83a37ee | ||
|
|
2558318d6c | ||
|
|
3d73a122ef | ||
|
|
0d5615a7a8 | ||
|
|
67fccaae2d | ||
|
|
7590fd7418 | ||
|
|
a25148bc06 | ||
|
|
7fd8bc825c | ||
|
|
4cab274e96 | ||
|
|
2fbb0153b4 | ||
|
|
212217b4e7 | ||
|
|
681145c147 | ||
|
|
f318bcdf15 | ||
|
|
43d2be6e99 | ||
|
|
7dc3916e1b | ||
|
|
69d8b89783 | ||
|
|
1ec774e13e | ||
|
|
071a07a8e3 | ||
|
|
480d4121da | ||
|
|
3ea94bec9a | ||
|
|
8f334577c7 | ||
|
|
359c667d84 | ||
|
|
58cba6552d | ||
|
|
0e47d23766 | ||
|
|
5309042a27 | ||
|
|
539a6db158 | ||
|
|
36aee4dc5c | ||
|
|
fa582bc835 | ||
|
|
dbe860e5b4 | ||
|
|
783a29c5db | ||
|
|
f7d3fffa8e | ||
|
|
01581b84b4 | ||
|
|
0162fc71d5 | ||
|
|
b63e1f6b18 | ||
|
|
53b0712a95 | ||
|
|
84b6111315 | ||
|
|
50d5f11580 | ||
|
|
8d8d90f355 | ||
|
|
e292f6b2e2 | ||
|
|
bdb58dc906 | ||
|
|
fc06f763e3 | ||
|
|
8a31dc797b | ||
|
|
e67b535296 | ||
|
|
898e582bcb | ||
|
|
f99f4d6f87 | ||
|
|
2aab1e1f92 | ||
|
|
ea4f012989 | ||
|
|
21dff1472f | ||
|
|
cfe8511ca1 | ||
|
|
9ea7cfeb2c | ||
|
|
eea548eeca | ||
|
|
541a269f80 | ||
|
|
63e0a2342e | ||
|
|
866911abfe | ||
|
|
e31699a3a4 | ||
|
|
88c3958419 | ||
|
|
8557b7b02e | ||
|
|
aa7c6a01b7 | ||
|
|
0b855bed3e | ||
|
|
7b938a2393 | ||
|
|
5b91325106 | ||
|
|
0659ec6155 | ||
|
|
19f10649c9 | ||
|
|
d226529b82 | ||
|
|
a3918baf18 | ||
|
|
bbbd24e310 | ||
|
|
763c92e8cc | ||
|
|
b5967a341b | ||
|
|
ce8606c24c | ||
|
|
8c18a8e1bf | ||
|
|
fa3ccac520 | ||
|
|
5388464f3a | ||
|
|
9650e2cb25 | ||
|
|
e1d781fdb3 | ||
|
|
565f0cd4bc | ||
|
|
b820044d80 | ||
|
|
d69dd39690 | ||
|
|
8cac5c213e | ||
|
|
d96b91ca95 | ||
|
|
485329b0a9 | ||
|
|
e3ca9fb4e0 | ||
|
|
04f3299873 | ||
|
|
f1de715996 | ||
|
|
10cd28c29e | ||
|
|
9a9b22679f | ||
|
|
75b438079e | ||
|
|
a42497d16a | ||
|
|
c21540f4ea | ||
|
|
48b1b93b6d | ||
|
|
7f0380c7de | ||
|
|
caa82de2cd | ||
|
|
14365690c4 | ||
|
|
3749f9fc85 | ||
|
|
19ec4a9c3f | ||
|
|
81b93abb6f | ||
|
|
aa0a63a9be | ||
|
|
a981e8c99a | ||
|
|
60ed742106 | ||
|
|
b99713d216 | ||
|
|
e2db0246fc | ||
|
|
48150741f1 | ||
|
|
ec88c54514 | ||
|
|
d88d0821b0 | ||
|
|
15c7610aa5 | ||
|
|
3860747977 | ||
|
|
85608f7f63 | ||
|
|
125d3db595 | ||
|
|
a9e4c5a7fc | ||
|
|
1433c04dfb | ||
|
|
c493e7249f | ||
|
|
79361eb451 | ||
|
|
1613e78eff | ||
|
|
6691cfbcf6 | ||
|
|
6fdcd8934d | ||
|
|
f6bff57092 | ||
|
|
1f0e6a4e98 | ||
|
|
d271c11821 | ||
|
|
38fb6e3860 | ||
|
|
148e8e9140 | ||
|
|
ebab7d9e7d | ||
|
|
6e781d876b | ||
|
|
df476b69cf | ||
|
|
1c438848cd | ||
|
|
813b5ee0e6 | ||
|
|
1a4b11f4f3 | ||
|
|
0559ca0f88 | ||
|
|
f37399a73b | ||
|
|
4af071ae4a | ||
|
|
5bee1671da | ||
|
|
49b015dca6 | ||
|
|
7c9a9f7b48 | ||
|
|
f8bb5e55dc | ||
|
|
eb5556a33d | ||
|
|
25f5d6fda4 | ||
|
|
96578a1860 | ||
|
|
bf1b04e615 | ||
|
|
782aea452e | ||
|
|
e72df550cd | ||
|
|
1842f1b810 | ||
|
|
0a1363a040 | ||
|
|
c8b3c9c5e7 | ||
|
|
0359638061 | ||
|
|
af79109a0e | ||
|
|
71124874c0 | ||
|
|
c4561a09ed | ||
|
|
f4ff8a4956 | ||
|
|
3a6acecfc9 | ||
|
|
79f8efe532 | ||
|
|
335637cb09 | ||
|
|
a2b78e1b35 | ||
|
|
9a0ce7ae68 | ||
|
|
4f394ed8f3 | ||
|
|
4618a46783 | ||
|
|
f509cc1f84 | ||
|
|
7b14f88986 | ||
|
|
04ff8b9ee1 | ||
|
|
91342ecdf6 | ||
|
|
d3827cf6e3 | ||
|
|
cd7edc9a77 | ||
|
|
6071d68c10 | ||
|
|
c225e70858 | ||
|
|
6167bb8173 | ||
|
|
f3e2b74dcf | ||
|
|
ac8ea8eebe | ||
|
|
d9d2586972 | ||
|
|
e4ba174084 | ||
|
|
271996e4db | ||
|
|
beae77dcfb | ||
|
|
f3af733856 | ||
|
|
40c651dd75 | ||
|
|
e8750f030d | ||
|
|
ef0fa3c360 | ||
|
|
257399d155 | ||
|
|
50f553324e | ||
|
|
ed66d9dc23 | ||
|
|
f6fd9d85c1 | ||
|
|
c691a8f6c2 | ||
|
|
49ed4b4e53 | ||
|
|
d364000463 | ||
|
|
b5bb247431 | ||
|
|
1be6670171 | ||
|
|
977035bad8 | ||
|
|
5065927474 | ||
|
|
dc8a933345 | ||
|
|
75f81cb144 | ||
|
|
c5c4f545e3 | ||
|
|
e2624a31f8 | ||
|
|
382b47dc7f | ||
|
|
b5d87dd1eb | ||
|
|
2ff182a4df | ||
|
|
0c7a26d42b | ||
|
|
e8eb447f49 | ||
|
|
1d5cc615e1 | ||
|
|
926dd38018 | ||
|
|
e718d7c923 | ||
|
|
15fad14f3e | ||
|
|
6fd383265e | ||
|
|
11baeece23 | ||
|
|
f302f4e0ba | ||
|
|
0e9e0beba5 | ||
|
|
12742b0d08 | ||
|
|
39c21a926e | ||
|
|
f7de4a1fab | ||
|
|
d8701f2e2d | ||
|
|
e3d1e17db8 | ||
|
|
511c2f8c04 | ||
|
|
4118f01d35 | ||
|
|
7788792cd7 | ||
|
|
5d6a47d666 | ||
|
|
4d263c6246 | ||
|
|
ed59406d6a | ||
|
|
366f668eeb | ||
|
|
3eef2423e5 | ||
|
|
c002a8034a | ||
|
|
3e811e2992 | ||
|
|
48388eff58 | ||
|
|
7039030ccf | ||
|
|
1806f3bb1c | ||
|
|
31b9372ea6 | ||
|
|
092b34b4bc | ||
|
|
11ae97fa98 | ||
|
|
0cb53d51bd | ||
|
|
6ab26e6529 | ||
|
|
7e339667e6 | ||
|
|
b3c51cd7c9 | ||
|
|
6260efcff6 | ||
|
|
7d663ef35f | ||
|
|
b6bbe24b18 | ||
|
|
f99a1d2f5d | ||
|
|
21778b22c7 | ||
|
|
210ba0d73a | ||
|
|
babeb1ec36 | ||
|
|
3f05fdb3b9 | ||
|
|
d378e14c1d | ||
|
|
34b47ea5d1 | ||
|
|
c084418cbf | ||
|
|
e5e441065c | ||
|
|
7a228e85ae | ||
|
|
bc52f7cd58 | ||
|
|
e9d9685237 | ||
|
|
a62e170a43 | ||
|
|
a72b1bc8d4 | ||
|
|
aeb5d28327 | ||
|
|
0d18a3f53e | ||
|
|
c872f6d1ba | ||
|
|
0423793d30 | ||
|
|
2220e87f5a | ||
|
|
a4184f96b7 | ||
|
|
734a20570d | ||
|
|
370c502539 | ||
|
|
f91a3386cf | ||
|
|
ebc139bee6 | ||
|
|
b91018071e | ||
|
|
031dbdbe25 | ||
|
|
b182a98558 | ||
|
|
e8f9eec93b | ||
|
|
36dcb05eba | ||
|
|
e8e2d93c06 | ||
|
|
395f6919a3 | ||
|
|
13d2717462 | ||
|
|
6341bca2a1 | ||
|
|
bbf19a9194 | ||
|
|
fe7916b518 | ||
|
|
856f8334a4 | ||
|
|
9cdb1842c1 | ||
|
|
683ceea619 | ||
|
|
6aca8f406b | ||
|
|
f3d14673bb | ||
|
|
7b0475e21e | ||
|
|
dfc5075616 | ||
|
|
2e9796b46b | ||
|
|
889c5c40cf | ||
|
|
c47ad47aa9 | ||
|
|
a85662d5b2 | ||
|
|
cfd4c88f58 | ||
|
|
50570827ff | ||
|
|
e0d171ef21 | ||
|
|
afeca27dc3 | ||
|
|
f57233f81f | ||
|
|
84d180f124 | ||
|
|
3430ddfec8 | ||
|
|
c90636f252 | ||
|
|
80e0e2c986 | ||
|
|
7a712faae4 | ||
|
|
2d4ef700b1 | ||
|
|
bf1f9caefc | ||
|
|
4786b4661b | ||
|
|
083c63e515 | ||
|
|
504338d02e | ||
|
|
14b70783a6 | ||
|
|
9cf4876007 | ||
|
|
11eedc9a5b | ||
|
|
236cb7c59e | ||
|
|
73eb8a94bc | ||
|
|
13956f820b | ||
|
|
1641fa3926 | ||
|
|
e2cc9a1280 | ||
|
|
8d2c9d2646 | ||
|
|
c7d89ae6fa | ||
|
|
1a5414e3d9 | ||
|
|
d7c5ab3fa3 | ||
|
|
8eaf0c25d7 | ||
|
|
13cac7a812 | ||
|
|
939a8bf6c7 | ||
|
|
66c9f8a70b | ||
|
|
69fb84e054 | ||
|
|
6cf6c80ec2 | ||
|
|
4b36f5b8d1 | ||
|
|
3291855813 | ||
|
|
accd4b19a7 | ||
|
|
71b7aaacd0 | ||
|
|
6495cd77de | ||
|
|
3a6e92605d | ||
|
|
9b7051ec71 | ||
|
|
dd471aa0e8 | ||
|
|
e91e135ef7 | ||
|
|
9fab335a30 | ||
|
|
e54be502c9 | ||
|
|
64e3afe2da | ||
|
|
acca8523ee | ||
|
|
f35492f544 | ||
|
|
ace0f17ca8 | ||
|
|
e39ec7b282 | ||
|
|
be695ae192 | ||
|
|
0eb8a16c60 | ||
|
|
2fa5dde807 | ||
|
|
b3bc7ca289 | ||
|
|
3a4811d541 | ||
|
|
fa3006cd64 | ||
|
|
45349ce060 | ||
|
|
c5a4a8a666 | ||
|
|
97cc7d94c8 | ||
|
|
3e2d5843f2 | ||
|
|
860dc1d742 | ||
|
|
a8a713049a | ||
|
|
7cbb821601 | ||
|
|
4251ea882c | ||
|
|
f153322971 | ||
|
|
a113e50cad | ||
|
|
e21a73f69c | ||
|
|
6c6193b43b | ||
|
|
4d77fb3d98 | ||
|
|
7b38dbe069 | ||
|
|
e76112dc98 | ||
|
|
db9653be01 | ||
|
|
6777fdfd8e | ||
|
|
632424a245 | ||
|
|
de1114a257 | ||
|
|
e912faa91b | ||
|
|
9a7f2713f9 | ||
|
|
81d8d58244 | ||
|
|
79551caae6 | ||
|
|
8800164ee0 | ||
|
|
c415e9c9d8 | ||
|
|
8276554a71 | ||
|
|
9badc0d0ac | ||
|
|
cfa449d88b | ||
|
|
1e2532e3e6 | ||
|
|
a656d4dc84 | ||
|
|
49b54f0959 | ||
|
|
324806d8dc | ||
|
|
fee10a3848 | ||
|
|
1947b1803a | ||
|
|
91e7616a02 | ||
|
|
7a74b79d3c | ||
|
|
423b0e24f9 | ||
|
|
1c90ec5deb | ||
|
|
81bab4475d | ||
|
|
e4901adfca | ||
|
|
489329a51f | ||
|
|
f06af0b3b1 | ||
|
|
29d1bd786f | ||
|
|
16ba158293 | ||
|
|
eef78bc729 | ||
|
|
0a72ea8d58 | ||
|
|
1437677173 | ||
|
|
26af94c11c | ||
|
|
078960ad5b | ||
|
|
839f795795 | ||
|
|
d7448b20a5 | ||
|
|
780d6e8540 | ||
|
|
1491c2b93e | ||
|
|
bf67554065 | ||
|
|
01838ceecc | ||
|
|
8fe28e68f9 | ||
|
|
4013c1b032 | ||
|
|
a661c2c8b1 | ||
|
|
bc08ff7275 | ||
|
|
0932a5ac5f | ||
|
|
61e7142c7f | ||
|
|
b273cd7090 | ||
|
|
18790f5a70 | ||
|
|
6d4957d102 | ||
|
|
0070eb1f9b | ||
|
|
9b9db59963 | ||
|
|
4a3d3ba570 | ||
|
|
3cb7f56ade | ||
|
|
ac0c91e8e2 | ||
|
|
0a2de72540 | ||
|
|
cee54e46f4 | ||
|
|
d7605c4a77 | ||
|
|
7dac7798dc | ||
|
|
f7da9b49fe | ||
|
|
f6928ce39a | ||
|
|
1460e36146 | ||
|
|
d6b1de3eeb | ||
|
|
de55081bd2 | ||
|
|
28b4394e4b | ||
|
|
5556d96d68 | ||
|
|
47ca035497 | ||
|
|
f651462730 | ||
|
|
c895d6ba80 | ||
|
|
83c3e0cf6e | ||
|
|
fbb52a2eb0 | ||
|
|
a9adf7bf7a | ||
|
|
6f6447b728 | ||
|
|
63afc13705 | ||
|
|
40c8afcbd2 | ||
|
|
68258e27f0 | ||
|
|
ea397ff3b7 |
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 180
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 7
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
- improvement
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: stale
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.vars.outputs.tag }}.${{ steps.date.outputs.date }}
|
||||
tag_name: ${{ steps.vars.outputs.tag }}-${{ steps.date.outputs.date }}
|
||||
release_name: Superalgos-Beta-v${{ steps.vars.outputs.tag }} Snapshot ${{ steps.date.outputs.date }}
|
||||
keep_num: 5
|
||||
keep_tags: false
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
# GitHub token, automatically provided to the action
|
||||
# (No need to define this secret in the repo settings)
|
||||
github_token: ${{ secrets.github_token }}
|
||||
args: "-c.extraMetadata.version=${{ steps.vars.outputs.tag }}.${{ steps.date.outputs.date }} -c build/electron-builder.json -p onTagOrDraft"
|
||||
args: "-c.extraMetadata.version=${{ steps.vars.outputs.tag }}-${{ steps.date.outputs.date }} -c build/electron-builder.json -p onTagOrDraft"
|
||||
|
||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||
# release the app after building
|
||||
|
||||
@@ -20,3 +20,4 @@ launch.json
|
||||
package-lock.json
|
||||
.idea
|
||||
dist
|
||||
/nbproject/private/
|
||||
Vendored
+2
-1
@@ -21,5 +21,6 @@
|
||||
"**/My-Data-Storage": true,
|
||||
"**/My-Log-Files": true,
|
||||
},
|
||||
"search.maintainFileSearchCache": true
|
||||
"search.maintainFileSearchCache": true,
|
||||
"editor.mouseWheelZoom": true
|
||||
}
|
||||
@@ -2,7 +2,7 @@ exports.newDesktopApp = function newDesktopApp() {
|
||||
|
||||
let thisObject = {
|
||||
userProfiles: undefined,
|
||||
p2pNetworkClient: undefined,
|
||||
p2pNetworkClientIdentity: undefined,
|
||||
p2pNetwork: undefined,
|
||||
p2pNetworkPeers: undefined,
|
||||
webSocketsInterface: undefined,
|
||||
@@ -25,13 +25,13 @@ exports.newDesktopApp = function newDesktopApp() {
|
||||
/*
|
||||
We set up ourselves as a Network Client.
|
||||
*/
|
||||
thisObject.p2pNetworkClient = SA.projects.network.modules.p2pNetworkClient.newNetworkModulesP2PNetworkClient()
|
||||
await thisObject.p2pNetworkClient.initialize()
|
||||
thisObject.p2pNetworkClientIdentity = SA.projects.network.modules.p2pNetworkClientIdentity.newNetworkModulesP2PNetworkClientIdentity()
|
||||
await thisObject.p2pNetworkClientIdentity.initialize()
|
||||
/*
|
||||
We will read all user profiles plugins and get from there our network identity.
|
||||
*/
|
||||
thisObject.userProfiles = SA.projects.network.modules.userProfiles.newNetworkModulesUserProfiles()
|
||||
await thisObject.userProfiles.initialize(global.env.DESKTOP_APP_SIGNING_ACCOUNT, thisObject.p2pNetworkClient)
|
||||
await thisObject.userProfiles.initialize(global.env.DESKTOP_APP_SIGNING_ACCOUNT, thisObject.p2pNetworkClientIdentity)
|
||||
/*
|
||||
We set up the P2P Network.
|
||||
*/
|
||||
@@ -43,7 +43,7 @@ exports.newDesktopApp = function newDesktopApp() {
|
||||
thisObject.p2pNetworkPeers = SA.projects.network.modules.p2pNetworkPeers.newNetworkModulesP2PNetworkPeers()
|
||||
await thisObject.p2pNetworkPeers.initialize(
|
||||
'Network Client',
|
||||
thisObject.p2pNetworkClient,
|
||||
thisObject.p2pNetworkClientIdentity,
|
||||
thisObject.p2pNetwork,
|
||||
global.env.DESKTOP_APP_MAX_OUTGOING_PEERS
|
||||
)
|
||||
@@ -68,11 +68,11 @@ exports.newDesktopApp = function newDesktopApp() {
|
||||
*/
|
||||
thisObject.webSocketsInterface = DK.projects.socialTrading.modules.webSocketsInterface.newDesktopModulesWebSocketsInterface()
|
||||
thisObject.webSocketsInterface.initialize()
|
||||
console.log('Desktop Client Web Sockets Interface ......................................... Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webSocketsPort)
|
||||
console.log('Desktop Client Web Sockets Interface ......................................... Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClientIdentity.node.config).webSocketsPort)
|
||||
|
||||
thisObject.httpInterface = DK.projects.socialTrading.modules.httpInterface.newDesktopModulesHttpInterface()
|
||||
thisObject.httpInterface.initialize()
|
||||
console.log('Desktop Client Http Interface ................................................ Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort)
|
||||
console.log('Desktop Client Http Interface ................................................ Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClientIdentity.node.config).webPort)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
const express = require("./backend/src/index");
|
||||
exports.newDesktopApp = function newDesktopApp() {
|
||||
|
||||
let thisObject = {
|
||||
userProfiles: undefined,
|
||||
p2pNetworkClientIdentity: undefined,
|
||||
p2pNetwork: undefined,
|
||||
p2pNetworkPeers: undefined,
|
||||
webSocketsInterface: undefined,
|
||||
webAppInterface: undefined,
|
||||
p2pNetworkInterface: undefined,
|
||||
socialGraph: undefined,
|
||||
run: run
|
||||
}
|
||||
|
||||
DK.desktopApp = thisObject
|
||||
|
||||
return thisObject
|
||||
|
||||
async function run() {
|
||||
|
||||
await setupNetwork()
|
||||
await setupServices()
|
||||
|
||||
async function setupNetwork() {
|
||||
/*
|
||||
We set up ourselves as a Network Client.
|
||||
*/
|
||||
thisObject.p2pNetworkClientIdentity = SA.projects.network.modules.p2pNetworkClientIdentity.newNetworkModulesP2PNetworkClientIdentity()
|
||||
await thisObject.p2pNetworkClientIdentity.initialize()
|
||||
/*
|
||||
We will read all user profiles plugins and get from there our network identity.
|
||||
*/
|
||||
thisObject.userProfiles = SA.projects.network.modules.userProfiles.newNetworkModulesUserProfiles()
|
||||
await thisObject.userProfiles.initialize(global.env.DESKTOP_APP_SIGNING_ACCOUNT, thisObject.p2pNetworkClientIdentity)
|
||||
/*
|
||||
We set up the P2P Network.
|
||||
*/
|
||||
thisObject.p2pNetwork = SA.projects.network.modules.p2pNetwork.newNetworkModulesP2PNetwork()
|
||||
await thisObject.p2pNetwork.initialize('Network Client')
|
||||
/*
|
||||
Set up the connections to network nodes.
|
||||
*/
|
||||
thisObject.p2pNetworkPeers = SA.projects.network.modules.p2pNetworkPeers.newNetworkModulesP2PNetworkPeers()
|
||||
await thisObject.p2pNetworkPeers.initialize(
|
||||
'Network Client',
|
||||
thisObject.p2pNetworkClientIdentity,
|
||||
thisObject.p2pNetwork,
|
||||
global.env.DESKTOP_APP_MAX_OUTGOING_PEERS
|
||||
)
|
||||
}
|
||||
|
||||
async function setupServices() {
|
||||
/*
|
||||
This is where we will process all the messages comming from our web app.
|
||||
*/
|
||||
thisObject.webAppInterface = DK.projects.socialTrading.modules.webAppInterface.newSocialTradingModulesWebAppInterface() // this sends events to the p2p network
|
||||
/*
|
||||
This is where we will process all the events comming from the p2p network.
|
||||
*/
|
||||
thisObject.p2pNetworkInterface = DK.projects.socialTrading.modules.p2pNetworkInterface.newSocialTradingModulesP2PNetworkInterface() // this receives events from p2p network
|
||||
/*
|
||||
This is the Personal Social Graph for the user running this App.
|
||||
*/
|
||||
thisObject.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph() //
|
||||
await thisObject.socialGraph.initialize()
|
||||
|
||||
|
||||
let express = require('./backend/src/index')
|
||||
let expressPort = JSON.parse(DK.desktopApp.p2pNetworkClientIdentity.node.config).webPort;
|
||||
express.startExpress(expressPort,SA);
|
||||
console.log('express Interface ................................................ Listening at port ' + expressPort);
|
||||
|
||||
/*TODO change this to have a definite port number*/
|
||||
let react = require('./frontend/scripts/start')
|
||||
let reactPort = (+JSON.parse(DK.desktopApp.p2pNetworkClientIdentity.node.config).webPort + 1);
|
||||
react.start(reactPort);
|
||||
console.log('react Interface ................................................ Listening at port ' + reactPort);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,367 @@
|
||||
function newWebApp() {
|
||||
/*
|
||||
In it's current state of development, the Web App only has one module.
|
||||
|
||||
Everything is being coded here until some structure emerges.
|
||||
*/
|
||||
let thisObject = {
|
||||
messageReceived: messageReceived,
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
}
|
||||
|
||||
return thisObject
|
||||
|
||||
function finalize() {
|
||||
|
||||
}
|
||||
|
||||
async function initialize() {
|
||||
try {
|
||||
setupRootObject(UI, 'UI')
|
||||
setupRootObject(SA, 'SA')
|
||||
await UI.projects.socialTrading.modules.webSocketsWebAppClient.initialize()
|
||||
loadWUserProfileTimeline()
|
||||
loadWhoToFollow()
|
||||
setupEventHandlers()
|
||||
} catch (err) {
|
||||
console.log('[ERROR] initialize -> err.stack = ' + err.stack)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
function setupRootObject(rootObject, rootObjectName) {
|
||||
/!*
|
||||
Here we will setup the UI object, with all the
|
||||
projects and spaces.
|
||||
*!/
|
||||
for (let i = 0; i < UI.schemas.projectSchema.length; i++) {
|
||||
let projectDefinition = UI.schemas.projectSchema[i]
|
||||
rootObject.projects[projectDefinition.propertyName] = {}
|
||||
let projectInstance = rootObject.projects[projectDefinition.propertyName]
|
||||
|
||||
projectInstance.utilities = {}
|
||||
projectInstance.globals = {}
|
||||
projectInstance.functionLibraries = {}
|
||||
projectInstance.modules = {}
|
||||
|
||||
if (projectDefinition[rootObjectName] === undefined) {
|
||||
continue
|
||||
}
|
||||
|
||||
/!* Set up Globals of this Project *!/
|
||||
if (projectDefinition[rootObjectName].globals !== undefined) {
|
||||
for (let j = 0; j < projectDefinition[rootObjectName].globals.length; j++) {
|
||||
let globalDefinition = projectDefinition[rootObjectName].globals[j]
|
||||
|
||||
if (exports[globalDefinition.functionName] === undefined) {
|
||||
projectInstance.globals[globalDefinition.propertyName] = eval(globalDefinition.functionName + '()')
|
||||
} else {
|
||||
projectInstance.globals[globalDefinition.propertyName] = eval('exports.' + globalDefinition.functionName + '()')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/!* Set up Utilities of this Project *!/
|
||||
if (projectDefinition[rootObjectName].utilities !== undefined) {
|
||||
for (let j = 0; j < projectDefinition[rootObjectName].utilities.length; j++) {
|
||||
let utilityDefinition = projectDefinition[rootObjectName].utilities[j]
|
||||
|
||||
if (exports[utilityDefinition.functionName] === undefined) {
|
||||
projectInstance.utilities[utilityDefinition.propertyName] = eval(utilityDefinition.functionName + '()')
|
||||
} else {
|
||||
projectInstance.utilities[utilityDefinition.propertyName] = eval('exports.' + utilityDefinition.functionName + '()')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/!* Set up Function Libraries of this Project *!/
|
||||
if (projectDefinition[rootObjectName].functionLibraries !== undefined) {
|
||||
for (let j = 0; j < projectDefinition[rootObjectName].functionLibraries.length; j++) {
|
||||
let functionLibraryDefinition = projectDefinition[rootObjectName].functionLibraries[j]
|
||||
|
||||
if (exports[functionLibraryDefinition.functionName] === undefined) {
|
||||
projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()')
|
||||
} else {
|
||||
projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/!* Set up Modules of this Project *!/
|
||||
if (projectDefinition[rootObjectName].modules !== undefined) {
|
||||
for (let j = 0; j < projectDefinition[rootObjectName].modules.length; j++) {
|
||||
let functionLibraryDefinition = projectDefinition[rootObjectName].modules[j]
|
||||
|
||||
if (exports[functionLibraryDefinition.functionName] === undefined) {
|
||||
projectInstance.modules[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()')
|
||||
} else {
|
||||
projectInstance.modules[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
async function loadWUserProfileTimeline() {
|
||||
let queryMessage = {
|
||||
queryType: SA.projects.socialTrading.globals.queryTypes.EVENTS,
|
||||
emitterUserProfileId: undefined,
|
||||
initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_LAST,
|
||||
amountRequested: 100,
|
||||
direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_PAST
|
||||
}
|
||||
|
||||
let query = {
|
||||
requestType: 'Query',
|
||||
queryMessage: JSON.stringify(queryMessage)
|
||||
}
|
||||
|
||||
await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage(
|
||||
JSON.stringify(query)
|
||||
)
|
||||
.then(console.log)
|
||||
.catch(onError)
|
||||
|
||||
function onError(errorMessage) {
|
||||
console.log('[ERROR] Query not executed. ' + errorMessage)
|
||||
console.log('[ERROR] query = ' + JSON.stringify(query))
|
||||
}
|
||||
|
||||
function addToContentDiv(events) {
|
||||
try {
|
||||
let contentDiv = document.getElementById('content-div')
|
||||
/!*
|
||||
Delete al current content.
|
||||
*!/
|
||||
while (contentDiv.childNodes.length > 4) {
|
||||
let childToRemove = contentDiv.childNodes[contentDiv.childNodes.length - 1]
|
||||
contentDiv.removeChild(childToRemove)
|
||||
}
|
||||
/!*
|
||||
Render the timeline.
|
||||
*!/
|
||||
for (let i = 0; i < events.length; i++) {
|
||||
let event = events[i]
|
||||
|
||||
let postDiv = document.createElement("div")
|
||||
postDiv.setAttribute("class", "post-div")
|
||||
let textNode
|
||||
|
||||
switch (event.eventType) {
|
||||
case SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST: {
|
||||
textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " POSTED " + event.postText)
|
||||
break
|
||||
}
|
||||
case SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE: {
|
||||
textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " FOLLOWED " + event.targetUserProfile.userProfileHandle)
|
||||
break
|
||||
}
|
||||
case SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE: {
|
||||
textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " UNFOLLOWED " + event.targetUserProfile.userProfileHandle)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
postDiv.appendChild(textNode)
|
||||
contentDiv.appendChild(postDiv)
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
console.log('[ERROR] err.stack = ' + err.stack)
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
async function loadWhoToFollow() {
|
||||
let queryMessage = {
|
||||
queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES,
|
||||
emitterUserProfileId: undefined,
|
||||
initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST,
|
||||
amountRequested: 3,
|
||||
direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP
|
||||
}
|
||||
|
||||
let query = {
|
||||
requestType: 'Query',
|
||||
queryMessage: JSON.stringify(queryMessage)
|
||||
}
|
||||
|
||||
await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage(
|
||||
JSON.stringify(query)
|
||||
)
|
||||
.then(addWhoToFollowTable)
|
||||
.catch(onError)
|
||||
|
||||
function onError(errorMessage) {
|
||||
console.log('[ERROR] Query not executed. ' + errorMessage)
|
||||
console.log('[ERROR] query = ' + JSON.stringify(query))
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
function setupEventHandlers() {
|
||||
/*
|
||||
Add events to process button clicks , and mouseWheel.
|
||||
*/
|
||||
document.addEventListener("click", onClick)
|
||||
document.addEventListener('mousewheel', onMouseWheel, false)
|
||||
|
||||
async function onClick(event) {
|
||||
|
||||
if (event.target && event.target.nodeName === "BUTTON") {
|
||||
switch (event.target.name) {
|
||||
case 'New Post': {
|
||||
let textArea = document.getElementById("new-post-text-area")
|
||||
await sendNewPostEvent(
|
||||
textArea.value
|
||||
)
|
||||
.then(updateTextArea)
|
||||
.catch(onError)
|
||||
|
||||
function updateTextArea() {
|
||||
textArea.value = ""
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Follow Profile': {
|
||||
await sendTargetUserProfileEvent(
|
||||
event.target.userProfileId,
|
||||
SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE
|
||||
)
|
||||
.then(updateButton)
|
||||
.catch(onError)
|
||||
|
||||
function updateButton() {
|
||||
let span = document.getElementById('profile-to-follow-span-' + event.target.userProfileId)
|
||||
let button = document.getElementById('profile-to-follow-button-' + event.target.userProfileId)
|
||||
span.setAttribute("class", "profile-to-unfollow-span")
|
||||
button.setAttribute("class", "profile-to-unfollow-button")
|
||||
button.name = 'Unfollow Profile'
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
case 'Unfollow Profile': {
|
||||
await sendTargetUserProfileEvent(
|
||||
event.target.userProfileId,
|
||||
SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE
|
||||
)
|
||||
.then(updateButton)
|
||||
.catch(onError)
|
||||
|
||||
/*
|
||||
function updateButton() {
|
||||
let span = document.getElementById('profile-to-follow-span-' + event.target.userProfileId)
|
||||
let button = document.getElementById('profile-to-follow-button-' + event.target.userProfileId)
|
||||
span.setAttribute("class", "profile-to-follow-span")
|
||||
button.setAttribute("class", "profile-to-follow-button")
|
||||
button.name = 'Follow Profile'
|
||||
}
|
||||
*/
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Error Handling
|
||||
*/
|
||||
function onError(errorMessage) {
|
||||
console.log('[ERROR] Click event failed. ' + errorMessage)
|
||||
}
|
||||
}
|
||||
|
||||
function onMouseWheel(event) {
|
||||
let scrollDiv = document.getElementById("scroll-div")
|
||||
scrollDiv.scrollTop = scrollDiv.scrollTop + event.deltaY
|
||||
}
|
||||
}
|
||||
|
||||
async function sendTargetUserProfileEvent(
|
||||
userProfileId,
|
||||
eventType
|
||||
) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
asyncCall(resolve, reject)
|
||||
})
|
||||
|
||||
async function asyncCall(resolve, reject) {
|
||||
let eventMessage
|
||||
let event
|
||||
|
||||
eventMessage = {
|
||||
eventType: eventType,
|
||||
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||
targetUserProfileId: userProfileId,
|
||||
timestamp: (new Date()).valueOf()
|
||||
}
|
||||
|
||||
event = {
|
||||
requestType: 'Event',
|
||||
eventMessage: JSON.stringify(eventMessage)
|
||||
}
|
||||
|
||||
await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage(
|
||||
JSON.stringify(event)
|
||||
)
|
||||
.then(resolve)
|
||||
.catch(onError)
|
||||
|
||||
function onError(errorMessage) {
|
||||
console.log('[ERROR] Event not executed. ' + errorMessage)
|
||||
console.log('[ERROR] event = ' + JSON.stringify(event))
|
||||
reject(errorMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function sendNewPostEvent(
|
||||
postText
|
||||
) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
asyncCall(resolve, reject)
|
||||
})
|
||||
|
||||
async function asyncCall(resolve, reject) {
|
||||
let eventMessage
|
||||
let event
|
||||
|
||||
eventMessage = {
|
||||
eventType: SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST,
|
||||
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||
postText: postText,
|
||||
timestamp: (new Date()).valueOf()
|
||||
}
|
||||
|
||||
event = {
|
||||
requestType: 'Event',
|
||||
eventMessage: JSON.stringify(eventMessage)
|
||||
}
|
||||
|
||||
await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage(
|
||||
JSON.stringify(event)
|
||||
)
|
||||
.then(resolve)
|
||||
.catch(onError)
|
||||
|
||||
function onError(errorMessage) {
|
||||
console.log('[ERROR] Event not executed. ' + errorMessage)
|
||||
console.log('[ERROR] event = ' + JSON.stringify(event))
|
||||
reject(errorMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function messageReceived(message) {
|
||||
window.alert(message)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
exports.startExpress = (port, SA) => {
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
const webAppInterface = DK.projects.socialTrading.modules.webAppInterface.newSocialTradingModulesWebAppInterface();
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
// define a route handler for the default home page
|
||||
app.get("/health-check", (req, res) => {
|
||||
res.send("all good");
|
||||
});
|
||||
|
||||
app.get("/profiles", async (req, res) => {
|
||||
let profiles = await whoToFollow();
|
||||
console.log(profiles)
|
||||
res.send(profiles);
|
||||
});
|
||||
|
||||
app.post("/follow", async (req, res) => {
|
||||
let follow = followProfile(req.body.userProfileId, SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE);
|
||||
res.send("Followed")
|
||||
});
|
||||
|
||||
app.post("/unFollow", async (req, res) => {
|
||||
let follow = followProfile(req.body.userProfileId, SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE);
|
||||
res.send("UnFollow")
|
||||
});
|
||||
|
||||
|
||||
app.post("/post", async (req, res) => {
|
||||
console.log(req)
|
||||
let post = createPost(req);
|
||||
res.send(post)
|
||||
});
|
||||
|
||||
// start the Express server
|
||||
app.listen(port, () => {
|
||||
console.log(`server started at http://localhost:${port}`);
|
||||
});
|
||||
|
||||
async function createPost(postText) {
|
||||
try {
|
||||
let eventMessage;
|
||||
let event;
|
||||
|
||||
eventMessage = {
|
||||
eventType: SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST,
|
||||
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
|
||||
postText: postText,
|
||||
timestamp: (new Date()).valueOf()
|
||||
}
|
||||
|
||||
event = {
|
||||
requestType: 'Event',
|
||||
eventMessage: JSON.stringify(eventMessage)
|
||||
}
|
||||
|
||||
return await webAppInterface.sendMessage(
|
||||
JSON.stringify(event)
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
async function whoToFollow() {
|
||||
|
||||
try {
|
||||
let queryMessage = {
|
||||
queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES,
|
||||
emitterUserProfileId: undefined,
|
||||
initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST,
|
||||
amountRequested: 3,
|
||||
direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP
|
||||
}
|
||||
|
||||
let query = {
|
||||
requestType: 'Query',
|
||||
queryMessage: JSON.stringify(queryMessage)
|
||||
}
|
||||
|
||||
return await webAppInterface.messageReceived(
|
||||
JSON.stringify(query)
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
async function followProfile(userProfileId, eventType) {
|
||||
|
||||
try {
|
||||
let queryMessage = {
|
||||
queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES,
|
||||
emitterUserProfileId: undefined,
|
||||
initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST,
|
||||
amountRequested: 3,
|
||||
direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP
|
||||
}
|
||||
|
||||
let query = {
|
||||
requestType: 'Query',
|
||||
queryMessage: JSON.stringify(queryMessage)
|
||||
}
|
||||
|
||||
return await webAppInterface.messageReceived(
|
||||
JSON.stringify(query)
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const paths = require('./paths');
|
||||
|
||||
// Make sure that including paths.js after env.js will read .env variables.
|
||||
delete require.cache[require.resolve('./paths')];
|
||||
|
||||
const NODE_ENV = process.env.NODE_ENV;
|
||||
if (!NODE_ENV) {
|
||||
throw new Error(
|
||||
'The NODE_ENV environment variable is required but was not specified.'
|
||||
);
|
||||
}
|
||||
|
||||
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
|
||||
const dotenvFiles = [
|
||||
`${paths.dotenv}.${NODE_ENV}.local`,
|
||||
// Don't include `.env.local` for `test` environment
|
||||
// since normally you expect tests to produce the same
|
||||
// results for everyone
|
||||
NODE_ENV !== 'test' && `${paths.dotenv}.local`,
|
||||
`${paths.dotenv}.${NODE_ENV}`,
|
||||
paths.dotenv,
|
||||
].filter(Boolean);
|
||||
|
||||
// Load environment variables from .env* files. Suppress warnings using silent
|
||||
// if this file is missing. dotenv will never modify any environment variables
|
||||
// that have already been set. Variable expansion is supported in .env files.
|
||||
// https://github.com/motdotla/dotenv
|
||||
// https://github.com/motdotla/dotenv-expand
|
||||
dotenvFiles.forEach(dotenvFile => {
|
||||
if (fs.existsSync(dotenvFile)) {
|
||||
require('dotenv-expand')(
|
||||
require('dotenv').config({
|
||||
path: dotenvFile,
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// We support resolving modules according to `NODE_PATH`.
|
||||
// This lets you use absolute paths in imports inside large monorepos:
|
||||
// https://github.com/facebook/create-react-app/issues/253.
|
||||
// It works similar to `NODE_PATH` in Node itself:
|
||||
// https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders
|
||||
// Note that unlike in Node, only *relative* paths from `NODE_PATH` are honored.
|
||||
// Otherwise, we risk importing Node.js core modules into an app instead of webpack shims.
|
||||
// https://github.com/facebook/create-react-app/issues/1023#issuecomment-265344421
|
||||
// We also resolve them to make sure all tools using them work consistently.
|
||||
const appDirectory = fs.realpathSync(process.cwd());
|
||||
process.env.NODE_PATH = (process.env.NODE_PATH || '')
|
||||
.split(path.delimiter)
|
||||
.filter(folder => folder && !path.isAbsolute(folder))
|
||||
.map(folder => path.resolve(appDirectory, folder))
|
||||
.join(path.delimiter);
|
||||
|
||||
// Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be
|
||||
// injected into the application via DefinePlugin in webpack configuration.
|
||||
const REACT_APP = /^REACT_APP_/i;
|
||||
|
||||
function getClientEnvironment(publicUrl) {
|
||||
const raw = Object.keys(process.env)
|
||||
.filter(key => REACT_APP.test(key))
|
||||
.reduce(
|
||||
(env, key) => {
|
||||
env[key] = process.env[key];
|
||||
return env;
|
||||
},
|
||||
{
|
||||
// Useful for determining whether we’re running in production mode.
|
||||
// Most importantly, it switches React into the correct mode.
|
||||
NODE_ENV: process.env.NODE_ENV || 'development',
|
||||
// Useful for resolving the correct path to static assets in `public`.
|
||||
// For example, <img src={process.env.PUBLIC_URL + '/img/logo.png'} />.
|
||||
// This should only be used as an escape hatch. Normally you would put
|
||||
// images into the `src` and `import` them in code to get their paths.
|
||||
PUBLIC_URL: publicUrl,
|
||||
// We support configuring the sockjs pathname during development.
|
||||
// These settings let a developer run multiple simultaneous projects.
|
||||
// They are used as the connection `hostname`, `pathname` and `port`
|
||||
// in webpackHotDevClient. They are used as the `sockHost`, `sockPath`
|
||||
// and `sockPort` options in webpack-dev-server.
|
||||
WDS_SOCKET_HOST: process.env.WDS_SOCKET_HOST,
|
||||
WDS_SOCKET_PATH: process.env.WDS_SOCKET_PATH,
|
||||
WDS_SOCKET_PORT: process.env.WDS_SOCKET_PORT,
|
||||
// Whether or not react-refresh is enabled.
|
||||
// react-refresh is not 100% stable at this time,
|
||||
// which is why it's disabled by default.
|
||||
// It is defined here so it is available in the webpackHotDevClient.
|
||||
FAST_REFRESH: process.env.FAST_REFRESH !== 'false',
|
||||
}
|
||||
);
|
||||
// Stringify all values so we can feed into webpack DefinePlugin
|
||||
const stringified = {
|
||||
'process.env': Object.keys(raw).reduce((env, key) => {
|
||||
env[key] = JSON.stringify(raw[key]);
|
||||
return env;
|
||||
}, {}),
|
||||
};
|
||||
|
||||
return { raw, stringified };
|
||||
}
|
||||
|
||||
module.exports = getClientEnvironment;
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const crypto = require('crypto');
|
||||
const chalk = require('react-dev-utils/chalk');
|
||||
const paths = require('./paths');
|
||||
|
||||
// Ensure the certificate and key provided are valid and if not
|
||||
// throw an easy to debug error
|
||||
function validateKeyAndCerts({ cert, key, keyFile, crtFile }) {
|
||||
let encrypted;
|
||||
try {
|
||||
// publicEncrypt will throw an error with an invalid cert
|
||||
encrypted = crypto.publicEncrypt(cert, Buffer.from('test'));
|
||||
} catch (err) {
|
||||
throw new Error(
|
||||
`The certificate "${chalk.yellow(crtFile)}" is invalid.\n${err.message}`
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
// privateDecrypt will throw an error with an invalid key
|
||||
crypto.privateDecrypt(key, encrypted);
|
||||
} catch (err) {
|
||||
throw new Error(
|
||||
`The certificate key "${chalk.yellow(keyFile)}" is invalid.\n${
|
||||
err.message
|
||||
}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Read file and throw an error if it doesn't exist
|
||||
function readEnvFile(file, type) {
|
||||
if (!fs.existsSync(file)) {
|
||||
throw new Error(
|
||||
`You specified ${chalk.cyan(
|
||||
type
|
||||
)} in your env, but the file "${chalk.yellow(file)}" can't be found.`
|
||||
);
|
||||
}
|
||||
return fs.readFileSync(file);
|
||||
}
|
||||
|
||||
// Get the https config
|
||||
// Return cert files if provided in env, otherwise just true or false
|
||||
function getHttpsConfig() {
|
||||
const { SSL_CRT_FILE, SSL_KEY_FILE, HTTPS } = process.env;
|
||||
const isHttps = HTTPS === 'true';
|
||||
|
||||
if (isHttps && SSL_CRT_FILE && SSL_KEY_FILE) {
|
||||
const crtFile = path.resolve(paths.appPath, SSL_CRT_FILE);
|
||||
const keyFile = path.resolve(paths.appPath, SSL_KEY_FILE);
|
||||
const config = {
|
||||
cert: readEnvFile(crtFile, 'SSL_CRT_FILE'),
|
||||
key: readEnvFile(keyFile, 'SSL_KEY_FILE'),
|
||||
};
|
||||
|
||||
validateKeyAndCerts({ ...config, keyFile, crtFile });
|
||||
return config;
|
||||
}
|
||||
return isHttps;
|
||||
}
|
||||
|
||||
module.exports = getHttpsConfig;
|
||||
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const paths = require('./paths');
|
||||
const chalk = require('react-dev-utils/chalk');
|
||||
const resolve = require('resolve');
|
||||
|
||||
/**
|
||||
* Get additional module paths based on the baseUrl of a compilerOptions object.
|
||||
*
|
||||
* @param {Object} options
|
||||
*/
|
||||
function getAdditionalModulePaths(options = {}) {
|
||||
const baseUrl = options.baseUrl;
|
||||
|
||||
if (!baseUrl) {
|
||||
return '';
|
||||
}
|
||||
|
||||
const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
|
||||
|
||||
// We don't need to do anything if `baseUrl` is set to `node_modules`. This is
|
||||
// the default behavior.
|
||||
if (path.relative(paths.appNodeModules, baseUrlResolved) === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Allow the user set the `baseUrl` to `appSrc`.
|
||||
if (path.relative(paths.appSrc, baseUrlResolved) === '') {
|
||||
return [paths.appSrc];
|
||||
}
|
||||
|
||||
// If the path is equal to the root directory we ignore it here.
|
||||
// We don't want to allow importing from the root directly as source files are
|
||||
// not transpiled outside of `src`. We do allow importing them with the
|
||||
// absolute path (e.g. `src/Components/Button.js`) but we set that up with
|
||||
// an alias.
|
||||
if (path.relative(paths.appPath, baseUrlResolved) === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Otherwise, throw an error.
|
||||
throw new Error(
|
||||
chalk.red.bold(
|
||||
"Your project's `baseUrl` can only be set to `src` or `node_modules`." +
|
||||
' Create React App does not support other values at this time.'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get webpack aliases based on the baseUrl of a compilerOptions object.
|
||||
*
|
||||
* @param {*} options
|
||||
*/
|
||||
function getWebpackAliases(options = {}) {
|
||||
const baseUrl = options.baseUrl;
|
||||
|
||||
if (!baseUrl) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
|
||||
|
||||
if (path.relative(paths.appPath, baseUrlResolved) === '') {
|
||||
return {
|
||||
src: paths.appSrc,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get jest aliases based on the baseUrl of a compilerOptions object.
|
||||
*
|
||||
* @param {*} options
|
||||
*/
|
||||
function getJestAliases(options = {}) {
|
||||
const baseUrl = options.baseUrl;
|
||||
|
||||
if (!baseUrl) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
|
||||
|
||||
if (path.relative(paths.appPath, baseUrlResolved) === '') {
|
||||
return {
|
||||
'^src/(.*)$': '<rootDir>/src/$1',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function getModules() {
|
||||
// Check if TypeScript is setup
|
||||
const hasTsConfig = fs.existsSync(paths.appTsConfig);
|
||||
const hasJsConfig = fs.existsSync(paths.appJsConfig);
|
||||
|
||||
if (hasTsConfig && hasJsConfig) {
|
||||
throw new Error(
|
||||
'You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file.'
|
||||
);
|
||||
}
|
||||
|
||||
let config;
|
||||
|
||||
// If there's a tsconfig.json we assume it's a
|
||||
// TypeScript project and set up the config
|
||||
// based on tsconfig.json
|
||||
if (hasTsConfig) {
|
||||
const ts = require(resolve.sync('typescript', {
|
||||
basedir: paths.appNodeModules,
|
||||
}));
|
||||
config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config;
|
||||
// Otherwise we'll check if there is jsconfig.json
|
||||
// for non TS projects.
|
||||
} else if (hasJsConfig) {
|
||||
config = require(paths.appJsConfig);
|
||||
}
|
||||
|
||||
config = config || {};
|
||||
const options = config.compilerOptions || {};
|
||||
|
||||
const additionalModulePaths = getAdditionalModulePaths(options);
|
||||
|
||||
return {
|
||||
additionalModulePaths: additionalModulePaths,
|
||||
webpackAliases: getWebpackAliases(options),
|
||||
jestAliases: getJestAliases(options),
|
||||
hasTsConfig,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = getModules();
|
||||
@@ -0,0 +1,68 @@
|
||||
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
|
||||
const {appPublic} = require("./paths");
|
||||
|
||||
// Make sure any symlinks in the project folder are resolved:
|
||||
// https://github.com/facebook/create-react-app/issues/637
|
||||
const appDirectory = fs.realpathSync(process.cwd());
|
||||
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
||||
|
||||
// We use `PUBLIC_URL` environment variable or "homepage" field to infer
|
||||
// "public path" at which the app is served.
|
||||
// webpack needs to know it to put the right <script> hrefs into HTML even in
|
||||
// single-page apps that may serve index.html for nested URLs like /todos/42.
|
||||
// We can't use a relative path in HTML because we don't want to load something
|
||||
// like /todos/42/static/js/bundle.7289d.js. We have to know the root.
|
||||
const publicUrlOrPath = getPublicUrlOrPath(
|
||||
process.env.NODE_ENV === 'development',
|
||||
require(resolveApp('package.json')).homepage,
|
||||
process.env.PUBLIC_URL
|
||||
);
|
||||
|
||||
const buildPath = process.env.BUILD_PATH || 'DesktopReact/build';
|
||||
|
||||
const moduleFileExtensions = [
|
||||
'web.mjs',
|
||||
'mjs',
|
||||
'web.js',
|
||||
'js',
|
||||
'web.ts',
|
||||
'ts',
|
||||
'web.tsx',
|
||||
'tsx',
|
||||
'json',
|
||||
'web.jsx',
|
||||
'jsx',
|
||||
];
|
||||
|
||||
// Resolve file paths in the same order as webpack
|
||||
const resolveModule = (resolveFn, filePath) => {
|
||||
const extension = moduleFileExtensions.find(extension =>
|
||||
fs.existsSync(resolveFn(`${filePath}.${extension}`))
|
||||
);
|
||||
|
||||
if (extension) {
|
||||
return resolveFn(`${filePath}.${extension}`);
|
||||
}
|
||||
|
||||
return resolveFn(`${filePath}.js`);
|
||||
};
|
||||
|
||||
// config after eject: we're in ./config/
|
||||
module.exports = {
|
||||
dotenv: resolveApp('.env'),
|
||||
appPath: resolveApp('.'),
|
||||
appBuild: resolveApp(buildPath),
|
||||
appPublic: resolveApp('DesktopReact/frontend/public'),
|
||||
appHtml: resolveApp('DesktopReact/frontend/public/index.html'),
|
||||
appIndexJs: resolveModule(resolveApp, 'DesktopReact/frontend/src/index'),
|
||||
appPackageJson: resolveApp('package.json'),
|
||||
appSrc: resolveApp('DesktopReact/frontend/src'),
|
||||
appNodeModules: resolveApp('node_modules'),
|
||||
publicUrlOrPath,
|
||||
};
|
||||
|
||||
module.exports.moduleFileExtensions = moduleFileExtensions;
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
const { resolveModuleName } = require('ts-pnp');
|
||||
|
||||
exports.resolveModuleName = (
|
||||
typescript,
|
||||
moduleName,
|
||||
containingFile,
|
||||
compilerOptions,
|
||||
resolutionHost
|
||||
) => {
|
||||
return resolveModuleName(
|
||||
moduleName,
|
||||
containingFile,
|
||||
compilerOptions,
|
||||
resolutionHost,
|
||||
typescript.resolveModuleName
|
||||
);
|
||||
};
|
||||
|
||||
exports.resolveTypeReferenceDirective = (
|
||||
typescript,
|
||||
moduleName,
|
||||
containingFile,
|
||||
compilerOptions,
|
||||
resolutionHost
|
||||
) => {
|
||||
return resolveModuleName(
|
||||
moduleName,
|
||||
containingFile,
|
||||
compilerOptions,
|
||||
resolutionHost,
|
||||
typescript.resolveTypeReferenceDirective
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,757 @@
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const resolve = require('resolve');
|
||||
const PnpWebpackPlugin = require('pnp-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
||||
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
const safePostCssParser = require('postcss-safe-parser');
|
||||
const ManifestPlugin = require('webpack-manifest-plugin');
|
||||
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
|
||||
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
|
||||
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
|
||||
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
||||
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
const paths = require('./paths');
|
||||
const modules = require('./modules');
|
||||
const getClientEnvironment = require('./env');
|
||||
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
|
||||
const ForkTsCheckerWebpackPlugin = require('react-dev-utils/ForkTsCheckerWebpackPlugin');
|
||||
const typescriptFormatter = require('react-dev-utils/typescriptFormatter');
|
||||
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
||||
|
||||
const postcssNormalize = require('postcss-normalize');
|
||||
|
||||
const appPackageJson = require(paths.appPackageJson);
|
||||
|
||||
// Source maps are resource heavy and can cause out of memory issue for large source files.
|
||||
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
||||
|
||||
const webpackDevClientEntry = require.resolve(
|
||||
'react-dev-utils/webpackHotDevClient'
|
||||
);
|
||||
const reactRefreshOverlayEntry = require.resolve(
|
||||
'react-dev-utils/refreshOverlayInterop'
|
||||
);
|
||||
|
||||
// Some apps do not need the benefits of saving a web request, so not inlining the chunk
|
||||
// makes for a smoother build process.
|
||||
const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== 'false';
|
||||
|
||||
const emitErrorsAsWarnings = process.env.ESLINT_NO_DEV_ERRORS === 'true';
|
||||
const disableESLintPlugin = process.env.DISABLE_ESLINT_PLUGIN === 'true';
|
||||
|
||||
const imageInlineSizeLimit = parseInt(
|
||||
process.env.IMAGE_INLINE_SIZE_LIMIT || '10000'
|
||||
);
|
||||
|
||||
// Check if TypeScript is setup
|
||||
const useTypeScript = fs.existsSync(paths.appTsConfig);
|
||||
|
||||
// Get the path to the uncompiled service worker (if it exists).
|
||||
const swSrc = paths.swSrc;
|
||||
|
||||
// style files regexes
|
||||
const cssRegex = /\.css$/;
|
||||
const cssModuleRegex = /\.module\.css$/;
|
||||
const sassRegex = /\.(scss|sass)$/;
|
||||
const sassModuleRegex = /\.module\.(scss|sass)$/;
|
||||
|
||||
const hasJsxRuntime = (() => {
|
||||
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
require.resolve('react/jsx-runtime');
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
|
||||
// This is the production and development configuration.
|
||||
// It is focused on developer experience, fast rebuilds, and a minimal bundle.
|
||||
module.exports = function (webpackEnv) {
|
||||
const isEnvDevelopment = webpackEnv === 'development';
|
||||
const isEnvProduction = webpackEnv === 'production';
|
||||
|
||||
// Variable used for enabling profiling in Production
|
||||
// passed into alias object. Uses a flag if passed into the build command
|
||||
const isEnvProductionProfile =
|
||||
isEnvProduction && process.argv.includes('--profile');
|
||||
|
||||
// We will provide `paths.publicUrlOrPath` to our app
|
||||
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
|
||||
// Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.
|
||||
// Get environment variables to inject into our app.
|
||||
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
|
||||
|
||||
const shouldUseReactRefresh = env.raw.FAST_REFRESH;
|
||||
|
||||
// common function to get style loaders
|
||||
const getStyleLoaders = (cssOptions, preProcessor) => {
|
||||
const loaders = [
|
||||
isEnvDevelopment && require.resolve('style-loader'),
|
||||
isEnvProduction && {
|
||||
loader: MiniCssExtractPlugin.loader,
|
||||
// css is located in `static/css`, use '../../' to locate index.html folder
|
||||
// in production `paths.publicUrlOrPath` can be a relative path
|
||||
options: paths.publicUrlOrPath.startsWith('.')
|
||||
? { publicPath: '../../' }
|
||||
: {},
|
||||
},
|
||||
{
|
||||
loader: require.resolve('css-loader'),
|
||||
options: cssOptions,
|
||||
},
|
||||
{
|
||||
// Options for PostCSS as we reference these options twice
|
||||
// Adds vendor prefixing based on your specified browser support in
|
||||
// package.json
|
||||
loader: require.resolve('postcss-loader'),
|
||||
options: {
|
||||
// Necessary for external CSS imports to work
|
||||
// https://github.com/facebook/create-react-app/issues/2677
|
||||
ident: 'postcss',
|
||||
plugins: () => [
|
||||
require('postcss-flexbugs-fixes'),
|
||||
require('postcss-preset-env')({
|
||||
autoprefixer: {
|
||||
flexbox: 'no-2009',
|
||||
},
|
||||
stage: 3,
|
||||
}),
|
||||
// Adds PostCSS Normalize as the reset css with default options,
|
||||
// so that it honors browserslist config in package.json
|
||||
// which in turn let's users customize the target behavior as per their needs.
|
||||
postcssNormalize(),
|
||||
],
|
||||
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
||||
},
|
||||
},
|
||||
].filter(Boolean);
|
||||
if (preProcessor) {
|
||||
loaders.push(
|
||||
{
|
||||
loader: require.resolve('resolve-url-loader'),
|
||||
options: {
|
||||
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
||||
root: paths.appSrc,
|
||||
},
|
||||
},
|
||||
{
|
||||
loader: require.resolve(preProcessor),
|
||||
options: {
|
||||
sourceMap: true,
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
return loaders;
|
||||
};
|
||||
|
||||
return {
|
||||
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
|
||||
// Stop compilation early in production
|
||||
bail: isEnvProduction,
|
||||
devtool: isEnvProduction
|
||||
? shouldUseSourceMap
|
||||
? 'source-map'
|
||||
: false
|
||||
: isEnvDevelopment && 'cheap-module-source-map',
|
||||
// These are the "entry points" to our application.
|
||||
// This means they will be the "root" imports that are included in JS bundle.
|
||||
entry:
|
||||
isEnvDevelopment && !shouldUseReactRefresh
|
||||
? [
|
||||
// Include an alternative client for WebpackDevServer. A client's job is to
|
||||
// connect to WebpackDevServer by a socket and get notified about changes.
|
||||
// When you save a file, the client will either apply hot updates (in case
|
||||
// of CSS changes), or refresh the page (in case of JS changes). When you
|
||||
// make a syntax error, this client will display a syntax error overlay.
|
||||
// Note: instead of the default WebpackDevServer client, we use a custom one
|
||||
// to bring better experience for Create React App users. You can replace
|
||||
// the line below with these two lines if you prefer the stock client:
|
||||
//
|
||||
// require.resolve('webpack-dev-server/client') + '?/',
|
||||
// require.resolve('webpack/hot/dev-server'),
|
||||
//
|
||||
// When using the experimental react-refresh integration,
|
||||
// the webpack plugin takes care of injecting the dev client for us.
|
||||
webpackDevClientEntry,
|
||||
// Finally, this is your app's code:
|
||||
paths.appIndexJs,
|
||||
// We include the app code last so that if there is a runtime error during
|
||||
// initialization, it doesn't blow up the WebpackDevServer client, and
|
||||
// changing JS code would still trigger a refresh.
|
||||
]
|
||||
: paths.appIndexJs,
|
||||
output: {
|
||||
// The build folder.
|
||||
path: isEnvProduction ? paths.appBuild : undefined,
|
||||
// Add /* filename */ comments to generated require()s in the output.
|
||||
pathinfo: isEnvDevelopment,
|
||||
// There will be one main bundle, and one file per asynchronous chunk.
|
||||
// In development, it does not produce real files.
|
||||
filename: isEnvProduction
|
||||
? 'static/js/[name].[contenthash:8].js'
|
||||
: isEnvDevelopment && 'static/js/bundle.js',
|
||||
// TODO: remove this when upgrading to webpack 5
|
||||
futureEmitAssets: true,
|
||||
// There are also additional JS chunk files if you use code splitting.
|
||||
chunkFilename: isEnvProduction
|
||||
? 'static/js/[name].[contenthash:8].chunk.js'
|
||||
: isEnvDevelopment && 'static/js/[name].chunk.js',
|
||||
// webpack uses `publicPath` to determine where the app is being served from.
|
||||
// It requires a trailing slash, or the file assets will get an incorrect path.
|
||||
// We inferred the "public path" (such as / or /my-project) from homepage.
|
||||
publicPath: paths.publicUrlOrPath,
|
||||
// Point sourcemap entries to original disk location (format as URL on Windows)
|
||||
devtoolModuleFilenameTemplate: isEnvProduction
|
||||
? info =>
|
||||
path
|
||||
.relative(paths.appSrc, info.absoluteResourcePath)
|
||||
.replace(/\\/g, '/')
|
||||
: isEnvDevelopment &&
|
||||
(info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/')),
|
||||
// Prevents conflicts when multiple webpack runtimes (from different apps)
|
||||
// are used on the same page.
|
||||
jsonpFunction: `webpackJsonp${appPackageJson.name}`,
|
||||
// this defaults to 'window', but by setting it to 'this' then
|
||||
// module chunks which are built will work in web workers as well.
|
||||
globalObject: 'this',
|
||||
},
|
||||
optimization: {
|
||||
minimize: isEnvProduction,
|
||||
minimizer: [
|
||||
// This is only used in production mode
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
parse: {
|
||||
// We want terser to parse ecma 8 code. However, we don't want it
|
||||
// to apply any minification steps that turns valid ecma 5 code
|
||||
// into invalid ecma 5 code. This is why the 'compress' and 'output'
|
||||
// sections only apply transformations that are ecma 5 safe
|
||||
// https://github.com/facebook/create-react-app/pull/4234
|
||||
ecma: 8,
|
||||
},
|
||||
compress: {
|
||||
ecma: 5,
|
||||
warnings: false,
|
||||
// Disabled because of an issue with Uglify breaking seemingly valid code:
|
||||
// https://github.com/facebook/create-react-app/issues/2376
|
||||
// Pending further investigation:
|
||||
// https://github.com/mishoo/UglifyJS2/issues/2011
|
||||
comparisons: false,
|
||||
// Disabled because of an issue with Terser breaking valid code:
|
||||
// https://github.com/facebook/create-react-app/issues/5250
|
||||
// Pending further investigation:
|
||||
// https://github.com/terser-js/terser/issues/120
|
||||
inline: 2,
|
||||
},
|
||||
mangle: {
|
||||
safari10: true,
|
||||
},
|
||||
// Added for profiling in devtools
|
||||
keep_classnames: isEnvProductionProfile,
|
||||
keep_fnames: isEnvProductionProfile,
|
||||
output: {
|
||||
ecma: 5,
|
||||
comments: false,
|
||||
// Turned on because emoji and regex is not minified properly using default
|
||||
// https://github.com/facebook/create-react-app/issues/2488
|
||||
ascii_only: true,
|
||||
},
|
||||
},
|
||||
sourceMap: shouldUseSourceMap,
|
||||
}),
|
||||
// This is only used in production mode
|
||||
new OptimizeCSSAssetsPlugin({
|
||||
cssProcessorOptions: {
|
||||
parser: safePostCssParser,
|
||||
map: shouldUseSourceMap
|
||||
? {
|
||||
// `inline: false` forces the sourcemap to be output into a
|
||||
// separate file
|
||||
inline: false,
|
||||
// `annotation: true` appends the sourceMappingURL to the end of
|
||||
// the css file, helping the browser find the sourcemap
|
||||
annotation: true,
|
||||
}
|
||||
: false,
|
||||
},
|
||||
cssProcessorPluginOptions: {
|
||||
preset: ['default', { minifyFontValues: { removeQuotes: false } }],
|
||||
},
|
||||
}),
|
||||
],
|
||||
// Automatically split vendor and commons
|
||||
// https://twitter.com/wSokra/status/969633336732905474
|
||||
// https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366
|
||||
splitChunks: {
|
||||
chunks: 'all',
|
||||
name: isEnvDevelopment,
|
||||
},
|
||||
// Keep the runtime chunk separated to enable long term caching
|
||||
// https://twitter.com/wSokra/status/969679223278505985
|
||||
// https://github.com/facebook/create-react-app/issues/5358
|
||||
runtimeChunk: {
|
||||
name: entrypoint => `runtime-${entrypoint.name}`,
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
// This allows you to set a fallback for where webpack should look for modules.
|
||||
// We placed these paths second because we want `node_modules` to "win"
|
||||
// if there are any conflicts. This matches Node resolution mechanism.
|
||||
// https://github.com/facebook/create-react-app/issues/253
|
||||
modules: ['node_modules', paths.appNodeModules].concat(
|
||||
modules.additionalModulePaths || []
|
||||
),
|
||||
// These are the reasonable defaults supported by the Node ecosystem.
|
||||
// We also include JSX as a common component filename extension to support
|
||||
// some tools, although we do not recommend using it, see:
|
||||
// https://github.com/facebook/create-react-app/issues/290
|
||||
// `web` extension prefixes have been added for better support
|
||||
// for React Native Web.
|
||||
extensions: paths.moduleFileExtensions
|
||||
.map(ext => `.${ext}`)
|
||||
.filter(ext => useTypeScript || !ext.includes('ts')),
|
||||
alias: {
|
||||
// Support React Native Web
|
||||
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
|
||||
'react-native': 'react-native-web',
|
||||
// Allows for better profiling with ReactDevTools
|
||||
...(isEnvProductionProfile && {
|
||||
'react-dom$': 'react-dom/profiling',
|
||||
'scheduler/tracing': 'scheduler/tracing-profiling',
|
||||
}),
|
||||
...(modules.webpackAliases || {}),
|
||||
},
|
||||
plugins: [
|
||||
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
|
||||
// guards against forgotten dependencies and such.
|
||||
PnpWebpackPlugin,
|
||||
// Prevents users from importing files from outside of src/ (or node_modules/).
|
||||
// This often causes confusion because we only process files within src/ with babel.
|
||||
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
|
||||
// please link the files into your node_modules/ and let module-resolution kick in.
|
||||
// Make sure your source files are compiled, as they will not be processed in any way.
|
||||
new ModuleScopePlugin(paths.appSrc, [
|
||||
paths.appPackageJson,
|
||||
reactRefreshOverlayEntry,
|
||||
]),
|
||||
],
|
||||
},
|
||||
resolveLoader: {
|
||||
plugins: [
|
||||
// Also related to Plug'n'Play, but this time it tells webpack to load its loaders
|
||||
// from the current package.
|
||||
PnpWebpackPlugin.moduleLoader(module),
|
||||
],
|
||||
},
|
||||
module: {
|
||||
strictExportPresence: true,
|
||||
rules: [
|
||||
// Disable require.ensure as it's not a standard language feature.
|
||||
{ parser: { requireEnsure: false } },
|
||||
{
|
||||
// "oneOf" will traverse all following loaders until one will
|
||||
// match the requirements. When no loader matches it will fall
|
||||
// back to the "file" loader at the end of the loader list.
|
||||
oneOf: [
|
||||
// TODO: Merge this config once `image/avif` is in the mime-db
|
||||
// https://github.com/jshttp/mime-db
|
||||
{
|
||||
test: [/\.avif$/],
|
||||
loader: require.resolve('url-loader'),
|
||||
options: {
|
||||
limit: imageInlineSizeLimit,
|
||||
mimetype: 'image/avif',
|
||||
name: 'static/media/[name].[hash:8].[ext]',
|
||||
},
|
||||
},
|
||||
// "url" loader works like "file" loader except that it embeds assets
|
||||
// smaller than specified limit in bytes as data URLs to avoid requests.
|
||||
// A missing `test` is equivalent to a match.
|
||||
{
|
||||
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
|
||||
loader: require.resolve('url-loader'),
|
||||
options: {
|
||||
limit: imageInlineSizeLimit,
|
||||
name: 'static/media/[name].[hash:8].[ext]',
|
||||
},
|
||||
},
|
||||
// Process application JS with Babel.
|
||||
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
|
||||
{
|
||||
test: /\.(js|mjs|jsx|ts|tsx)$/,
|
||||
include: paths.appSrc,
|
||||
loader: require.resolve('babel-loader'),
|
||||
options: {
|
||||
customize: require.resolve(
|
||||
'babel-preset-react-app/webpack-overrides'
|
||||
),
|
||||
presets: [
|
||||
[
|
||||
require.resolve('babel-preset-react-app'),
|
||||
{
|
||||
runtime: hasJsxRuntime ? 'automatic' : 'classic',
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
[
|
||||
require.resolve('babel-plugin-named-asset-import'),
|
||||
{
|
||||
loaderMap: {
|
||||
svg: {
|
||||
ReactComponent:
|
||||
'@svgr/webpack?-svgo,+titleProp,+ref![path]',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
isEnvDevelopment &&
|
||||
shouldUseReactRefresh &&
|
||||
require.resolve('react-refresh/babel'),
|
||||
].filter(Boolean),
|
||||
// This is a feature of `babel-loader` for webpack (not Babel itself).
|
||||
// It enables caching results in ./node_modules/.cache/babel-loader/
|
||||
// directory for faster rebuilds.
|
||||
cacheDirectory: true,
|
||||
// See #6846 for context on why cacheCompression is disabled
|
||||
cacheCompression: false,
|
||||
compact: isEnvProduction,
|
||||
},
|
||||
},
|
||||
// Process any JS outside of the app with Babel.
|
||||
// Unlike the application JS, we only compile the standard ES features.
|
||||
{
|
||||
test: /\.(js|mjs)$/,
|
||||
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
||||
loader: require.resolve('babel-loader'),
|
||||
options: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
compact: false,
|
||||
presets: [
|
||||
[
|
||||
require.resolve('babel-preset-react-app/dependencies'),
|
||||
{ helpers: true },
|
||||
],
|
||||
],
|
||||
cacheDirectory: true,
|
||||
// See #6846 for context on why cacheCompression is disabled
|
||||
cacheCompression: false,
|
||||
|
||||
// Babel sourcemaps are needed for debugging into node_modules
|
||||
// code. Without the options below, debuggers like VSCode
|
||||
// show incorrect code and set breakpoints on the wrong lines.
|
||||
sourceMaps: shouldUseSourceMap,
|
||||
inputSourceMap: shouldUseSourceMap,
|
||||
},
|
||||
},
|
||||
// "postcss" loader applies autoprefixer to our CSS.
|
||||
// "css" loader resolves paths in CSS and adds assets as dependencies.
|
||||
// "style" loader turns CSS into JS modules that inject <style> tags.
|
||||
// In production, we use MiniCSSExtractPlugin to extract that CSS
|
||||
// to a file, but in development "style" loader enables hot editing
|
||||
// of CSS.
|
||||
// By default we support CSS Modules with the extension .module.css
|
||||
{
|
||||
test: cssRegex,
|
||||
exclude: cssModuleRegex,
|
||||
use: getStyleLoaders({
|
||||
importLoaders: 1,
|
||||
sourceMap: isEnvProduction
|
||||
? shouldUseSourceMap
|
||||
: isEnvDevelopment,
|
||||
}),
|
||||
// Don't consider CSS imports dead code even if the
|
||||
// containing package claims to have no side effects.
|
||||
// Remove this when webpack adds a warning or an error for this.
|
||||
// See https://github.com/webpack/webpack/issues/6571
|
||||
sideEffects: true,
|
||||
},
|
||||
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
|
||||
// using the extension .module.css
|
||||
{
|
||||
test: cssModuleRegex,
|
||||
use: getStyleLoaders({
|
||||
importLoaders: 1,
|
||||
sourceMap: isEnvProduction
|
||||
? shouldUseSourceMap
|
||||
: isEnvDevelopment,
|
||||
modules: {
|
||||
getLocalIdent: getCSSModuleLocalIdent,
|
||||
},
|
||||
}),
|
||||
},
|
||||
// Opt-in support for SASS (using .scss or .sass extensions).
|
||||
// By default we support SASS Modules with the
|
||||
// extensions .module.scss or .module.sass
|
||||
{
|
||||
test: sassRegex,
|
||||
exclude: sassModuleRegex,
|
||||
use: getStyleLoaders(
|
||||
{
|
||||
importLoaders: 3,
|
||||
sourceMap: isEnvProduction
|
||||
? shouldUseSourceMap
|
||||
: isEnvDevelopment,
|
||||
},
|
||||
'sass-loader'
|
||||
),
|
||||
// Don't consider CSS imports dead code even if the
|
||||
// containing package claims to have no side effects.
|
||||
// Remove this when webpack adds a warning or an error for this.
|
||||
// See https://github.com/webpack/webpack/issues/6571
|
||||
sideEffects: true,
|
||||
},
|
||||
// Adds support for CSS Modules, but using SASS
|
||||
// using the extension .module.scss or .module.sass
|
||||
{
|
||||
test: sassModuleRegex,
|
||||
use: getStyleLoaders(
|
||||
{
|
||||
importLoaders: 3,
|
||||
sourceMap: isEnvProduction
|
||||
? shouldUseSourceMap
|
||||
: isEnvDevelopment,
|
||||
modules: {
|
||||
getLocalIdent: getCSSModuleLocalIdent,
|
||||
},
|
||||
},
|
||||
'sass-loader'
|
||||
),
|
||||
},
|
||||
// "file" loader makes sure those assets get served by WebpackDevServer.
|
||||
// When you `import` an asset, you get its (virtual) filename.
|
||||
// In production, they would get copied to the `build` folder.
|
||||
// This loader doesn't use a "test" so it will catch all modules
|
||||
// that fall through the other loaders.
|
||||
{
|
||||
loader: require.resolve('file-loader'),
|
||||
// Exclude `js` files to keep "css" loader working as it injects
|
||||
// its runtime that would otherwise be processed through "file" loader.
|
||||
// Also exclude `html` and `json` extensions so they get processed
|
||||
// by webpacks internal loaders.
|
||||
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
|
||||
options: {
|
||||
name: 'static/media/[name].[hash:8].[ext]',
|
||||
},
|
||||
},
|
||||
// ** STOP ** Are you adding a new loader?
|
||||
// Make sure to add the new loader(s) before the "file" loader.
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
// Generates an `index.html` file with the <script> injected.
|
||||
new HtmlWebpackPlugin(
|
||||
Object.assign(
|
||||
{},
|
||||
{
|
||||
inject: true,
|
||||
template: paths.appHtml,
|
||||
},
|
||||
isEnvProduction
|
||||
? {
|
||||
minify: {
|
||||
removeComments: true,
|
||||
collapseWhitespace: true,
|
||||
removeRedundantAttributes: true,
|
||||
useShortDoctype: true,
|
||||
removeEmptyAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true,
|
||||
keepClosingSlash: true,
|
||||
minifyJS: true,
|
||||
minifyCSS: true,
|
||||
minifyURLs: true,
|
||||
},
|
||||
}
|
||||
: undefined
|
||||
)
|
||||
),
|
||||
// Inlines the webpack runtime script. This script is too small to warrant
|
||||
// a network request.
|
||||
// https://github.com/facebook/create-react-app/issues/5358
|
||||
isEnvProduction &&
|
||||
shouldInlineRuntimeChunk &&
|
||||
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/]),
|
||||
// Makes some environment variables available in index.html.
|
||||
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
|
||||
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
|
||||
// It will be an empty string unless you specify "homepage"
|
||||
// in `package.json`, in which case it will be the pathname of that URL.
|
||||
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
|
||||
// This gives some necessary context to module not found errors, such as
|
||||
// the requesting resource.
|
||||
new ModuleNotFoundPlugin(paths.appPath),
|
||||
// Makes some environment variables available to the JS code, for example:
|
||||
// if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`.
|
||||
// It is absolutely essential that NODE_ENV is set to production
|
||||
// during a production build.
|
||||
// Otherwise React will be compiled in the very slow development mode.
|
||||
new webpack.DefinePlugin(env.stringified),
|
||||
// This is necessary to emit hot updates (CSS and Fast Refresh):
|
||||
isEnvDevelopment && new webpack.HotModuleReplacementPlugin(),
|
||||
// Experimental hot reloading for React .
|
||||
// https://github.com/facebook/react/tree/master/packages/react-refresh
|
||||
isEnvDevelopment &&
|
||||
shouldUseReactRefresh &&
|
||||
new ReactRefreshWebpackPlugin({
|
||||
overlay: {
|
||||
entry: webpackDevClientEntry,
|
||||
// The expected exports are slightly different from what the overlay exports,
|
||||
// so an interop is included here to enable feedback on module-level errors.
|
||||
module: reactRefreshOverlayEntry,
|
||||
// Since we ship a custom dev client and overlay integration,
|
||||
// the bundled socket handling logic can be eliminated.
|
||||
sockIntegration: false,
|
||||
},
|
||||
}),
|
||||
// Watcher doesn't work well if you mistype casing in a path so we use
|
||||
// a plugin that prints an error when you attempt to do this.
|
||||
// See https://github.com/facebook/create-react-app/issues/240
|
||||
isEnvDevelopment && new CaseSensitivePathsPlugin(),
|
||||
// If you require a missing module and then `npm install` it, you still have
|
||||
// to restart the development server for webpack to discover it. This plugin
|
||||
// makes the discovery automatic so you don't have to restart.
|
||||
// See https://github.com/facebook/create-react-app/issues/186
|
||||
isEnvDevelopment &&
|
||||
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
|
||||
isEnvProduction &&
|
||||
new MiniCssExtractPlugin({
|
||||
// Options similar to the same options in webpackOptions.output
|
||||
// both options are optional
|
||||
filename: 'static/css/[name].[contenthash:8].css',
|
||||
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
|
||||
}),
|
||||
// Generate an asset manifest file with the following content:
|
||||
// - "files" key: Mapping of all asset filenames to their corresponding
|
||||
// output file so that tools can pick it up without having to parse
|
||||
// `index.html`
|
||||
// - "entrypoints" key: Array of files which are included in `index.html`,
|
||||
// can be used to reconstruct the HTML if necessary
|
||||
new ManifestPlugin({
|
||||
fileName: 'asset-manifest.json',
|
||||
publicPath: paths.publicUrlOrPath,
|
||||
generate: (seed, files, entrypoints) => {
|
||||
const manifestFiles = files.reduce((manifest, file) => {
|
||||
manifest[file.name] = file.path;
|
||||
return manifest;
|
||||
}, seed);
|
||||
const entrypointFiles = entrypoints.main.filter(
|
||||
fileName => !fileName.endsWith('.map')
|
||||
);
|
||||
|
||||
return {
|
||||
files: manifestFiles,
|
||||
entrypoints: entrypointFiles,
|
||||
};
|
||||
},
|
||||
}),
|
||||
// Moment.js is an extremely popular library that bundles large locale files
|
||||
// by default due to how webpack interprets its code. This is a practical
|
||||
// solution that requires the user to opt into importing specific locales.
|
||||
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
|
||||
// You can remove this if you don't use Moment.js:
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
// Generate a service worker script that will precache, and keep up to date,
|
||||
// the HTML & assets that are part of the webpack build.
|
||||
isEnvProduction &&
|
||||
fs.existsSync(swSrc) &&
|
||||
new WorkboxWebpackPlugin.InjectManifest({
|
||||
swSrc,
|
||||
dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./,
|
||||
exclude: [/\.map$/, /asset-manifest\.json$/, /LICENSE/],
|
||||
// Bump up the default maximum size (2mb) that's precached,
|
||||
// to make lazy-loading failure scenarios less likely.
|
||||
// See https://github.com/cra-template/pwa/issues/13#issuecomment-722667270
|
||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
|
||||
}),
|
||||
// TypeScript type checking
|
||||
useTypeScript &&
|
||||
new ForkTsCheckerWebpackPlugin({
|
||||
typescript: resolve.sync('typescript', {
|
||||
basedir: paths.appNodeModules,
|
||||
}),
|
||||
async: isEnvDevelopment,
|
||||
checkSyntacticErrors: true,
|
||||
resolveModuleNameModule: process.versions.pnp
|
||||
? `${__dirname}/pnpTs.js`
|
||||
: undefined,
|
||||
resolveTypeReferenceDirectiveModule: process.versions.pnp
|
||||
? `${__dirname}/pnpTs.js`
|
||||
: undefined,
|
||||
tsconfig: paths.appTsConfig,
|
||||
reportFiles: [
|
||||
// This one is specifically to match during CI tests,
|
||||
// as micromatch doesn't match
|
||||
// '../cra-template-typescript/template/src/App.tsx'
|
||||
// otherwise.
|
||||
'../**/src/**/*.{ts,tsx}',
|
||||
'**/src/**/*.{ts,tsx}',
|
||||
'!**/src/**/__tests__/**',
|
||||
'!**/src/**/?(*.)(spec|test).*',
|
||||
'!**/src/setupProxy.*',
|
||||
'!**/src/setupTests.*',
|
||||
],
|
||||
silent: true,
|
||||
// The formatter is invoked directly in WebpackDevServerUtils during development
|
||||
formatter: isEnvProduction ? typescriptFormatter : undefined,
|
||||
}),
|
||||
!disableESLintPlugin &&
|
||||
new ESLintPlugin({
|
||||
// Plugin options
|
||||
extensions: ['js', 'mjs', 'jsx', 'ts', 'tsx'],
|
||||
formatter: require.resolve('react-dev-utils/eslintFormatter'),
|
||||
eslintPath: require.resolve('eslint'),
|
||||
failOnError: !(isEnvDevelopment && emitErrorsAsWarnings),
|
||||
context: paths.appSrc,
|
||||
cache: true,
|
||||
cacheLocation: path.resolve(
|
||||
paths.appNodeModules,
|
||||
'.cache/.eslintcache'
|
||||
),
|
||||
// ESLint class options
|
||||
cwd: paths.appPath,
|
||||
resolvePluginsRelativeTo: __dirname,
|
||||
baseConfig: {
|
||||
extends: [require.resolve('eslint-config-react-app/base')],
|
||||
rules: {
|
||||
...(!hasJsxRuntime && {
|
||||
'react/react-in-jsx-scope': 'error',
|
||||
}),
|
||||
},
|
||||
},
|
||||
}),
|
||||
].filter(Boolean),
|
||||
// Some libraries import Node modules but don't use them in the browser.
|
||||
// Tell webpack to provide empty mocks for them so importing them works.
|
||||
node: {
|
||||
module: 'empty',
|
||||
dgram: 'empty',
|
||||
dns: 'mock',
|
||||
fs: 'empty',
|
||||
http2: 'empty',
|
||||
net: 'empty',
|
||||
tls: 'empty',
|
||||
child_process: 'empty',
|
||||
},
|
||||
// Turn off performance processing because we utilize
|
||||
// our own hints via the FileSizeReporter
|
||||
performance: false,
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,130 @@
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
||||
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');
|
||||
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
|
||||
const ignoredFiles = require('react-dev-utils/ignoredFiles');
|
||||
const redirectServedPath = require('react-dev-utils/redirectServedPathMiddleware');
|
||||
const paths = require('./paths');
|
||||
const getHttpsConfig = require('./getHttpsConfig');
|
||||
|
||||
const host = process.env.HOST || '0.0.0.0';
|
||||
const sockHost = process.env.WDS_SOCKET_HOST;
|
||||
const sockPath = process.env.WDS_SOCKET_PATH; // default: '/sockjs-node'
|
||||
const sockPort = process.env.WDS_SOCKET_PORT;
|
||||
|
||||
module.exports = function (proxy, allowedHost) {
|
||||
return {
|
||||
// WebpackDevServer 2.4.3 introduced a security fix that prevents remote
|
||||
// websites from potentially accessing local content through DNS rebinding:
|
||||
// https://github.com/webpack/webpack-dev-server/issues/887
|
||||
// https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a
|
||||
// However, it made several existing use cases such as development in cloud
|
||||
// environment or subdomains in development significantly more complicated:
|
||||
// https://github.com/facebook/create-react-app/issues/2271
|
||||
// https://github.com/facebook/create-react-app/issues/2233
|
||||
// While we're investigating better solutions, for now we will take a
|
||||
// compromise. Since our WDS configuration only serves files in the `public`
|
||||
// folder we won't consider accessing them a vulnerability. However, if you
|
||||
// use the `proxy` feature, it gets more dangerous because it can expose
|
||||
// remote code execution vulnerabilities in backends like Django and Rails.
|
||||
// So we will disable the host check normally, but enable it if you have
|
||||
// specified the `proxy` setting. Finally, we let you override it if you
|
||||
// really know what you're doing with a special environment variable.
|
||||
disableHostCheck:
|
||||
!proxy || process.env.DANGEROUSLY_DISABLE_HOST_CHECK === 'true',
|
||||
// Enable gzip compression of generated files.
|
||||
compress: true,
|
||||
// Silence WebpackDevServer's own logs since they're generally not useful.
|
||||
// It will still show compile warnings and errors with this setting.
|
||||
clientLogLevel: 'none',
|
||||
// By default WebpackDevServer serves physical files from current directory
|
||||
// in addition to all the virtual build products that it serves from memory.
|
||||
// This is confusing because those files won’t automatically be available in
|
||||
// production build folder unless we copy them. However, copying the whole
|
||||
// project directory is dangerous because we may expose sensitive files.
|
||||
// Instead, we establish a convention that only files in `public` directory
|
||||
// get served. Our build script will copy `public` into the `build` folder.
|
||||
// In `index.html`, you can get URL of `public` folder with %PUBLIC_URL%:
|
||||
// <link rel="icon" href="%PUBLIC_URL%/favicon.ico">
|
||||
// In JavaScript code, you can access it with `process.env.PUBLIC_URL`.
|
||||
// Note that we only recommend to use `public` folder as an escape hatch
|
||||
// for files like `favicon.ico`, `manifest.json`, and libraries that are
|
||||
// for some reason broken when imported through webpack. If you just want to
|
||||
// use an image, put it in `src` and `import` it from JavaScript instead.
|
||||
contentBase: paths.appPublic,
|
||||
contentBasePublicPath: paths.publicUrlOrPath,
|
||||
// By default files from `contentBase` will not trigger a page reload.
|
||||
watchContentBase: true,
|
||||
// Enable hot reloading server. It will provide WDS_SOCKET_PATH endpoint
|
||||
// for the WebpackDevServer client so it can learn when the files were
|
||||
// updated. The WebpackDevServer client is included as an entry point
|
||||
// in the webpack development configuration. Note that only changes
|
||||
// to CSS are currently hot reloaded. JS changes will refresh the browser.
|
||||
hot: true,
|
||||
// Use 'ws' instead of 'sockjs-node' on server since we're using native
|
||||
// websockets in `webpackHotDevClient`.
|
||||
transportMode: 'ws',
|
||||
// Prevent a WS client from getting injected as we're already including
|
||||
// `webpackHotDevClient`.
|
||||
injectClient: false,
|
||||
// Enable custom sockjs pathname for websocket connection to hot reloading server.
|
||||
// Enable custom sockjs hostname, pathname and port for websocket connection
|
||||
// to hot reloading server.
|
||||
sockHost,
|
||||
sockPath,
|
||||
sockPort,
|
||||
// It is important to tell WebpackDevServer to use the same "publicPath" path as
|
||||
// we specified in the webpack config. When homepage is '.', default to serving
|
||||
// from the root.
|
||||
// remove last slash so user can land on `/test` instead of `/test/`
|
||||
publicPath: paths.publicUrlOrPath.slice(0, -1),
|
||||
// WebpackDevServer is noisy by default so we emit custom message instead
|
||||
// by listening to the compiler events with `compiler.hooks[...].tap` calls above.
|
||||
quiet: true,
|
||||
// Reportedly, this avoids CPU overload on some systems.
|
||||
// https://github.com/facebook/create-react-app/issues/293
|
||||
// src/node_modules is not ignored to support absolute imports
|
||||
// https://github.com/facebook/create-react-app/issues/1065
|
||||
watchOptions: {
|
||||
ignored: ignoredFiles(paths.appSrc),
|
||||
},
|
||||
https: getHttpsConfig(),
|
||||
host,
|
||||
overlay: false,
|
||||
historyApiFallback: {
|
||||
// Paths with dots should still use the history fallback.
|
||||
// See https://github.com/facebook/create-react-app/issues/387.
|
||||
disableDotRule: true,
|
||||
index: paths.publicUrlOrPath,
|
||||
},
|
||||
public: allowedHost,
|
||||
// `proxy` is run between `before` and `after` `webpack-dev-server` hooks
|
||||
proxy,
|
||||
before(app, server) {
|
||||
// Keep `evalSourceMapMiddleware` and `errorOverlayMiddleware`
|
||||
// middlewares before `redirectServedPath` otherwise will not have any effect
|
||||
// This lets us fetch source contents from webpack for the error overlay
|
||||
app.use(evalSourceMapMiddleware(server));
|
||||
// This lets us open files from the runtime error overlay.
|
||||
app.use(errorOverlayMiddleware());
|
||||
|
||||
if (fs.existsSync(paths.proxySetup)) {
|
||||
// This registers user provided middleware for proxy reasons
|
||||
require(paths.proxySetup)(app);
|
||||
}
|
||||
},
|
||||
after(app) {
|
||||
// Redirect to `PUBLIC_URL` or `homepage` from `package.json` if url not match
|
||||
app.use(redirectServedPath(paths.publicUrlOrPath));
|
||||
|
||||
// This service worker file is effectively a 'no-op' that will reset any
|
||||
// previous service worker registered for the same host:port combination.
|
||||
// We do this in development to avoid hitting the production cache if
|
||||
// it used the same host and port.
|
||||
// https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
|
||||
app.use(noopServiceWorkerMiddleware(paths.publicUrlOrPath));
|
||||
},
|
||||
};
|
||||
};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Superalgos Desktop</title>
|
||||
<meta name="description" content="Free and Open Source Crypto Social Trading">
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
|
||||
|
||||
<script type="text/javascript">
|
||||
function loadApp() {
|
||||
// Prevent click-jacking
|
||||
try {
|
||||
if (window === window.top || window.chrome && chrome.app && chrome.app.window) {
|
||||
document.documentElement.style.display = 'block'
|
||||
} else {
|
||||
top.location = self.location
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('CJ protection', e)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body id="body" onload="loadApp()">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@@ -0,0 +1,212 @@
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'production';
|
||||
process.env.NODE_ENV = 'production';
|
||||
|
||||
// Makes the script crash on unhandled rejections instead of silently
|
||||
// ignoring them. In the future, promise rejections that are not handled will
|
||||
// terminate the Node.js process with a non-zero exit code.
|
||||
process.on('unhandledRejection', err => {
|
||||
throw err;
|
||||
});
|
||||
|
||||
// Ensure environment variables are read.
|
||||
require('../config/env');
|
||||
|
||||
|
||||
const path = require('path');
|
||||
const chalk = require('react-dev-utils/chalk');
|
||||
const fs = require('fs-extra');
|
||||
const bfj = require('bfj');
|
||||
const webpack = require('webpack');
|
||||
const configFactory = require('../config/webpack.config');
|
||||
const paths = require('../config/paths');
|
||||
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
|
||||
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
||||
const printHostingInstructions = require('react-dev-utils/printHostingInstructions');
|
||||
const FileSizeReporter = require('react-dev-utils/FileSizeReporter');
|
||||
const printBuildError = require('react-dev-utils/printBuildError');
|
||||
|
||||
const measureFileSizesBeforeBuild =
|
||||
FileSizeReporter.measureFileSizesBeforeBuild;
|
||||
const printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild;
|
||||
const useYarn = fs.existsSync(paths.yarnLockFile);
|
||||
|
||||
// These sizes are pretty large. We'll warn for bundles exceeding them.
|
||||
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
||||
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
|
||||
|
||||
const isInteractive = process.stdout.isTTY;
|
||||
|
||||
// Warn and crash if required files are missing
|
||||
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const argv = process.argv.slice(2);
|
||||
const writeStatsJson = argv.indexOf('--stats') !== -1;
|
||||
|
||||
// Generate configuration
|
||||
const config = configFactory('production');
|
||||
|
||||
// We require that you explicitly set browsers and do not fall back to
|
||||
// browserslist defaults.
|
||||
const { checkBrowsers } = require('react-dev-utils/browsersHelper');
|
||||
checkBrowsers(paths.appPath, isInteractive)
|
||||
.then(() => {
|
||||
// First, read the current file sizes in build directory.
|
||||
// This lets us display how much they changed later.
|
||||
return measureFileSizesBeforeBuild(paths.appBuild);
|
||||
})
|
||||
.then(previousFileSizes => {
|
||||
// Remove all content but keep the directory so that
|
||||
// if you're in it, you don't end up in Trash
|
||||
fs.emptyDirSync(paths.appBuild);
|
||||
// Merge with the public folder
|
||||
copyPublicFolder();
|
||||
// Start the webpack build
|
||||
return build(previousFileSizes);
|
||||
})
|
||||
.then(
|
||||
({ stats, previousFileSizes, warnings }) => {
|
||||
if (warnings.length) {
|
||||
console.log(chalk.yellow('Compiled with warnings.\n'));
|
||||
console.log(warnings.join('\n\n'));
|
||||
console.log(
|
||||
'\nSearch for the ' +
|
||||
chalk.underline(chalk.yellow('keywords')) +
|
||||
' to learn more about each warning.'
|
||||
);
|
||||
console.log(
|
||||
'To ignore, add ' +
|
||||
chalk.cyan('// eslint-disable-next-line') +
|
||||
' to the line before.\n'
|
||||
);
|
||||
} else {
|
||||
console.log(chalk.green('Compiled successfully.\n'));
|
||||
}
|
||||
|
||||
console.log('File sizes after gzip:\n');
|
||||
printFileSizesAfterBuild(
|
||||
stats,
|
||||
previousFileSizes,
|
||||
paths.appBuild,
|
||||
WARN_AFTER_BUNDLE_GZIP_SIZE,
|
||||
WARN_AFTER_CHUNK_GZIP_SIZE
|
||||
);
|
||||
console.log();
|
||||
|
||||
const appPackage = require(paths.appPackageJson);
|
||||
const publicUrl = paths.publicUrlOrPath;
|
||||
const publicPath = config.output.publicPath;
|
||||
const buildFolder = path.relative(process.cwd(), paths.appBuild);
|
||||
printHostingInstructions(
|
||||
appPackage,
|
||||
publicUrl,
|
||||
publicPath,
|
||||
buildFolder,
|
||||
useYarn
|
||||
);
|
||||
},
|
||||
err => {
|
||||
const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true';
|
||||
if (tscCompileOnError) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
'Compiled with the following type errors (you may want to check these before deploying your app):\n'
|
||||
)
|
||||
);
|
||||
printBuildError(err);
|
||||
} else {
|
||||
console.log(chalk.red('Failed to compile.\n'));
|
||||
printBuildError(err);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
)
|
||||
.catch(err => {
|
||||
if (err && err.message) {
|
||||
console.log(err.message);
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
// Create the production build and print the deployment instructions.
|
||||
function build(previousFileSizes) {
|
||||
console.log('Creating an optimized production build...');
|
||||
|
||||
const compiler = webpack(config);
|
||||
return new Promise((resolve, reject) => {
|
||||
compiler.run((err, stats) => {
|
||||
let messages;
|
||||
if (err) {
|
||||
if (!err.message) {
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
let errMessage = err.message;
|
||||
|
||||
// Add additional information for postcss errors
|
||||
if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) {
|
||||
errMessage +=
|
||||
'\nCompileError: Begins at CSS selector ' +
|
||||
err['postcssNode'].selector;
|
||||
}
|
||||
|
||||
messages = formatWebpackMessages({
|
||||
errors: [errMessage],
|
||||
warnings: [],
|
||||
});
|
||||
} else {
|
||||
messages = formatWebpackMessages(
|
||||
stats.toJson({ all: false, warnings: true, errors: true })
|
||||
);
|
||||
}
|
||||
if (messages.errors.length) {
|
||||
// Only keep the first error. Others are often indicative
|
||||
// of the same problem, but confuse the reader with noise.
|
||||
if (messages.errors.length > 1) {
|
||||
messages.errors.length = 1;
|
||||
}
|
||||
return reject(new Error(messages.errors.join('\n\n')));
|
||||
}
|
||||
if (
|
||||
process.env.CI &&
|
||||
(typeof process.env.CI !== 'string' ||
|
||||
process.env.CI.toLowerCase() !== 'false') &&
|
||||
messages.warnings.length
|
||||
) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
'\nTreating warnings as errors because process.env.CI = true.\n' +
|
||||
'Most CI servers set it automatically.\n'
|
||||
)
|
||||
);
|
||||
return reject(new Error(messages.warnings.join('\n\n')));
|
||||
}
|
||||
|
||||
const resolveArgs = {
|
||||
stats,
|
||||
previousFileSizes,
|
||||
warnings: messages.warnings,
|
||||
};
|
||||
|
||||
if (writeStatsJson) {
|
||||
return bfj
|
||||
.write(paths.appBuild + '/bundle-stats.json', stats.toJson())
|
||||
.then(() => resolve(resolveArgs))
|
||||
.catch(error => reject(new Error(error)));
|
||||
}
|
||||
|
||||
return resolve(resolveArgs);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function copyPublicFolder() {
|
||||
fs.copySync(paths.appPublic, paths.appBuild, {
|
||||
dereference: true,
|
||||
filter: file => file !== paths.appHtml,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
exports.start = (port) => {
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'development';
|
||||
process.env.NODE_ENV = 'development';
|
||||
|
||||
// Makes the script crash on unhandled rejections instead of silently
|
||||
// ignoring them. In the future, promise rejections that are not handled will
|
||||
// terminate the Node.js process with a non-zero exit code.
|
||||
process.on('unhandledRejection', err => {
|
||||
throw err;
|
||||
});
|
||||
|
||||
// Ensure environment variables are read.
|
||||
require('../config/env');
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const chalk = require('react-dev-utils/chalk');
|
||||
const webpack = require('webpack');
|
||||
const WebpackDevServer = require('webpack-dev-server');
|
||||
const clearConsole = require('react-dev-utils/clearConsole');
|
||||
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
|
||||
const {
|
||||
choosePort,
|
||||
createCompiler,
|
||||
prepareProxy,
|
||||
prepareUrls,
|
||||
} = require('react-dev-utils/WebpackDevServerUtils');
|
||||
const openBrowser = require('react-dev-utils/openBrowser');
|
||||
const semver = require('semver');
|
||||
const paths = require('../config/paths');
|
||||
const configFactory = require('../config/webpack.config');
|
||||
const createDevServerConfig = require('../config/webpackDevServer.config');
|
||||
const getClientEnvironment = require('../config/env');
|
||||
const react = require(require.resolve('react', {paths: [paths.appPath]}));
|
||||
|
||||
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
|
||||
const useYarn = fs.existsSync(paths.yarnLockFile);
|
||||
const isInteractive = process.stdout.isTTY;
|
||||
|
||||
// Warn and crash if required files are missing
|
||||
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Tools like Cloud9 rely on this.
|
||||
const DEFAULT_PORT = port;
|
||||
const HOST = '0.0.0.0';
|
||||
|
||||
if (process.env.HOST) {
|
||||
console.log(
|
||||
chalk.cyan(
|
||||
`Attempting to bind to HOST environment variable: ${chalk.yellow(
|
||||
chalk.bold(process.env.HOST)
|
||||
)}`
|
||||
)
|
||||
);
|
||||
console.log();
|
||||
}
|
||||
|
||||
// We require that you explicitly set browsers and do not fall back to
|
||||
// browserslist defaults.
|
||||
const {checkBrowsers} = require('react-dev-utils/browsersHelper');
|
||||
checkBrowsers(paths.appPath, isInteractive)
|
||||
.then(() => {
|
||||
// We attempt to use the default port but if it is busy, we offer the user to
|
||||
// run on a different port. `choosePort()` Promise resolves to the next free port.
|
||||
return choosePort(HOST, DEFAULT_PORT);
|
||||
})
|
||||
.then(port => {
|
||||
if (port == null) {
|
||||
// We have not found a port.
|
||||
return;
|
||||
}
|
||||
|
||||
const config = configFactory('development');
|
||||
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
|
||||
const appName = require(paths.appPackageJson).name;
|
||||
|
||||
const useTypeScript = fs.existsSync(paths.appTsConfig);
|
||||
const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true';
|
||||
const urls = prepareUrls(
|
||||
protocol,
|
||||
HOST,
|
||||
port,
|
||||
paths.publicUrlOrPath.slice(0, -1)
|
||||
);
|
||||
const devSocket = {
|
||||
warnings: warnings =>
|
||||
devServer.sockWrite(devServer.sockets, 'warnings', warnings),
|
||||
errors: errors =>
|
||||
devServer.sockWrite(devServer.sockets, 'errors', errors),
|
||||
};
|
||||
// Create a webpack compiler that is configured with custom messages.
|
||||
const compiler = createCompiler({
|
||||
appName,
|
||||
config,
|
||||
devSocket,
|
||||
urls,
|
||||
useYarn,
|
||||
useTypeScript,
|
||||
tscCompileOnError,
|
||||
webpack,
|
||||
});
|
||||
// Load proxy config
|
||||
const proxySetting = require(paths.appPackageJson).proxy;
|
||||
const proxyConfig = prepareProxy(
|
||||
proxySetting,
|
||||
paths.appPublic,
|
||||
paths.publicUrlOrPath
|
||||
);
|
||||
// Serve webpack assets generated by the compiler over a web server.
|
||||
const serverConfig = createDevServerConfig(
|
||||
proxyConfig,
|
||||
urls.lanUrlForConfig
|
||||
);
|
||||
const devServer = new WebpackDevServer(compiler, serverConfig);
|
||||
// Launch WebpackDevServer.
|
||||
devServer.listen(port, HOST, err => {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
if (isInteractive) {
|
||||
clearConsole();
|
||||
}
|
||||
|
||||
if (env.raw.FAST_REFRESH && semver.lt(react.version, '16.10.0')) {
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
`Fast Refresh requires React 16.10 or higher. You are using React ${react.version}.`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
console.log(chalk.cyan('Starting the development server...\n'));
|
||||
openBrowser(urls.localUrlForBrowser);
|
||||
});
|
||||
|
||||
['SIGINT', 'SIGTERM'].forEach(function (sig) {
|
||||
process.on(sig, function () {
|
||||
devServer.close();
|
||||
process.exit();
|
||||
});
|
||||
});
|
||||
|
||||
if (process.env.CI !== 'true') {
|
||||
// Gracefully exit when stdin ends
|
||||
process.stdin.on('end', function () {
|
||||
devServer.close();
|
||||
process.exit();
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
if (err && err.message) {
|
||||
console.log(err.message);
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'test';
|
||||
process.env.NODE_ENV = 'test';
|
||||
process.env.PUBLIC_URL = '';
|
||||
|
||||
// Makes the script crash on unhandled rejections instead of silently
|
||||
// ignoring them. In the future, promise rejections that are not handled will
|
||||
// terminate the Node.js process with a non-zero exit code.
|
||||
process.on('unhandledRejection', err => {
|
||||
throw err;
|
||||
});
|
||||
|
||||
// Ensure environment variables are read.
|
||||
require('../config/env');
|
||||
|
||||
|
||||
const jest = require('jest');
|
||||
const execSync = require('child_process').execSync;
|
||||
let argv = process.argv.slice(2);
|
||||
|
||||
function isInGitRepository() {
|
||||
try {
|
||||
execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function isInMercurialRepository() {
|
||||
try {
|
||||
execSync('hg --cwd . root', { stdio: 'ignore' });
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Watch unless on CI or explicitly running all tests
|
||||
if (
|
||||
!process.env.CI &&
|
||||
argv.indexOf('--watchAll') === -1 &&
|
||||
argv.indexOf('--watchAll=false') === -1
|
||||
) {
|
||||
// https://github.com/facebook/create-react-app/issues/5210
|
||||
const hasSourceControl = isInGitRepository() || isInMercurialRepository();
|
||||
argv.push(hasSourceControl ? '--watch' : '--watchAll');
|
||||
}
|
||||
|
||||
|
||||
jest.run(argv);
|
||||
@@ -0,0 +1,28 @@
|
||||
const baseURL = 'http://localhost:33249'
|
||||
const GET = 'GET'
|
||||
const POST = 'POST'
|
||||
const DELETE = 'DELETE'
|
||||
const UPDATE = 'UPDATE'
|
||||
|
||||
function getProfiles(){
|
||||
return call('/profiles', GET);
|
||||
}
|
||||
|
||||
function getClientNode(){
|
||||
return call('/ClientNode', GET);
|
||||
}
|
||||
|
||||
function call(endpoint, method, body){
|
||||
return new Promise(async(resolve, reject) => {
|
||||
fetch(baseURL + endpoint, { method:method, body:body })
|
||||
.then(response => resolve(response))
|
||||
.catch(error => reject(error))
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
export {
|
||||
getProfiles,
|
||||
getClientNode
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import {BrowserRouter, Route, Routes} from 'react-router-dom';
|
||||
import App from './home/App';
|
||||
import UserProfile from "./userProfile/UserProfile";
|
||||
import NotFound from "./notFound/NotFound";
|
||||
import Feed from "./feed/Feed";
|
||||
import PostPlaceholder from "./postPlaceholder/PostPlaceholder";
|
||||
|
||||
|
||||
const Root = () => {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path='/' element={<App/>}>
|
||||
<Route path='' element={<Feed/>}/>
|
||||
<Route path='Profile' element={<UserProfile/>}>
|
||||
{/*<Route path=':profileId' element={<UserProfile/>}/>*/}
|
||||
</Route>
|
||||
<Route path='Post' element={<PostPlaceholder/>}/>
|
||||
</Route>
|
||||
<Route
|
||||
path="*"
|
||||
element={
|
||||
<NotFound/>
|
||||
}
|
||||
/>
|
||||
</Routes>
|
||||
</BrowserRouter>)
|
||||
}
|
||||
|
||||
export default Root;
|
||||
@@ -0,0 +1,17 @@
|
||||
.followButton {
|
||||
margin: 0.5rem;
|
||||
width: 3rem;
|
||||
max-height: 1.5rem;
|
||||
}
|
||||
|
||||
.userCard {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 0.25rem 1rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
height: 3rem;
|
||||
width: 3rem;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import "./UserCard.css"
|
||||
import React, {useEffect} from 'react';
|
||||
import {Button, Card, CardContent, CardMedia, Typography} from "@mui/material";
|
||||
import pic from "../../images/superalgos.png"
|
||||
|
||||
const UserCard = ({name, id,followCallback}) => {
|
||||
|
||||
useEffect(() => {
|
||||
console.log(`created user with id ${id}`)
|
||||
}, [id]);
|
||||
|
||||
return (
|
||||
<Card className="userCard" variant="outlined">
|
||||
<CardMedia className="avatar"
|
||||
component="img"
|
||||
image={pic}
|
||||
alt="PP"
|
||||
|
||||
/>
|
||||
<CardContent>
|
||||
<Typography variant="body2">{name}</Typography>
|
||||
</CardContent>
|
||||
<Button className="followButton" size="small" disableElevation variant="outlined" onClick={followCallback}>
|
||||
Follow
|
||||
</Button>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserCard;
|
||||
@@ -0,0 +1,4 @@
|
||||
.showMore {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import './UsersSidebar.css';
|
||||
import {Stack} from "@mui/material";
|
||||
import SearchBox from "../searchBox/SearchBox";
|
||||
import SuggestedUsers from "../suggestedUsers/SuggestedUsers";
|
||||
|
||||
|
||||
const UsersSidebar = () => {
|
||||
|
||||
const showMoreCallback = () => console.log("clicked show more");
|
||||
return (
|
||||
<Stack direction="column"
|
||||
justifyContent="flex-start"
|
||||
alignItems="center"
|
||||
spacing={2}
|
||||
sx={{minWidth: "max-content"}}>
|
||||
|
||||
<SearchBox/>
|
||||
<SuggestedUsers showMoreCallback={showMoreCallback}/>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
export default UsersSidebar;
|
||||
@@ -0,0 +1,11 @@
|
||||
.feed {
|
||||
width: 40rem;
|
||||
height: 95vh;
|
||||
overflow: auto;
|
||||
-ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
|
||||
scrollbar-width: none; /* Hide scrollbar for Firefox */
|
||||
}
|
||||
|
||||
.feed::-webkit-scrollbar { /* Hide scrollbar for Chrome, Safari and Opera */
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import './Feed.css';
|
||||
import PostPlaceholder from "../postPlaceholder/PostPlaceholder";
|
||||
import PostsFeed from "../postsFeed/PostsFeed";
|
||||
|
||||
const Feed = () => {
|
||||
return (
|
||||
<div className="feed">
|
||||
<PostPlaceholder/>
|
||||
<PostsFeed/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Feed;
|
||||
@@ -0,0 +1,7 @@
|
||||
.app {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.middleSection{
|
||||
width: 40rem;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import './App.css';
|
||||
import Sidebar from "../sidebar/Sidebar";
|
||||
import UsersSidebar from "../UsersSidebar/UsersSidebar";
|
||||
import {Stack} from "@mui/material";
|
||||
import {Outlet} from "react-router-dom";
|
||||
import {getProfiles} from '../../api/service'
|
||||
|
||||
function App() {
|
||||
getProfiles().then( response => {
|
||||
console.log(response)
|
||||
});
|
||||
return (
|
||||
<div className="app">
|
||||
|
||||
<Stack className="app"
|
||||
direction="row"
|
||||
justifyContent="space-around">
|
||||
<Sidebar/>
|
||||
<Outlet className="middleSection"/>
|
||||
<UsersSidebar/>
|
||||
</Stack>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
@@ -0,0 +1,10 @@
|
||||
/*noinspection CssInvalidPropertyValue*/
|
||||
.logo {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
.icon {
|
||||
margin: 0 0.5rem;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import './Logo.css';
|
||||
import React from 'react';
|
||||
import {Avatar, Stack} from "@mui/material";
|
||||
import pic from "../../images/superalgos.png"
|
||||
|
||||
|
||||
const Logo = props => {
|
||||
/* TODO add on click redirect to / */
|
||||
return (
|
||||
<Stack direction="row" className="logo">
|
||||
<Avatar className="icon" alt="SuperAlgos" src={pic}/>
|
||||
<div>SuperAlgos</div>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
export default Logo;
|
||||
@@ -0,0 +1,10 @@
|
||||
import React, {useEffect} from 'react';
|
||||
import {useNavigate} from "react-router-dom";
|
||||
|
||||
const NotFound = () => {
|
||||
let navigate = useNavigate();
|
||||
useEffect(() => navigate("/"), [navigate])
|
||||
return null;
|
||||
};
|
||||
|
||||
export default NotFound;
|
||||
@@ -0,0 +1,49 @@
|
||||
.post {
|
||||
min-width: 5rem; /* todo needs to set a minimum width, but overriding from parent*/
|
||||
max-width: 100%;
|
||||
min-height: 5rem; /* todo needs tbd. needed actually? */
|
||||
max-height: 100%; /* todo need to be 8rem, but is collapsing without scroll. need fix*/
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.postAvatarContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
}
|
||||
.postBody {
|
||||
max-width: 100%;
|
||||
min-width: 1.5rem;
|
||||
min-height: 1.5rem;
|
||||
padding-left: 2.8rem;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.postUserName {
|
||||
padding: 0.75rem;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.postFooterContainer {
|
||||
justify-content: flex-start;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
padding-top: 0.50rem;
|
||||
padding-bottom: 0.50rem;
|
||||
}
|
||||
|
||||
.postFooterLikeDislike {
|
||||
justify-content: space-evenly;
|
||||
display: flex;
|
||||
width: 30%;
|
||||
padding-left: 0.50rem;
|
||||
}
|
||||
|
||||
.postFooterRepost {
|
||||
justify-content: flex-end;
|
||||
display: flex;
|
||||
width: 65%;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
import "./Post.css"
|
||||
import React, {useState} from 'react';
|
||||
import {Avatar, Card, IconButton, Stack, Typography} from "@mui/material";
|
||||
import {Autorenew, ThumbDown, ThumbUp} from "@mui/icons-material";
|
||||
import pic from "../../images/superalgos.png"
|
||||
|
||||
const Post = () => {
|
||||
|
||||
const userName = "User Name",
|
||||
postBody = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
|
||||
|
||||
const [count, setCount] = useState(0); /* todo define one more for dislike button */
|
||||
|
||||
function onLikeButtonClick() { {/* todo console log print need a fix */}
|
||||
console.log("Liked " + count + " times")
|
||||
}
|
||||
|
||||
function onButtonClick(){ /* todo dislike button function necessary? */
|
||||
console.log("Liked " + count + " times")
|
||||
}
|
||||
|
||||
return (
|
||||
<Card className="post">
|
||||
<Stack direction="row">
|
||||
<Stack className="postAvatarContainer">
|
||||
<Avatar src={pic}/>
|
||||
</Stack>
|
||||
<Stack className="postUserName">
|
||||
{userName}
|
||||
</Stack>
|
||||
</Stack>
|
||||
<Stack className="postBody">
|
||||
{postBody}
|
||||
</Stack>
|
||||
<Stack className="postFooterContainer" direction="row">
|
||||
<Stack className="postFooterLikeDislike" direction="row">
|
||||
<IconButton
|
||||
onClick={() => setCount(count + 1)}
|
||||
>
|
||||
<ThumbUp/>
|
||||
</IconButton><Typography>{count}</Typography>
|
||||
<IconButton
|
||||
onClick={() => {/* TODO remove unnecessary arrow function*/
|
||||
onButtonClick()
|
||||
}}
|
||||
>
|
||||
<ThumbDown/>
|
||||
</IconButton>
|
||||
</Stack>
|
||||
<Stack className="postFooterRepost" direction="row">
|
||||
<IconButton
|
||||
onClick={() => {/* TODO remove unnecessary arrow function*/
|
||||
onButtonClick()
|
||||
}}
|
||||
>
|
||||
<Autorenew/>
|
||||
</IconButton>
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default Post;
|
||||
@@ -0,0 +1,47 @@
|
||||
.postPlaceholder {
|
||||
width: 39rem;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.postPlaceholderContainer {
|
||||
min-width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.postPlaceholderInputBoxContainer {
|
||||
|
||||
}
|
||||
|
||||
.postPlaceholderAvatar {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
.postPlaceholderTextField {
|
||||
width: 90%;
|
||||
border: 5px;
|
||||
}
|
||||
|
||||
.postPlaceholderInputBox {
|
||||
width: auto;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.postFeedAccountCircle {
|
||||
|
||||
}
|
||||
|
||||
.postPlaceholderButtonStyle {
|
||||
padding: 0.75rem;
|
||||
display: flex;
|
||||
width: auto;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.postPlaceholderButton {
|
||||
height: 1.5rem;
|
||||
width: 5rem;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import "./PostPlaceholder.css"
|
||||
import React from 'react';
|
||||
import {Avatar, Button, Card, Stack, TextField, Typography} from "@mui/material";
|
||||
import pic from "../../images/superalgos.png"
|
||||
|
||||
const PostPlaceholder = () => {
|
||||
|
||||
function onButtonClick() {
|
||||
console.log("Clicked Post button");
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="postPlaceholder">
|
||||
<h4>Posts</h4>
|
||||
<div className="postPlaceholderContainer">
|
||||
<Card>
|
||||
<Stack
|
||||
className="postPlaceholderInputBox"
|
||||
direction="row"
|
||||
justifyContent="flex-start"
|
||||
alignItems="center"
|
||||
spacing={1}
|
||||
justify="flex-end">
|
||||
<Stack className="postPlaceholderAvatar">
|
||||
<Avatar src={pic}/>
|
||||
</Stack>
|
||||
<Stack className="postPlaceholderTextField">
|
||||
<Typography gutterBottom variant="subtitle1" component="div">
|
||||
<TextField
|
||||
id="outlined-multiline-flexible"
|
||||
label="what's happening?"
|
||||
fullWidth
|
||||
multiline
|
||||
maxRows={6}
|
||||
/>
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Stack>
|
||||
<Stack className="postPlaceholderButtonStyle" direction="row">
|
||||
<Button
|
||||
onClick={() => { /* TODO remove unnecessary arrow function call*/
|
||||
onButtonClick()
|
||||
}}
|
||||
className="postPlaceholderButton" variant="outlined">
|
||||
Post
|
||||
</Button>
|
||||
</Stack>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PostPlaceholder;
|
||||
@@ -0,0 +1,5 @@
|
||||
.postFeedContainer {
|
||||
max-width: 39rem;
|
||||
padding: 0.5rem ;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import './PostsFeed.css';
|
||||
import React from 'react';
|
||||
import {Stack} from "@mui/material";
|
||||
import Post from "../post/Post";
|
||||
|
||||
const PostsFeed = () => {
|
||||
const postFeed = [1, 2, 3, 4, 5];
|
||||
|
||||
const posts = postFeed.map(
|
||||
value => {
|
||||
return <Post key={value} id={value} name={`user${value}`}/>
|
||||
}
|
||||
)
|
||||
|
||||
return (
|
||||
<div className="postFeedContainer">
|
||||
<Stack direction="column"
|
||||
spacing={2}>
|
||||
{posts}
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PostsFeed;
|
||||
@@ -0,0 +1,3 @@
|
||||
.searchIcon {
|
||||
margin: 1rem 0.5rem;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import {Box, TextField} from "@mui/material";
|
||||
import {Search} from "@mui/icons-material";
|
||||
|
||||
const SearchBox = () => {
|
||||
return (
|
||||
<div>
|
||||
<Box sx={{display: 'flex', alignItems: 'flex-end'}}>
|
||||
<Search className="searchIcon"/>
|
||||
<TextField id="users-search" label="Search" variant="standard" type="search"/>
|
||||
</Box>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SearchBox;
|
||||
@@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import {Link} from "@mui/material";
|
||||
|
||||
const ShowMoreUsers = ({showMoreCallback}) => {
|
||||
return (
|
||||
<Link
|
||||
component="button"
|
||||
variant="body2"
|
||||
onClick={showMoreCallback}>
|
||||
Show more
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
export default ShowMoreUsers;
|
||||
@@ -0,0 +1,3 @@
|
||||
.sidebar{
|
||||
height: 100%;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import './Sidebar.css';
|
||||
import {Divider, Stack} from "@mui/material";
|
||||
import SidebarItem from "../sidebarItem/SidebarItem";
|
||||
import Logo from "../logo/Logo";
|
||||
import HomeIcon from '@mui/icons-material/Home';
|
||||
import PostAddIcon from '@mui/icons-material/PostAdd';
|
||||
import PersonIcon from '@mui/icons-material/Person';
|
||||
|
||||
const Sidebar = props => {
|
||||
const menuOptions = [{name: "Home", icon: HomeIcon},
|
||||
{name: "Profile", icon: PersonIcon},
|
||||
{name: "Post", icon: PostAddIcon}
|
||||
/*, "Explore", "Notifications", "Messages", "Bookmarks", "Lists", "More"*/]
|
||||
|
||||
const menuItems = menuOptions.map(option => {
|
||||
return <SidebarItem key={option.name} Icon={option.icon} value={option.name}/>
|
||||
})
|
||||
|
||||
return (
|
||||
<div className="sidebar">
|
||||
<Stack direction="column"
|
||||
justifyContent="flex-start"
|
||||
alignItems="center"
|
||||
spacing={5}
|
||||
sx={{minWidth: "max-content"}}>
|
||||
<Logo/>
|
||||
<Stack
|
||||
direction="column"
|
||||
justifyContent="space-between"
|
||||
alignItems="center"
|
||||
spacing={2}
|
||||
divider={<Divider orientation="horizontal" flexItem/>}>
|
||||
{menuItems}
|
||||
</Stack>
|
||||
|
||||
</Stack>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Sidebar;
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
.sidebarItem {
|
||||
/*TODO add on hover*/
|
||||
/*TODO add breakpoints*/
|
||||
width: 15vw;
|
||||
}
|
||||
|
||||
|
||||
.sidebarText {
|
||||
/*TODO hide when too small*/
|
||||
|
||||
width: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sidebarIcon {
|
||||
width: auto;
|
||||
padding: 0 1rem;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import './SidebarItem.css';
|
||||
import {Stack} from "@mui/material";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
|
||||
|
||||
const SidebarItem = ({value, Icon}) => {
|
||||
let navigate = useNavigate();
|
||||
const handleClick = () => {
|
||||
navigate(`/${value}`)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="sidebarItem" onClick={handleClick}>
|
||||
<Stack direction="row">
|
||||
<Icon className="sidebarIcon"/>
|
||||
<div className="sidebarText"> {value} </div>
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default SidebarItem;
|
||||
Whitespace-only changes.
@@ -0,0 +1,32 @@
|
||||
import "./SuggestedUsers.css"
|
||||
import React, {useEffect} from 'react';
|
||||
import UserCard from "../User/UserCard";
|
||||
import ShowMoreUsers from "../showMoreUsers/ShowMoreUsers";
|
||||
import {Stack} from "@mui/material";
|
||||
|
||||
|
||||
const SuggestedUsers = ({showMoreCallback}) => {
|
||||
const usersIds = [1, 2, 3, 4, 5];
|
||||
|
||||
|
||||
const users = usersIds.map(value => {
|
||||
let callBack = () => console.log(`Clicked follow on user${value}`);
|
||||
return <UserCard key={value} id={value} name={`user${value}`} followCallback={callBack}/>
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
console.log("SuggestedUsersConstructor called")
|
||||
}, []);
|
||||
|
||||
|
||||
return (
|
||||
<Stack direction="column"
|
||||
justifyContent="flex-start"
|
||||
alignItems="center"
|
||||
spacing={1}>
|
||||
{users}
|
||||
<ShowMoreUsers showMoreCallback={showMoreCallback}/>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
export default SuggestedUsers;
|
||||
@@ -0,0 +1,41 @@
|
||||
.userSection {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.banner {
|
||||
height: 10rem;
|
||||
}
|
||||
|
||||
.profileAvatar {
|
||||
height: 7rem !important;
|
||||
width: 7rem !important;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.profilePicBG {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: none no-repeat scroll 0 0 #fff;
|
||||
position: relative;
|
||||
height: 8rem !important;
|
||||
width: 8rem !important;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.profileCard {
|
||||
margin-top: -50px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 8rem;
|
||||
}
|
||||
|
||||
.profileSection {
|
||||
width: 100%;
|
||||
overflow: initial !important; /* TODO check this is needed */
|
||||
height: 15rem;
|
||||
}
|
||||
|
||||
.middleSection {
|
||||
width: 39rem;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import "./UserProfile.css"
|
||||
import React from 'react';
|
||||
import UserProfileHeader from "../userProfileHeader/UserProfileHeader";
|
||||
import {Stack} from "@mui/material";
|
||||
import PostsFeed from "../postsFeed/PostsFeed";
|
||||
|
||||
|
||||
const UserProfile = () => {
|
||||
|
||||
/*TODO finish this shit*/
|
||||
|
||||
let actualUser = 'Loui Molina';
|
||||
|
||||
return (
|
||||
<Stack direction="column"
|
||||
justifyContent="flex-start"
|
||||
alignItems="center"
|
||||
spacing={1}
|
||||
className="middleSection">
|
||||
|
||||
<UserProfileHeader actualUser={actualUser}/>
|
||||
<PostsFeed/>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
export default UserProfile;
|
||||
Whitespace-only changes.
@@ -0,0 +1,30 @@
|
||||
import React from 'react';
|
||||
import {Card, CardContent, CardMedia, Typography} from "@mui/material";
|
||||
import banner from "../../images/banner.jpg";
|
||||
import pfp from "../../images/superalgos.png";
|
||||
|
||||
const UserProfileHeader = ({actualUser}) => {
|
||||
return (
|
||||
<Card className="profileSection">
|
||||
<CardMedia className="banner"
|
||||
component="img"
|
||||
image={banner}
|
||||
alt="PP"
|
||||
/>
|
||||
<div className="profileCard">
|
||||
<div className="profilePicBG">
|
||||
<CardMedia className="profileAvatar"
|
||||
component="img"
|
||||
image={pfp}
|
||||
alt="ProfilePic"
|
||||
/>
|
||||
</div>
|
||||
<CardContent className="userSection">
|
||||
<Typography variant="h5">{actualUser}</Typography>
|
||||
</CardContent>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserProfileHeader;
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,13 @@
|
||||
body {
|
||||
margin: 2.5vh 5vw;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
height: 95vh !important;
|
||||
}
|
||||
|
||||
#root {
|
||||
height: inherit;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import './index.css';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {Provider} from "react-redux";
|
||||
import reducers from "./store";
|
||||
import Root from "./components/Root";
|
||||
|
||||
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Provider store={reducers}>
|
||||
<Root/>
|
||||
</Provider>
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
@@ -0,0 +1,309 @@
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Saira';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Saira Light'), local('Saira-Light'), url(Fonts/Saira.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Saira Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Saira Condensed Light'), local('SairaCondensed-Light'), url(Fonts/Saira-Condensed.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: segoeui;
|
||||
src: url(Fonts/segoeui.woff) format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.body{
|
||||
overflow-y: hidden;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.scroll-div {
|
||||
position:absolute;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
top:0px;
|
||||
left:0px;
|
||||
vertical-align: top;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
border-color: blue;
|
||||
background-color: transparent;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.static-div {
|
||||
position: fixed;
|
||||
top:0px;
|
||||
left:18%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
background:transparent;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.content-div {
|
||||
position:relative;
|
||||
vertical-align: top;
|
||||
height: 100%;
|
||||
width: 30%;
|
||||
left: 31.2%;
|
||||
color: #000;
|
||||
border-color: blue;
|
||||
background-color:transparent;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
.post-placeholder {
|
||||
vertical-align: top;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
border-color: blue;
|
||||
background-color: transparent;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.post-div {
|
||||
vertical-align: top;
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
border-color: blue;
|
||||
background-color: transparent;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.new-post-div {
|
||||
vertical-align: top;
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
border-color: blue;
|
||||
background-color: transparent;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.page-table {
|
||||
top:0px;
|
||||
left:18%;
|
||||
width: 64%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
background:transparent;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.left-column {
|
||||
position:relative;
|
||||
top:0px;
|
||||
width: 20%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.middle-column {
|
||||
position:relative;
|
||||
top:0px;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.right-column {
|
||||
position:relative;
|
||||
top:0px;
|
||||
left:0px;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.left-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.logo-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 70px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.menu-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.profile-cell {
|
||||
vertical-align: bottom;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.middle-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.content-title-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.content-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.right-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.search-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.context-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
background:transparent;
|
||||
}
|
||||
|
||||
.menu-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 65%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.menu-item-cell {
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.who-to-follow-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 30%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.profile-to-follow-table {
|
||||
position:relative;
|
||||
width: 100%;
|
||||
height: 30%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
border-width: 0px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.profile-to-follow-span {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.profile-to-follow-button {
|
||||
float: right;
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
.profile-to-unfollow-span {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.profile-to-unfollow-button {
|
||||
float: right;
|
||||
background-color: red;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
const reportWebVitals = onPerfEntry => {
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||
getCLS(onPerfEntry);
|
||||
getFID(onPerfEntry);
|
||||
getFCP(onPerfEntry);
|
||||
getLCP(onPerfEntry);
|
||||
getTTFB(onPerfEntry);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default reportWebVitals;
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
import { configureStore } from '@reduxjs/toolkit';
|
||||
import ExampleReducer from './slices/Globals'
|
||||
|
||||
export default configureStore({
|
||||
reducer:{
|
||||
example: ExampleReducer
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,27 @@
|
||||
import {createSlice} from '@reduxjs/toolkit'
|
||||
|
||||
export const Globals = createSlice({
|
||||
name: 'globals',
|
||||
initialState: {
|
||||
UI: {
|
||||
projects: {},
|
||||
schemas: {projectSchema: undefined},
|
||||
environment: undefined,
|
||||
clientNode: undefined,
|
||||
webApp: undefined
|
||||
},
|
||||
SA: {projects: {}}
|
||||
},
|
||||
reducers: {
|
||||
exampleAction: (state, action) => {
|
||||
state.userName = action.payload;
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
// Action creators are generated for each case reducer function
|
||||
export const {exampleAction} = Globals.actions
|
||||
|
||||
export default Globals.reducer
|
||||
|
||||
|
||||
+12
-4
@@ -58,13 +58,21 @@ exports.newDesktopRoot = function newDesktopRoot() {
|
||||
/*
|
||||
Setting up Secrets.
|
||||
*/
|
||||
SA.secrets = {
|
||||
array: require('./My-Secrets/Secrets.json').secrets,
|
||||
map: new Map()
|
||||
try {
|
||||
SA.secrets = {
|
||||
array: require('./My-Secrets/Secrets.json').secrets,
|
||||
map: new Map()
|
||||
}
|
||||
} catch (err) {
|
||||
SA.secrets = {
|
||||
array: [],
|
||||
map: new Map()
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < SA.secrets.array.length; i++) {
|
||||
let secret = SA.secrets.array[i]
|
||||
SA.secrets.map.set (secret.signingAccountChildCodeName, secret)
|
||||
SA.secrets.map.set(secret.nodeCodeName, secret)
|
||||
}
|
||||
|
||||
run()
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
exports.newDesktopRoot = function newDesktopRoot() {
|
||||
/*
|
||||
This module represents the execution root of the Desktop App.
|
||||
We use this module that is outside the Desktop folder to
|
||||
load all node dependencies and get them ready to the actual App.
|
||||
*/
|
||||
let thisObject = {
|
||||
run: run
|
||||
}
|
||||
|
||||
return thisObject
|
||||
|
||||
async function run(debugSettings) {
|
||||
/*
|
||||
The DK object is accessible everywhere at the Superalgos Desktop App.
|
||||
It provides access to all modules built for this App.
|
||||
*/
|
||||
global.DK = {}
|
||||
/*
|
||||
The SA object is accessible everywhere at the Superalgos Desktop App.
|
||||
It provides access to all modules built for Superalgos in general.
|
||||
*/
|
||||
global.SA = {}
|
||||
/* Load Environment Variables */
|
||||
let ENVIRONMENT = require('./Environment.js');
|
||||
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
|
||||
global.env = ENVIRONMENT_MODULE
|
||||
|
||||
if (debugSettings !== undefined && debugSettings.DESKTOP_APP_SIGNING_ACCOUNT !== undefined) {
|
||||
global.env.DESKTOP_APP_SIGNING_ACCOUNT = debugSettings.DESKTOP_APP_SIGNING_ACCOUNT
|
||||
}
|
||||
/*
|
||||
First thing is to load the project schema file.
|
||||
*/
|
||||
global.PROJECTS_SCHEMA = require(global.env.PATH_TO_PROJECT_SCHEMA)
|
||||
/*
|
||||
Setting up the modules that will be available, defined at the Project Schema file.
|
||||
*/
|
||||
let MULTI_PROJECT = require('./MultiProject.js');
|
||||
let MULTI_PROJECT_MODULE = MULTI_PROJECT.newMultiProject()
|
||||
MULTI_PROJECT_MODULE.initialize(DK, 'DK')
|
||||
MULTI_PROJECT_MODULE.initialize(SA, 'SA')
|
||||
/*
|
||||
Setting up external dependencies.
|
||||
*/
|
||||
SA.nodeModules = {
|
||||
fs: require('fs'),
|
||||
util: require('util'),
|
||||
path: require('path'),
|
||||
web3: require('web3'),
|
||||
ws: require('ws'),
|
||||
open: require('open'),
|
||||
http: require('http'),
|
||||
octokit: require("@octokit/rest"),
|
||||
simpleGit: require('simple-git'),
|
||||
nodeFetch: require('node-fetch')
|
||||
}
|
||||
/*
|
||||
Setting up Secrets.
|
||||
*/
|
||||
try {
|
||||
SA.secrets = {
|
||||
array: require('./My-Secrets/Secrets.json').secrets,
|
||||
map: new Map()
|
||||
}
|
||||
} catch (err) {
|
||||
SA.secrets = {
|
||||
array: [],
|
||||
map: new Map()
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < SA.secrets.array.length; i++) {
|
||||
let secret = SA.secrets.array[i]
|
||||
SA.secrets.map.set(secret.nodeCodeName, secret)
|
||||
}
|
||||
|
||||
run()
|
||||
|
||||
async function run() {
|
||||
DK.app = require('./DesktopReact/DesktopApp.js').newDesktopApp()
|
||||
await DK.app.run()
|
||||
console.log('Superalgos Desktop App is Running!')
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@ WORKDIR /app
|
||||
COPY . .
|
||||
RUN apk add --no-cache --virtual .build-deps make g++ \
|
||||
&& apk add --no-cache python3 \
|
||||
&& if [ "$(uname -m)" = "x86_64" ]; then node setup noShortcuts tensorflow; else node setup noShortcuts; fi \
|
||||
&& npm ci \
|
||||
&& mkdir -p ./Platform/My-Data-Storage ./Platform/My-Log-Files ./Platform/My-Workspaces \
|
||||
&& addgroup superalgos \
|
||||
&& adduser --disabled-password --no-create-home --ingroup superalgos superalgos \
|
||||
|
||||
+7
-2
@@ -9,6 +9,7 @@ exports.newEnvironment = function () {
|
||||
|
||||
let thisObject = {
|
||||
DEMO_MODE: false,
|
||||
DEMO_MODE_HOST: "super-super-uzzdd68dwm9w-22a320db4ede63aa.elb.us-east-2.amazonaws.com",
|
||||
BASE_PATH: basePath,
|
||||
WEB_SERVER_URL: 'localhost',
|
||||
PLATFORM_WEB_SOCKETS_INTERFACE_PORT: 18041,
|
||||
@@ -17,6 +18,7 @@ exports.newEnvironment = function () {
|
||||
DESKTOP_WEB_SOCKETS_INTERFACE_HOST: 'localhost',
|
||||
PLATFORM_HTTP_INTERFACE_PORT: 34248,
|
||||
DESKTOP_HTTP_INTERFACE_PORT: 33248,
|
||||
NETWORK_HTTP_INTERFACE_PORT: 31248,
|
||||
PATH_TO_DATA_STORAGE: path.join(basePath, './Platform/My-Data-Storage'),
|
||||
PATH_TO_PROJECTS: path.join(basePath, './Projects'),
|
||||
PATH_TO_LOG_FILES: path.join(basePath, './Platform/My-Log-Files'),
|
||||
@@ -26,16 +28,19 @@ exports.newEnvironment = function () {
|
||||
PATH_TO_DESKTOP: './Desktop',
|
||||
PATH_TO_DEFAULT_WORKSPACE: path.join(basePath, './Projects/Foundations/Plugins/Workspaces'),
|
||||
PATH_TO_MY_WORKSPACES: path.join(basePath, './Platform/My-Workspaces'),
|
||||
PATH_TO_SECRETS: path.join(basePath, './My-Secrets'),
|
||||
PATH_TO_FONTS: path.join(basePath, './Platform/WebServer/Fonts'),
|
||||
DESKTOP_APP_SIGNING_ACCOUNT: 'Social-Trading-Desktop-App-1',
|
||||
DESKTOP_APP_MAX_OUTGOING_PEERS: 1,
|
||||
TASK_SERVER_APP_MAX_OUTGOING_PEERS: 1,
|
||||
TASK_SERVER_APP_MAX_OUTGOING_HEADS: 1,
|
||||
MOBILE_APP_SIGNING_ACCOUNT: 'Social-Trading-Mobile-App-1',
|
||||
SERVER_APP_SIGNING_ACCOUNT: 'Social-Trading-Server-App-1',
|
||||
PLATFORM_APP_SIGNING_ACCOUNT: 'Algo-Traders-Platform-1',
|
||||
P2P_NETWORK_NODE_SIGNING_ACCOUNT: 'P2P-Network-Node-1',
|
||||
P2P_NETWORK_NODE_MAX_INCOMING_CLIENTS: 1,
|
||||
P2P_NETWORK_NODE_MAX_INCOMING_PEERS: 2,
|
||||
P2P_NETWORK_NODE_MAX_OUTGOING_PEERS: 2
|
||||
P2P_NETWORK_NODE_MAX_INCOMING_PEERS: 0,
|
||||
P2P_NETWORK_NODE_MAX_OUTGOING_PEERS: 0
|
||||
}
|
||||
|
||||
if (process.env.DATA_PATH) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const { exec, execSync } = require("child_process");
|
||||
const os = require("os");
|
||||
const os = require("os");
|
||||
|
||||
// Get the name of the main directory
|
||||
let cwd = __dirname;
|
||||
@@ -21,7 +21,7 @@ if (os.platform() == "win32") {
|
||||
// Place Shortcuts using powershell
|
||||
for (let dir of shortcutPaths) {
|
||||
let command = `$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut("${dir}"); $S.TargetPath = "${target}"; $S.IconLocation = "${icon}"; $S.Save()`;
|
||||
|
||||
|
||||
exec( command,
|
||||
{
|
||||
shell: "powershell.exe",
|
||||
@@ -52,12 +52,12 @@ if (os.platform() == "win32") {
|
||||
let icon = path.join( __dirname,"..", "/Projects/Foundations/Icons/superalgos.png");
|
||||
|
||||
// Create .desktop shortcut file
|
||||
fs.writeFileSync( `${name}.desktop`,
|
||||
fs.writeFileSync( `${name}.desktop`,
|
||||
`[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=${name}
|
||||
Comment=Launch Shortcut for Superalgos
|
||||
Comment=Launch Shortcut for Superalgos
|
||||
Path=${__dirname}
|
||||
Exec=gnome-terminal -e ${__dirname}/launch-linux-mac.sh
|
||||
Terminal=true
|
||||
@@ -87,20 +87,20 @@ if (os.platform() == "win32") {
|
||||
});
|
||||
|
||||
} else {
|
||||
console.log( "Automatic shortcut creation is not yet supported on your flavor of linux. If you would like to see this feature add, message @harrellbm on telegram or discord to ask how you can help!")
|
||||
console.log( "Automatic shortcut creation is not yet supported on your flavor of linux. If you would like to see this feature add, message @harrellbm on telegram or discord to ask how you can help!")
|
||||
}
|
||||
|
||||
|
||||
// Mac Shortcuts
|
||||
} else if (os.platform() == "darwin") {
|
||||
const icon = path.join( __dirname,"/superalgos.ico");
|
||||
const createShortcutCommand = `chmod +x ${name}.command & cp ${name}.command ~/Desktop/${name}.command`
|
||||
const installFileIconcommand = `npm install fileicon`;
|
||||
const installFileIconcommand = `npm install -g fileicon`;
|
||||
const changeIconCommand = `./node_modules/fileicon/bin/fileicon set ~/Desktop/${name}.command ./Launch-Scripts/superalgos.ico`
|
||||
const unInstallFileIconcommand = `npm uninstall fileicon`;
|
||||
|
||||
const unInstallFileIconcommand = `npm uninstall -g fileicon`;
|
||||
|
||||
try {
|
||||
// Create .desktop shortcut file
|
||||
fs.writeFileSync( `${name}.command`,
|
||||
fs.writeFileSync( `${name}.command`,
|
||||
`#!/bin/sh
|
||||
cd ${__dirname}
|
||||
cd ..
|
||||
@@ -113,14 +113,14 @@ if (os.platform() == "win32") {
|
||||
|
||||
// Remove temporary .command file
|
||||
fs.unlinkSync( `${name}.command` )
|
||||
|
||||
//Install fileicon utility
|
||||
|
||||
//Install fileicon utility
|
||||
execSync(installFileIconcommand, {stdio: 'inherit', timeout: 30000});
|
||||
|
||||
//change Icon
|
||||
execSync(changeIconCommand, {stdio: 'inherit', timeout: 30000});
|
||||
|
||||
//Un-Install fileicon utility
|
||||
//Un-Install fileicon utility
|
||||
execSync(unInstallFileIconcommand, {stdio: 'inherit', timeout: 30000});
|
||||
} catch (error) {
|
||||
console.log('');
|
||||
@@ -135,4 +135,4 @@ if (os.platform() == "win32") {
|
||||
// Misc Operating System
|
||||
} else {
|
||||
console.log("Automatic shortcut creation is not currently supported on your operating system. If you would like to see your operating system added please reachout on discord or telegram to let the devs know.")
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
exports.newMultiProject = function () {
|
||||
|
||||
/* TODO add init method to DK*/
|
||||
let thisObject = {
|
||||
initialize: initialize
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ exports.newNetworkNode = function newNetworkNode() {
|
||||
p2pNetworkPeers: undefined,
|
||||
p2pNetworkNode: undefined,
|
||||
webSocketsInterface: undefined,
|
||||
httpInterface: undefined,
|
||||
socialGraphService: undefined,
|
||||
storage: undefined,
|
||||
run: run
|
||||
@@ -55,7 +56,7 @@ exports.newNetworkNode = function newNetworkNode() {
|
||||
thisObject.socialGraphService = NT.projects.socialTrading.modules.socialGraph.newNetworkModulesSocialGraph()
|
||||
await thisObject.socialGraphService.initialize()
|
||||
/*
|
||||
The Sotrage deals with persisting the Social Graph.
|
||||
The Storage deals with persisting the Social Graph.
|
||||
*/
|
||||
thisObject.storage = NT.projects.socialTrading.modules.storage.newSocialTradingModulesStorage()
|
||||
thisObject.storage.initialize()
|
||||
@@ -65,6 +66,12 @@ exports.newNetworkNode = function newNetworkNode() {
|
||||
thisObject.webSocketsInterface = NT.projects.network.modules.webSocketsInterface.newNetworkModulesWebSocketsInterface()
|
||||
thisObject.webSocketsInterface.initialize()
|
||||
console.log('Network Node Web Sockets Interface ........................................... Listening at port ' + JSON.parse(NT.networkNode.p2pNetworkNode.node.config).webSocketsPort)
|
||||
/*
|
||||
Other Network Nodes and Client Apps will communicate with this Network Node via it's HTTP Interface.
|
||||
*/
|
||||
thisObject.httpInterface = NT.projects.network.modules.httpInterface.newNetworkModulesHttpInterface()
|
||||
thisObject.httpInterface.initialize()
|
||||
console.log('Network Node Http Interface .................................................. Listening at port ' + JSON.parse(NT.networkNode.p2pNetworkNode.node.config).webPort)
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
-4
@@ -47,6 +47,7 @@ exports.newNetworkRoot = function newNetworkRoot() {
|
||||
fs: require('fs'),
|
||||
path: require('path'),
|
||||
util: require('util'),
|
||||
http: require('http'),
|
||||
nodeFetch: require('node-fetch'),
|
||||
web3: require('web3'),
|
||||
ws: require('ws'),
|
||||
@@ -55,13 +56,21 @@ exports.newNetworkRoot = function newNetworkRoot() {
|
||||
/*
|
||||
Setting up Secrets.
|
||||
*/
|
||||
SA.secrets = {
|
||||
array: require('./My-Secrets/Secrets.json').secrets,
|
||||
map: new Map()
|
||||
try {
|
||||
SA.secrets = {
|
||||
array: require('./My-Secrets/Secrets.json').secrets,
|
||||
map: new Map()
|
||||
}
|
||||
} catch (err) {
|
||||
SA.secrets = {
|
||||
array: [],
|
||||
map: new Map()
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < SA.secrets.array.length; i++) {
|
||||
let secret = SA.secrets.array[i]
|
||||
SA.secrets.map.set(secret.signingAccountChildCodeName, secret)
|
||||
SA.secrets.map.set(secret.nodeCodeName, secret)
|
||||
}
|
||||
|
||||
NT.app = require('./Network/NetwokNode.js').newNetworkNode()
|
||||
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
----- Changes made outside of /Projects/Portfolio-Management/ -----
|
||||
|
||||
Projects/ProjectsSchema.json:
|
||||
cp Algorithmic-Trading Portfolio-Management - Some stuff definitely unneded here
|
||||
|
||||
Projects/Community-Plugins/UI/Function-Libraries/
|
||||
ActionSwitch.js:
|
||||
cp case 'Add Missing Plugin Trading Mines' case 'Add Missing Plugin Portfolio Mines'
|
||||
cp case 'Add Missing Plugin Trading Systems' case 'Add Missing Plugin Portfolio Systems'
|
||||
cp case 'Add Missing Plugin Trading Engines' case 'Add Missing Plugin Portfolio Engines'
|
||||
|
||||
PluginsFunctions.js:
|
||||
cp addMissingPluginTradingMines addMissingPluginPortfolioMines
|
||||
cp addMissingPluginTradingSystems addMissingPluginPortfolioSystems
|
||||
cp addMissingPluginTradingEngines addMissingPluginPortfolioEngines
|
||||
|
||||
../Utilities/Plugins.js:
|
||||
function getPluginFolderNamesByNodeType(nodeType):
|
||||
add case 'Portfolio Engine'
|
||||
add case 'Portfolio Mine'
|
||||
add case 'Portfolio System'
|
||||
|
||||
Projects/Data-Mining/UI/Function-Libraries/
|
||||
MineFunctions.js:
|
||||
cp scanBotArray(dataMine.tradingBots) scanBotArray(dataMine.portfolioBots)
|
||||
|
||||
Skipping:
|
||||
Projects/Foundations/TS/Function-Libraries/OutputManagementFunctions.js:
|
||||
tradingProcessDate, VARS...INDEX_MAP->TRADING_PROCESSING_DAILY_FILES, ...
|
||||
|
||||
|
||||
Projects/Foundations/TS/Function-Libraries/
|
||||
SingleMarketFunctions.js:
|
||||
cp findNodeInNodeMesh(outputDatasetNode, 'Trading Bot') ...'Portfolio Bot')
|
||||
Line 117 if...else add portfolioMineNode
|
||||
|
||||
Projects/Foundations/TS/Process-Modules/
|
||||
Dataset.js:
|
||||
cp startingNode.type === 'Market Trading Products'
|
||||
ProcessOutput.js:
|
||||
cp line 27-29, 124-126
|
||||
StatusReport.js:
|
||||
Lines 102, 116, cp 172-222 dealing with finding process definitions the report depends on has been cloned from Trading -> Portfolio
|
||||
|
||||
Projects/Foundations/UI/Function-Libraries/
|
||||
ActionSwitch.js:
|
||||
cp case statements run-all, stop-all, add-missing, references, products, etc.
|
||||
Line 506 && 512 may not need to have been cloned but I did for now - regarding live and paper trading.
|
||||
ChartingSpaceFunctions.js: Needs Completion to include Portfolio at Charting Space.
|
||||
'Market Trading|Portfolio Tasks' -> 'nodeType' as param. <= If error arises note that it was not configured this way by Luis when adding the Learning Mine. This is a File that could be heavily re-factored && optimized.
|
||||
ProductFunctions.js:
|
||||
|
||||
Skipping:
|
||||
Projects/Foundations/UI/Function-Libraries/ChartingSpaceFunctions.js: Needs Completion
|
||||
Projects/Foundations/UI/Function-Libraries/CryptoEcosystemFunctions.js
|
||||
|
||||
Projects/Foundations/UI/Function-Libraries/
|
||||
DataStorageFunctions.js:
|
||||
Many things cloned. But on line 156 only did 'addMissingSession(livePortfolioSessionArray) not back|forward|paper
|
||||
TaskFunctions.js:
|
||||
run/stop | addMissing - Portfolio Tasks. Project|Exchange|Market|Mine
|
||||
Line 148 - Only cloned 'Live Portfolio Session->'
|
||||
Line 198 - Only cloned 'Production Portfolio Tasks->'
|
||||
|
||||
Skipping:
|
||||
Projects/Foundations/UI/Function-Libraries/DependenciesFilter.js:
|
||||
Appears 'tradingSystem' var here is just a parameter so no need change.
|
||||
|
||||
Projects/Foundations/UI/Spaces/
|
||||
/Charting-Space/PlottersManager.js:
|
||||
/Plotting/RecordValues.js:
|
||||
/Design-Space/Workspace.js:
|
||||
/Floating-Space/FloatingSpace.js:
|
||||
/Panel-Space/Layer.js: Line 173 Only 'Live Portfolio Session'
|
||||
|
||||
Projects/Visual-Scripting/UI/Function-Libraries/
|
||||
<<<<<<< Updated upstream
|
||||
ActionsSwitch.js: *** NOTE: Not sure how to handle line 14 at the current moment. ***
|
||||
UiObjectsFromNodes.js: only if(uiObjectType === 'Live Portfolio Session')
|
||||
=======
|
||||
ActionsSwitch.js:
|
||||
NodePath.js*** NOTE: Not sure how to handle line 14 at the current moment. ***
|
||||
UIObjectsFromNodes.js: Line 977 'Live Portfolio Session' only.
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
Skipping:
|
||||
Projects/Foundations/UI/Spaces/Floating-Space/ConditionEditor.js
|
||||
|
||||
Skipping:
|
||||
Projects/Governance/UI/Function-Libraries/ActionSwitch.js:
|
||||
Projects/Machine-Learning/TS/Bot-Modules/Learning-Bot/LearningSession.js:
|
||||
Projects/Machine-Learning/TS/Bot-Modules/Learning-Bot/Low-Frequency-Learning/LearningOutput.js:
|
||||
Projects/Machine-Learning/*
|
||||
Projects/Network/*
|
||||
node_modules, */My-Workspaces, */My-Log-Files, *.json, .gitignore, desktop.js, Environment.js, README.md, run.js, setup.js, Tested-Exchanges, CODEOWNERS, DesktopApp.js, WebApp.js, Projects/Social-Bots/*, Projects/Social-Trading/*, Projects/Governance/*
|
||||
|
||||
|
||||
|
||||
----- Changes made inside Portfolio-Management (Clone of Algorithmic-Trading) -----
|
||||
References to trading changed to portfolio regardless of capitalization:
|
||||
Examples:
|
||||
find ./ -type f -exec sed -i 's/trading/portfolio/g' {} \;
|
||||
find ./ -type f -exec sed -i 's/Trading/Portfolio/g' {} \;
|
||||
find ./ -type f -exec sed -i 's/TRADING/PORTFOLIO/g' {} \;
|
||||
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"program": "${workspaceFolder}\\..\\PlatformRoot.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Log-Files": true,
|
||||
"**/node_modules": true,
|
||||
"**/My-Social-Trading-Data": true,
|
||||
"**/My-Network-Nodes-Data": true,
|
||||
"**/My-Workspaces": true,
|
||||
"**/My-Secrets": true,
|
||||
"**/My-Data-Storage": true,
|
||||
"**/My-Log-Files": true,
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/Data-Storage": true,
|
||||
"**/Log-Files": true,
|
||||
"**/node_modules": true,
|
||||
"**/My-Social-Trading-Data": true,
|
||||
"**/My-Network-Nodes-Data": true,
|
||||
"**/My-Workspaces": true,
|
||||
"**/My-Secrets": true,
|
||||
"**/My-Data-Storage": true,
|
||||
"**/My-Log-Files": true,
|
||||
},
|
||||
"search.maintainFileSearchCache": true,
|
||||
"editor.mouseWheelZoom": true
|
||||
}
|
||||
@@ -4,6 +4,7 @@ exports.newGithubServer = function newGithubServer() {
|
||||
getGithubStars: getGithubStars,
|
||||
getGithubWatchers: getGithubWatchers,
|
||||
getGithubForks: getGithubForks,
|
||||
createGithubFork: createGithubFork,
|
||||
mergePullRequests: mergePullRequests,
|
||||
initialize: initialize,
|
||||
finalize: finalize,
|
||||
@@ -79,7 +80,7 @@ exports.newGithubServer = function newGithubServer() {
|
||||
|
||||
const octokit = new Octokit({
|
||||
auth: token,
|
||||
userAgent: 'Superalgos Beta 12'
|
||||
userAgent: 'Superalgos ' + SA.version
|
||||
})
|
||||
await getList()
|
||||
|
||||
@@ -162,6 +163,46 @@ exports.newGithubServer = function newGithubServer() {
|
||||
}
|
||||
}
|
||||
|
||||
async function createGithubFork(token) {
|
||||
try {
|
||||
token = unescape(token)
|
||||
|
||||
await doGithub()
|
||||
|
||||
async function doGithub() {
|
||||
try {
|
||||
const { Octokit } = SA.nodeModules.octokit
|
||||
const octokit = new Octokit({
|
||||
auth: token,
|
||||
userAgent: 'Superalgos ' + SA.version
|
||||
})
|
||||
|
||||
await octokit.repos.createFork({
|
||||
owner: 'Superalgos',
|
||||
repo: 'Superalgos'
|
||||
})
|
||||
} catch (err) {
|
||||
if (err === undefined) { return }
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> doGithub -> err.stack = ' + err.stack)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> Method call produced an error.')
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> err.stack = ' + err.stack)
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> repository = ' + repository)
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> username = ' + username)
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> token starts with = ' + token.substring(0, 10) + '...')
|
||||
console.log('[ERROR] Github Server -> createGithubFork -> token ends with = ' + '...' + token.substring(token.length - 10))
|
||||
|
||||
let error = {
|
||||
result: 'Fail Because',
|
||||
message: err.message,
|
||||
stack: err.stack
|
||||
}
|
||||
return error
|
||||
}
|
||||
}
|
||||
|
||||
async function mergeGithubPullRequests(commitMessage, username, token) {
|
||||
try {
|
||||
commitMessage = unescape(commitMessage)
|
||||
@@ -169,7 +210,7 @@ exports.newGithubServer = function newGithubServer() {
|
||||
token = unescape(token)
|
||||
const repository = 'Superalgos'
|
||||
|
||||
/* Unsavping # */
|
||||
/* Unsaving # */
|
||||
for (let i = 0; i < 10; i++) {
|
||||
commitMessage = commitMessage.replace('_SLASH_', '/')
|
||||
commitMessage = commitMessage.replace('_HASHTAG_', '#')
|
||||
@@ -207,7 +248,7 @@ exports.newGithubServer = function newGithubServer() {
|
||||
const { Octokit } = SA.nodeModules.octokit
|
||||
const octokit = new Octokit({
|
||||
auth: token,
|
||||
userAgent: 'Superalgos Beta 12'
|
||||
userAgent: 'Superalgos ' + SA.version
|
||||
})
|
||||
await getPrList()
|
||||
await mergePrs()
|
||||
@@ -284,13 +325,30 @@ exports.newGithubServer = function newGithubServer() {
|
||||
/*
|
||||
Lets get the files changed at this Pull Request.
|
||||
*/
|
||||
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
|
||||
let listResponse = await octokit.rest.pulls.listFiles({
|
||||
owner: owner,
|
||||
repo: repo,
|
||||
pull_number: pullRequest.number
|
||||
});
|
||||
let filesChanged = listResponse.data
|
||||
let filesChanged = []
|
||||
const per_page = 100 // Max
|
||||
let page = 0
|
||||
let lastPage = false
|
||||
|
||||
while (lastPage === false) {
|
||||
page++
|
||||
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
|
||||
let listResponse = await octokit.rest.pulls.listFiles({
|
||||
owner: owner,
|
||||
repo: repo,
|
||||
pull_number: pullRequest.number,
|
||||
per_page: per_page,
|
||||
page: page
|
||||
});
|
||||
|
||||
if (listResponse.data.length < 100) {
|
||||
lastPage = true
|
||||
}
|
||||
for (let i = 0; i < listResponse.data.length; i++) {
|
||||
let listItem = listResponse.data[i]
|
||||
filesChanged.push(listItem)
|
||||
}
|
||||
}
|
||||
let fileContentUrl // URL to the only file at the PR
|
||||
let fileContent // File content of the only file at the PR
|
||||
let userProfile // User Profile Object
|
||||
@@ -307,6 +365,11 @@ exports.newGithubServer = function newGithubServer() {
|
||||
if (await validateUserProfileBlockchainAccountDoesNotBelongtoAnotherUserProfile() === false) { continue }
|
||||
if (await validateUserProfileSigningAccountsDoesNotBelongtoAnotherUserProfile() === false) { continue }
|
||||
|
||||
/*
|
||||
TODO: We need to check before merging a User Profile that none of id of the node of the profile hierarchy exists at any other
|
||||
User Profile already at the repository, to avoid attacks of users hijacking references of other user profiles.
|
||||
*/
|
||||
|
||||
if (await mergePullRequest() === false) {
|
||||
console.log('[WARN] Github Server -> mergeGithubPullRequests -> Merge Failed -> Pull Request "' + pullRequest.title + '" not merged because Github could not merge it. -> mergeResponse.message = ' + mergeResponse.data.message)
|
||||
} else {
|
||||
|
||||
+1910
-1802
File diff suppressed because it is too large.
Load diff
@@ -5,6 +5,7 @@ exports.newWeb3Server = function newWeb3Server() {
|
||||
let thisObject = {
|
||||
getNetworkClientStatus: getNetworkClientStatus,
|
||||
createWalletAccount: createWalletAccount,
|
||||
getUserWalletBalance: getUserWalletBalance,
|
||||
getWalletBalances: getWalletBalances,
|
||||
signData: signData,
|
||||
hashData: hashData,
|
||||
@@ -82,6 +83,31 @@ exports.newWeb3Server = function newWeb3Server() {
|
||||
}
|
||||
}
|
||||
|
||||
async function getUserWalletBalance(walletAddress, contractAddress) {
|
||||
|
||||
const bscUri = 'https://bsc-dataseed.binance.org/'
|
||||
const web3 = new Web3(bscUri)
|
||||
|
||||
let balance
|
||||
|
||||
let ABI = [{ "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "unpause", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "name": "account", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "name": "_value", "type": "uint256" }], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "paused", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_subtractedValue", "type": "uint256" }], "name": "decreaseApproval", "outputs": [{ "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "name": "balance", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "listAddress", "type": "address" }, { "name": "isBlackListed", "type": "bool" }], "name": "blackListAddress", "outputs": [{ "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "pause", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transfer", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_addedValue", "type": "uint256" }], "name": "increaseApproval", "outputs": [{ "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" }], "name": "allowance", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "name": "_name", "type": "string" }, { "name": "_symbol", "type": "string" }, { "name": "_decimals", "type": "uint256" }, { "name": "_supply", "type": "uint256" }, { "name": "tokenOwner", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" }], "name": "Mint", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "burner", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" }], "name": "Burn", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Pause", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Unpause", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "tLine truncated
|
||||
|
||||
const contractInst = new web3.eth.Contract(ABI, contractAddress)
|
||||
|
||||
async function getBalance() {
|
||||
balance = await contractInst.methods.balanceOf(walletAddress).call().then(result => web3.utils.fromWei(result, 'ether'))
|
||||
return balance
|
||||
}
|
||||
|
||||
await getBalance()
|
||||
|
||||
return {
|
||||
walletAddress: walletAddress,
|
||||
balance: balance,
|
||||
result: 'Ok'
|
||||
}
|
||||
}
|
||||
|
||||
async function getWalletBalances(host, port, interface, walletDefinition) {
|
||||
let key = 'host (' + host + ') at port (' + port + ') via interface (' + interface + ')'
|
||||
|
||||
@@ -303,7 +329,7 @@ exports.newWeb3Server = function newWeb3Server() {
|
||||
|
||||
async function sendTokens(number, userProfile, fromAddress, toAddress, tokenAmount) {
|
||||
try {
|
||||
|
||||
|
||||
tokenAmount = Math.trunc(tokenAmount / 1000000000000000000)
|
||||
|
||||
console.log('')
|
||||
@@ -361,12 +387,12 @@ exports.newWeb3Server = function newWeb3Server() {
|
||||
|
||||
console.log('Transaction:', rawTransaction)
|
||||
let result
|
||||
|
||||
|
||||
result = await web3.eth.sendSignedTransaction('0x' + transaction.serialize().toString('hex'))
|
||||
.catch(err => {
|
||||
console.log('[ERROR] sendSignedTransaction -> err =' + JSON.stringify(err))
|
||||
})
|
||||
|
||||
|
||||
console.log('Result:', result)
|
||||
return result
|
||||
} catch (err) {
|
||||
|
||||
@@ -142,7 +142,7 @@ exports.newPlatformApp = function newPlatformApp() {
|
||||
console.log('Http Interface .............................................. Listening at port ' + global.env.PLATFORM_HTTP_INTERFACE_PORT)
|
||||
|
||||
console.log('')
|
||||
console.log("You are running Superalgos Beta 12")
|
||||
console.log("You are running Superalgos Platform " + SA.version)
|
||||
console.log('')
|
||||
console.log("What's new? These are the main new features in this version:")
|
||||
console.log('')
|
||||
@@ -154,7 +154,7 @@ exports.newPlatformApp = function newPlatformApp() {
|
||||
console.log('Superalgos P2P Network ...................................... Will allow algo-traders to share trading signals with Superalgos users consuming these signals via a mobile app.')
|
||||
console.log('Real-time Trading Signals ................................... Will allow users to emit trading signals and be rewarded with SA Tokens.')
|
||||
console.log('Superalgos Mobile ........................................... Will allow users to consume trading signals for free and autonomously execute trades from their mobile phones.')
|
||||
console.log('Ethereum Integration ........................................ Will allow mining data from an Ethereum network node, and bring it into the Superalgos workflow. [Looking for an Ethereum dev that would like to continue this line of development.]')
|
||||
console.log('Portfolio Manager ........................................... Will allow a Portfolio Manager bot to supervize Trading Bots deciding where and when to increase or decrease their position sizes.]')
|
||||
|
||||
console.log('')
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ function newCanvas() {
|
||||
UI.projects.foundations.spaces.sideSpace.finalize()
|
||||
UI.projects.foundations.spaces.chartingSpace.finalize()
|
||||
UI.projects.foundations.spaces.floatingSpace.finalize()
|
||||
UI.projects.foundations.spaces.codeEditorSpace.finalize()
|
||||
thisObject.shorcutNumbers = undefined
|
||||
|
||||
if (browserCanvas.removeEventListener) {
|
||||
@@ -385,6 +386,11 @@ function newCanvas() {
|
||||
if (UI.projects.education !== undefined && UI.projects.education.spaces.docsSpace.isVisible === true) {
|
||||
return
|
||||
}
|
||||
/* When the Code Editor is Visible, we do not process key down events of the Designer Space. */
|
||||
if (UI.projects.foundations.spaces.codeEditorSpace.isVisible === true) {
|
||||
return
|
||||
}
|
||||
|
||||
thisObject.mouse.event = event
|
||||
thisObject.mouse.action = 'key down'
|
||||
|
||||
|
||||
@@ -225,6 +225,10 @@ function newEventsServerClient(lanNetworkNode) {
|
||||
port = config.webSocketsPort
|
||||
extwsurl = config.webSocketsExternalURL
|
||||
|
||||
if (UI.environment.DEMO_MODE === true) {
|
||||
host = UI.environment.DEMO_MODE_HOST
|
||||
}
|
||||
|
||||
/* Check if we really have to establish the connection. */
|
||||
if (config.autoConnect === false) { return }
|
||||
} catch (err) {
|
||||
|
||||
@@ -188,7 +188,7 @@ function newFrame() {
|
||||
|
||||
function isThisPointHere(point, outsideViewPort, dontTransform, padding) {
|
||||
// The second parameter is useful when you want to check a point that you already know is outside the viewport.
|
||||
// The padding is a distance to the borders of the container. Can be either negative (outside, to increase the container size) or positive (inside to decrease the cointainer size)
|
||||
// The padding is a distance to the borders of the container. Can be either negative (outside, to increase the container size) or positive (inside to decrease the container size)
|
||||
|
||||
if (padding === undefined) { padding = 0 }
|
||||
|
||||
|
||||
@@ -261,6 +261,11 @@ let CURRENT_PANORAMA_POSITION = 0
|
||||
|
||||
let CAN_SPACES_DRAW = false // This global variable regulates when spaces can or can not draw their contents.
|
||||
|
||||
const codeEditorType = {
|
||||
CODE: "code",
|
||||
CONFIG: "config"
|
||||
}
|
||||
|
||||
function toRadians(angle) {
|
||||
return angle * (Math.PI / 180);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,15 @@
|
||||
.code-editor-page {
|
||||
font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
color: #365558;
|
||||
line-height: 150%;
|
||||
margin: 20 25 20 30px;
|
||||
}
|
||||
|
||||
.editor{
|
||||
height: 70vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#code-path {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
@@ -784,6 +784,10 @@ outline: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.docs-search-input::placeholder {
|
||||
color:#bbb;
|
||||
}
|
||||
|
||||
/* Search Results Page */
|
||||
|
||||
/* Search Results Page Header*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* FlexSearch.js v0.7.2 (Bundle)
|
||||
* Copyright 2018-2021 Nextapps GmbH
|
||||
* Author: Thomas Wilkerling
|
||||
* Licence: Apache-2.0
|
||||
* License: Apache-2.0
|
||||
* https://github.com/nextapps-de/flexsearch
|
||||
*/
|
||||
(function _f(self){'use strict';try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(a){return"undefined"!==typeof a?a:!0}function aa(a){const b=Array(a);for(let c=0;c<a;c++)b[c]=v();return b}function v(){return Object.create(null)}function ba(a,b){return b.length-a.length}function x(a){return"string"===typeof a}function C(a){return"object"===typeof a}function D(a){return"function"===typeof a};function ca(a,b){var c=da;if(a&&(b&&(a=E(a,b)),this.H&&(a=E(a,this.H)),this.J&&1<a.length&&(a=E(a,this.J)),c||""===c)){a=a.split(c);if(this.filter){b=this.filter;c=a.length;const d=[];for(let e=0,f=0;e<c;e++){const g=a[e];g&&!b[g]&&(d[f++]=g)}a=d}return a}return a}const da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/base/worker/fake","out-editor/vs/base/worker/vs/loader.js","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/diff/diffChange.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/errors.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/functional.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/iterator.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/keyCodes.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/lifecycle.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/linkedList.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/platform.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/process.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/path.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/stopwatch.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/event.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/cancellation.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/strings.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/hash.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/diff/diff.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/types.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/uint.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/uri.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/worker/simpleWorker.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/core/characterClassifier.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/core/position.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/core/range.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/core/selection.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/core/token.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/diff/diffComputer.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/model/wordHelper.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/modes/linkComputer.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/modes/supports/inplaceReplaceSupport.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/standalone/standaloneEnums.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/standalone/standaloneBase.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/viewModel/prefixSumComputer.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/model/mirrorTextModel.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/editor/common/services/editorSimpleWorker.ts","out-editor/vs/base/worker/file:/Users/alex/src/vscode2/out-editor-src/vs/base/worker/workerMain.ts"],"sourcesContent":["}).call(this);","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n'use strict';\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/*---------------------------------------------------------------------------------------------\n *---------------------------------------------------------------------------------------------\n *---------------------------------------------------------------------------------------------\n *---------------------------------------------------------------------------------------------\n *------------------------------------------------------------------------------Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/fake","out-editor/vs/editor/vs/css.js","out-editor/vs/editor/vs/nls.js","out-editor/vs/editor/vs/base/browser/dompurify/dompurify.js","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/fastDomNode.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/iframe.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/list/list.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/list/splice.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/scrollbar/scrollbarState.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/tree/tree.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/arrays.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/assert.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/buffer.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/collections.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/color.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/decorators.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/diff/diffChange.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/errors.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/functional.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/idGenerator.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/iterator.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/keyCodes.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/keybindings.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/lazy.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/lifecycle.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/linkedList.ts","out-editor/vs/editor/vs/base/common/marked/marked.js","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/navigator.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/history.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/numbers.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/platform.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/process.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/path.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/range.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/list/rangeMap.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/stopwatch.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/event.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/browser.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/canIUse.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/event.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/keyboardEvent.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/mouseEvent.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/cancellation.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/async.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/codicons.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/tree/treeIcons.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/comparers.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/scrollable.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/strings.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/extpath.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/hash.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/common/diff/diff.ts","out-editor/vs/editor/file:/Users/alex/src/vscode2/out-editor-src/vs/base/browser/ui/tree/indexTreeModel.ts","out-editor/vs/editor/file:/Users/alex/src/vscLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.de.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.de\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"Eingabe\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"Groß-/Kleinschreibung beachten\",\n\t\t\"Nur ganzes Wort suchen\",\n\t\t\"Regulären Ausdruck verwenden\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"Eingabe\",\n\t\t\"Groß-/Kleinschreibung beibehalten\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Wird geladen...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Fehler: {0}\",\n\t\t\"Warnung: {0}\",\n\t\t\"Info: {0}\",\n\t\t\"für Verlauf\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"Ungebunden\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Löschen\",\n\t\t\"Typfilter deaktivieren\",\n\t\t\"Typfilter aktivieren\",\n\t\t\"Keine Elemente gefunden\",\n\t\t\"{0} von {1} Elementen stimmen überein\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(leer)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"Ein Systemfehler ist aufgetreten ({0}).\",\n\t\t\"Ein unbekannter Fehler ist aufgetreten. Weitere Details dazu finden Sie im Protokoll.\",\n\t\t\"Ein unbekannter Fehler ist aufgetreten. Weitere Details dazu finden Sie im Protokoll.\",\n\t\t\"{0} ({1} Fehler gesamt)\",\n\t\t\"Ein unbekannter Fehler ist aufgetreten. Weitere Details dazu finden Sie im Protokoll.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"STRG\",\n\t\t\"UMSCHALTTASTE\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"STRG\",\n\t\t\"UMSCHALTTASTE\",\n\t\t\"ALT\",\n\t\t\"Super\",\n\t\t\"Steuern\",\n\t\t\"UMSCHALTTASTE\",\n\t\t\"ALT\",\n\t\t\"Befehl\",\n\t\t\"Steuern\",\n\t\t\"UMSCHALTTASTE\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"Steuern\",\n\t\t\"UMSCHALTTASTE\",\n\t\t\"ALT\",\n\t\t\"Super\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Zurück\",\n\t\t\"Drücken Sie die EINGABETASTE, um Ihre Eingabe zu bestätigen, oder ESC, um den Vorgang abzubrechen.\",\n\t\t\"{0}/{1}\",\n\t\t\"Nehmen Sie eine Eingabe vor, um die Ergebnisse einzugrenzen.\",\n\t\t\"{0} Ergebnisse\",\n\t\t\"{0} ausgewählt\",\n\t\t\"OK\",\n\t\t\"Benutzerdefiniert\",\n\t\t\"Zurück ({0})\",\n\t\t\"Zurück\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Schnelleingabe\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Auch bei längeren Zeilen am Ende bleiben\",\n\t\t\"Auch bei längeren Zeilen am Ende bleiben\",\n\t\t\"Sekundäre Cursor entfernt\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"Editor\",\n\t\t\"Auf den Editor kann derzeit nicht zugegriffen werden. Drücken Sie {0}, um die Optionen anzuzeigen.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Gibt an, ob der Editor einen abbrechbaren Vorgang ausführt, z. B. \\\"Verweisvorschau\\\".\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"&&Rückgängig\",\n\t\t\"Rückgängig\",\n\t\t\"&&Wiederholen\",\n\t\t\"Wiederholen\",\n\t\t\"&&Alles auswählen\",\n\t\t\"Alle auswählen\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"Die Anzahl der Cursors wurde auf {0} beschränkt.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Zeilenformatierung für Einfügungen im Diff-Editor\",\n\t\t\"Zeilenformatierung für Entfernungen im Diff-Editor\",\n\t\t\"Kann die Dateien nicht vergleichen, da eine Datei zu groß ist.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Symbol für \\\"Einfügen\\\" in der Diff-Überprüfung.\",\n\t\t\"Symbol für \\\"Entfernen\\\" in der Diff-Überprüfung.\",\n\t\t\"Symbol für \\\"Schließen\\\" in der Diff-Überprüfung.\",\n\t\t\"Schließen\",\n\t\t\"keine geänderten Zeilen\",\n\t\t\"1 Zeile geändert\",\n\t\t\"{0} Zeilen geändert\",\n\t\t\"Unterschied {0} von {1}: ursprüngliche Zeile {2}, {3}, geänderte Zeile {4}, {5}\",\n\t\t\"leer\",\n\t\t\"{0}: unveränderte Zeile {1}\",\n\t\t\"{0} ursprüngliche Zeile {1} geänderte Zeile {2}\",\n\t\t\"+ {0} geänderte Zeile(n) {1}\",\n\t\t\"– {0} Originalzeile {1}\",\n\t\t\"Zum nächsten Unterschied wechseln\",\n\t\t\"Zum vorherigen Unterschied wechseln\",\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"Gelöschte Zeilen kopieren\",\n\t\t\"Gelöschte Zeile kopieren\",\n\t\t\"Geänderte Zeilen kopieren\",\n\t\t\"Geänderte Zeile kopierenLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.es.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.es\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"entrada\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"Coincidir mayúsculas y minúsculas\",\n\t\t\"Solo palabras completas\",\n\t\t\"Usar expresión regular\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"entrada\",\n\t\t\"Conservar may/min\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Cargando...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Error: {0}\",\n\t\t\"Advertencia: {0}\",\n\t\t\"Información: {0}\",\n\t\t\"para el historial\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"Sin enlazar\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Borrar\",\n\t\t\"Desactivar filtro en tipo\",\n\t\t\"Activar filtro en el tipo\",\n\t\t\"No se encontraron elementos\",\n\t\t\"{0} de {1} elementos coincidentes\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(vacío)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"Error del sistema ({0})\",\n\t\t\"Se ha producido un error desconocido. Consulte el registro para obtener más detalles.\",\n\t\t\"Se ha producido un error desconocido. Consulte el registro para obtener más detalles.\",\n\t\t\"{0} ({1} errores en total)\",\n\t\t\"Se ha producido un error desconocido. Consulte el registro para obtener más detalles.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"Ctrl\",\n\t\t\"Mayús\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Ctrl\",\n\t\t\"Mayús\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t\t\"Control\",\n\t\t\"Mayús\",\n\t\t\"Alt\",\n\t\t\"Comando\",\n\t\t\"Control\",\n\t\t\"Mayús\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Control\",\n\t\t\"Mayús\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Atrás\",\n\t\t\"Presione \\\"Entrar\\\" para confirmar su entrada o \\\"Esc\\\" para cancelar\",\n\t\t\"{0}/{1}\",\n\t\t\"Escriba para restringir los resultados.\",\n\t\t\"{0} resultados\",\n\t\t\"{0} seleccionados\",\n\t\t\"Aceptar\",\n\t\t\"Personalizado\",\n\t\t\"Atrás ({0})\",\n\t\t\"Atrás\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Entrada rápida\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Anclar al final incluso cuando se vayan a líneas más largas\",\n\t\t\"Anclar al final incluso cuando se vayan a líneas más largas\",\n\t\t\"Cursores secundarios quitados\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"editor\",\n\t\t\"El editor no es accesible en este momento. Pulse {0} para ver las opciones.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Indica si el editor ejecuta una operación que se puede cancelar como, por ejemplo, \\\"Inspeccionar referencias\\\"\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"&&Deshacer\",\n\t\t\"Deshacer\",\n\t\t\"&&Rehacer\",\n\t\t\"Rehacer\",\n\t\t\"&&Seleccionar todo\",\n\t\t\"Seleccionar todo\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"El número de cursores se ha limitado a {0}.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Decoración de línea para las inserciones en el editor de diferencias.\",\n\t\t\"Decoración de línea para las eliminaciones en el editor de diferencias.\",\n\t\t\"Los archivos no se pueden comparar porque uno de ellos es demasiado grande.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Icono para \\\"Insertar\\\" en la revisión de diferencias.\",\n\t\t\"Icono para \\\"Quitar\\\" en la revisión de diferencias.\",\n\t\t\"Icono para \\\"Cerrar\\\" en la revisión de diferencias.\",\n\t\t\"Cerrar\",\n\t\t\"no se han cambiado líneas\",\n\t\t\"1 línea cambiada\",\n\t\t\"{0} líneas cambiadas\",\n\t\t\"Diferencia {0} de {1}: línea original {2}, {3}, línea modificada {4}, {5}\",\n\t\t\"vacío\",\n\t\t\"{0} línea sin cambios {1}\",\n\t\t\"{0} línea original {1} línea modificada {2}\",\n\t\t\"+ {0} línea modificada {1}\",\n\t\t\"- {0} línea original {1}\",\n\t\t\"Ir a la siguiente diferencia\",\n\t\t\"Ir a la diferencia anterior\",\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"Copiar líneas eliminadas\",\n\t\t\"Copiar línea eliminada\",\n\t\t\"Copiar líneas cambiadas\",\n\t\t\"Copiar línea cambiada\",\n\t\t\"Copiar la línea eliminada (Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.fr.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.fr\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"entrée\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"Respecter la casse\",\n\t\t\"Mot entier\",\n\t\t\"Utiliser une expression régulière\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"entrée\",\n\t\t\"Préserver la casse\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Chargement...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Erreur : {0}\",\n\t\t\"Avertissement : {0}\",\n\t\t\"Info : {0}\",\n\t\t\"pour l’historique\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"Indépendant\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Effacer\",\n\t\t\"Désactiver le filtre sur le type\",\n\t\t\"Activer le filtre sur le type\",\n\t\t\"Aucun élément\",\n\t\t\"{0} éléments sur {1} correspondants\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(vide)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"Une erreur système s\\'est produite ({0})\",\n\t\t\"Une erreur inconnue s’est produite. Veuillez consulter le journal pour plus de détails.\",\n\t\t\"Une erreur inconnue s’est produite. Veuillez consulter le journal pour plus de détails.\",\n\t\t\"{0} ({1} erreurs au total)\",\n\t\t\"Une erreur inconnue s’est produite. Veuillez consulter le journal pour plus de détails.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"Ctrl\",\n\t\t\"Maj\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Ctrl\",\n\t\t\"Maj\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t\t\"Contrôle\",\n\t\t\"Maj\",\n\t\t\"Alt\",\n\t\t\"Commande\",\n\t\t\"Contrôle\",\n\t\t\"Maj\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Contrôle\",\n\t\t\"Maj\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Précédent\",\n\t\t\"Appuyez sur \\'Entrée\\' pour confirmer votre saisie, ou sur \\'Échap\\' pour l\\'annuler\",\n\t\t\"{0}/{1}\",\n\t\t\"Taper pour affiner les résultats.\",\n\t\t\"{0} résultats\",\n\t\t\"{0} Sélectionnés\",\n\t\t\"OK\",\n\t\t\"Personnalisé\",\n\t\t\"Précédent ({0})\",\n\t\t\"Précédent\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Entrée rapide\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Aligner par rapport à la fin même en cas de passage à des lignes plus longues\",\n\t\t\"Aligner par rapport à la fin même en cas de passage à des lignes plus longues\",\n\t\t\"Curseurs secondaires supprimés\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"éditeur\",\n\t\t\"L\\'éditeur n\\'est pas accessible pour le moment. Appuyez sur {0} pour voir les options.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Indique si l\\'éditeur exécute une opération annulable, par exemple \\'Avoir un aperçu des références\\'\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"Ann&&uler\",\n\t\t\"Annuler\",\n\t\t\"&&Rétablir\",\n\t\t\"Rétablir\",\n\t\t\"&&Sélectionner tout\",\n\t\t\"Tout sélectionner\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"Le nombre de curseurs a été limité à {0}.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Élément décoratif de ligne pour les insertions dans l\\'éditeur de différences.\",\n\t\t\"Élément décoratif de ligne pour les suppressions dans l\\'éditeur de différences.\",\n\t\t\"Impossible de comparer les fichiers car l\\'un d\\'eux est trop volumineux.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Icône de l\\'option Insérer dans la revue des différences.\",\n\t\t\"Icône de l\\'option Supprimer dans la revue des différences.\",\n\t\t\"Icône de l\\'option Fermer dans la revue des différences.\",\n\t\t\"Fermer\",\n\t\t\"aucune ligne changée\",\n\t\t\"1 ligne changée\",\n\t\t\"{0} lignes changées\",\n\t\t\"Différence {0} sur {1} : ligne d\\'origine {2}, {3}, ligne modifiée {4}, {5}\",\n\t\t\"vide\",\n\t\t\"{0} ligne inchangée {1}\",\n\t\t\"{0} ligne d\\'origine {1} ligne modifiée {2}\",\n\t\t\"+ {0} ligne modifiée {1}\",\n\t\t\"- {0} ligne d\\'origine {1}\",\n\t\t\"Accéder à la différence suivante\",\n\t\t\"Accéder la différence précédente\",\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"Copier les lignes Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.it.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.it\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"input\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"Maiuscole/minuscole\",\n\t\t\"Parola intera\",\n\t\t\"Usa espressione regolare\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"input\",\n\t\t\"Mantieni maiuscole/minuscole\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Caricamento...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Errore: {0}\",\n\t\t\"Avviso: {0}\",\n\t\t\"Info: {0}\",\n\t\t\"per la cronologia\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"Non associato\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Cancella\",\n\t\t\"Disabilita filtro sul tipo\",\n\t\t\"Abilita filtro sul tipo\",\n\t\t\"Non sono stati trovati elementi\",\n\t\t\"Abbinamento di {0} su {1} elementi\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(vuoto)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"Si è verificato un errore di sistema ({0})\",\n\t\t\"Si è verificato un errore sconosciuto. Per altri dettagli, vedere il log.\",\n\t\t\"Si è verificato un errore sconosciuto. Per altri dettagli, vedere il log.\",\n\t\t\"{0} ({1} errori in totale)\",\n\t\t\"Si è verificato un errore sconosciuto. Per altri dettagli, vedere il log.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"CTRL\",\n\t\t\"MAIUSC\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"CTRL\",\n\t\t\"MAIUSC\",\n\t\t\"ALT\",\n\t\t\"Super\",\n\t\t\"CTRL\",\n\t\t\"MAIUSC\",\n\t\t\"ALT\",\n\t\t\"Comando\",\n\t\t\"CTRL\",\n\t\t\"MAIUSC\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"CTRL\",\n\t\t\"MAIUSC\",\n\t\t\"ALT\",\n\t\t\"Super\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Indietro\",\n\t\t\"Premere \\'INVIO\\' per confermare l\\'input oppure \\'ESC\\' per annullare\",\n\t\t\"{0}/{1}\",\n\t\t\"Digitare per ridurre il numero di risultati.\",\n\t\t\"{0} risultati\",\n\t\t\"{0} selezionati\",\n\t\t\"OK\",\n\t\t\"Personalizzato\",\n\t\t\"Indietro ({0})\",\n\t\t\"Indietro\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Input rapido\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Si attiene alla fine anche quando si passa a righe più lunghe\",\n\t\t\"Si attiene alla fine anche quando si passa a righe più lunghe\",\n\t\t\"Cursori secondari rimossi\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"editor\",\n\t\t\"L\\'editor non è accessibile in questo momento. Premere {0} per le opzioni.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Indica se l\\'editor esegue un\\'operazione annullabile, ad esempio \\'Anteprima riferimenti\\'\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"&&Annulla\",\n\t\t\"Annulla azione\",\n\t\t\"&&Ripeti\",\n\t\t\"Ripeti\",\n\t\t\"&&Seleziona tutto\",\n\t\t\"Seleziona tutto\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"Il numero di cursori è stato limitato a {0}.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Effetto di riga per gli inserimenti nell\\'editor diff.\",\n\t\t\"Effetto di riga per le rimozioni nell\\'editor diff.\",\n\t\t\"Non è possibile confrontare i file perché uno è troppo grande.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Icona per \\'Inserisci\\' nella revisione diff.\",\n\t\t\"Icona per \\'Rimuovi\\' nella revisione diff.\",\n\t\t\"Icona per \\'Chiudi\\' nella revisione diff.\",\n\t\t\"Chiudi\",\n\t\t\"nessuna riga modificata\",\n\t\t\"1 riga modificata\",\n\t\t\"{0} righe modificate\",\n\t\t\"Differenza {0} di {1}: riga originale {2}, {3}, riga modificata {4}, {5}\",\n\t\t\"vuota\",\n\t\t\"{0} riga non modificata {1}\",\n\t\t\"{0} riga originale {1} riga modificata {2}\",\n\t\t\"+ {0} riga modificata {1}\",\n\t\t\"- {0} riga originale {1}\",\n\t\t\"Vai alla differenza successiva\",\n\t\t\"Vai alla differenza precedente\",\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"Copia le righe eliminate\",\n\t\t\"Copia la riga eliminata\",\n\t\t\"Copia righe modificate\",\n\t\t\"Copia riga modificata\",\n\t\t\"Copia la riga eliminata ({0})\",\n\t\t\"Copia riga modificata ({0})\",\n\t\t\"Ripristina questa modifica\",\n\t\t\"Copia la riga eliminata ({0})\",\n\t\t\"Copia riga modificata ({0})\",\n\t]Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.ja.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.ja\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"入力\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"大文字と小文字を区別する\",\n\t\t\"単語単位で検索する\",\n\t\t\"正規表現を使用する\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"入力\",\n\t\t\"保持する\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"読み込み中...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"エラー: {0}\",\n\t\t\"警告: {0}\",\n\t\t\"情報: {0}\",\n\t\t\"履歴対象\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"バインドなし\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"クリア\",\n\t\t\"型のフィルターを無効にする\",\n\t\t\"型のフィルターを有効にする\",\n\t\t\"要素が見つかりません\",\n\t\t\"{1} 個の要素のうち {0} 個の要素が一致しました\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(空)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"システム エラーが発生しました ({0})\",\n\t\t\"不明なエラーが発生しました。ログで詳細を確認してください。\",\n\t\t\"不明なエラーが発生しました。ログで詳細を確認してください。\",\n\t\t\"{0} (合計 {1} エラー)\",\n\t\t\"不明なエラーが発生しました。ログで詳細を確認してください。\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"Ctrl\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Ctrl\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"コマンド\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"戻る\",\n\t\t\"\\'Enter\\' を押して入力を確認するか \\'Escape\\' を押して取り消します\",\n\t\t\"{0}/{1}\",\n\t\t\"入力すると結果が絞り込まれます。\",\n\t\t\"{0} 件の結果\",\n\t\t\"{0} 個選択済み\",\n\t\t\"OK\",\n\t\t\"カスタム\",\n\t\t\"戻る ({0})\",\n\t\t\"戻る\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"クイック入力\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"長い行に移動しても行末に位置します\",\n\t\t\"長い行に移動しても行末に位置します\",\n\t\t\"セカンダリ カーソルが削除されました\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"エディター\",\n\t\t\"この時点では、エディターにアクセスできません。オプションを表示するには、{0} を押します。\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"エディターで取り消し可能な操作 (\\'参照をここに表示\\' など) を実行するかどうか\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"元に戻す(&&U)\",\n\t\t\"元に戻す\",\n\t\t\"やり直し(&&R)\",\n\t\t\"やり直し\",\n\t\t\"すべて選択(&&S)\",\n\t\t\"すべてを選択\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"カーソルの数は {0} 個に制限されています。\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"差分エディターで挿入を示す線の装飾。\",\n\t\t\"差分エディターで削除を示す線の装飾。\",\n\t\t\"一方のファイルが大きすぎるため、ファイルを比較できません。\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"差分レビューでの \\'挿入\\' のアイコン。\",\n\t\t\"差分レビューでの \\'削除\\' のアイコン。\",\n\t\t\"差分レビューでの \\'閉じる\\' のアイコン。\",\n\t\t\"閉じる\",\n\t\t\"変更された行はありません\",\n\t\t\"1 行が変更されました\",\n\t\t\"{0} 行が変更されました\",\n\t\t\"相違 {0}/{1}: 元の行 {2}、{3}。変更された行 {4}、{5}\",\n\t\t\"空白\",\n\t\t\"{0} 変更されていない行 {1}\",\n\t\t\"{0} 元の行 {1} 変更された行 {2}\",\n\t\t\"+ {0} 変更された行 {1}\",\n\t\t\"- {0} 元の行 {1}\",\n\t\t\"次の差分に移動\",\n\t\t\"前の差分に移動\",\n\t],\n\t\"vs/editoLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\n/*---------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n *--------------------------------------------------------*/\ndefine(\"vs/editor/editor.main.nls\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\"\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"input\"\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"Match Case\",\n\t\t\"Match Whole Word\",\n\t\t\"Use Regular Expression\"\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"input\",\n\t\t\"Preserve Case\"\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Loading...\"\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Error: {0}\",\n\t\t\"Warning: {0}\",\n\t\t\"Info: {0}\",\n\t\t\"for history\"\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"Unbound\"\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\"\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Clear\",\n\t\t\"Disable Filter on Type\",\n\t\t\"Enable Filter on Type\",\n\t\t\"No elements found\",\n\t\t\"Matched {0} out of {1} elements\"\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(empty)\"\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"A system error occurred ({0})\",\n\t\t\"An unknown error occurred. Please consult the log for more details.\",\n\t\t\"An unknown error occurred. Please consult the log for more details.\",\n\t\t\"{0} ({1} errors in total)\",\n\t\t\"An unknown error occurred. Please consult the log for more details.\"\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"Ctrl\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Ctrl\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Super\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Command\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Windows\",\n\t\t\"Control\",\n\t\t\"Shift\",\n\t\t\"Alt\",\n\t\t\"Super\"\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Back\",\n\t\t\"Press 'Enter' to confirm your input or 'Escape' to cancel\",\n\t\t\"{0}/{1}\",\n\t\t\"Type to narrow down results.\",\n\t\t\"{0} Results\",\n\t\t\"{0} Selected\",\n\t\t\"OK\",\n\t\t\"Custom\",\n\t\t\"Back ({0})\",\n\t\t\"Back\"\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Quick Input\"\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Stick to the end even when going to longer lines\",\n\t\t\"Stick to the end even when going to longer lines\",\n\t\t\"Removed secondary cursors\"\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"editor\",\n\t\t\"The editor is not accessible at this time. Press {0} for options.\"\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Whether the editor runs a cancellable operation, e.g. like 'Peek References'\"\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"&&Undo\",\n\t\t\"Undo\",\n\t\t\"&&Redo\",\n\t\t\"Redo\",\n\t\t\"&&Select All\",\n\t\t\"Select All\"\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"The number of cursors has been limited to {0}.\"\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Line decoration for inserts in the diff editor.\",\n\t\t\"Line decoration for removals in the diff editor.\",\n\t\t\"Cannot compare files because one file is too large.\"\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Icon for 'Insert' in diff review.\",\n\t\t\"Icon for 'Remove' in diff review.\",\n\t\t\"Icon for 'Close' in diff review.\",\n\t\t\"Close\",\n\t\t\"no lines changed\",\n\t\t\"1 line changed\",\n\t\t\"{0} lines changed\",\n\t\t\"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}\",\n\t\t\"blank\",\n\t\t\"{0} unchanged line {1}\",\n\t\t\"{0} original line {1} modified line {2}\",\n\t\t\"+ {0} modified line {1}\",\n\t\t\"- {0} original line {1}\",\n\t\t\"Go to Next Difference\",\n\t\t\"Go to Previous Difference\"\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"Copy deleted lines\",\n\t\t\"Copy deleted line\",\n\t\t\"Copy changed lines\",\n\t\t\"Copy changed line\",\n\t\t\"Copy deleted line ({0})\",\n\t\t\"Copy changed line ({0})\",\n\t\t\"Revert this change\",\n\t\t\"Copy deleted line ({0})\",\n\t\t\"Copy changed line ({0})\"\n\t],\n\t\"vs/editor/common/config/commonEditorConfig\": [\n\t\t\"Editor\",\n\t\t\"The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.\",\n\t\t\"Insert spaces Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.ko.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.ko\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0}({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"입력\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"대/소문자 구분\",\n\t\t\"단어 단위로\",\n\t\t\"정규식 사용\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"입력\",\n\t\t\"대/소문자 보존\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"로드 중...\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"오류: {0}\",\n\t\t\"경고: {0}\",\n\t\t\"정보: {0}\",\n\t\t\"기록용\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"바인딩 안 됨\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0}({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"지우기\",\n\t\t\"형식을 기준으로 필터링 사용 안 함\",\n\t\t\"형식을 기준으로 필터링 사용\",\n\t\t\"찾은 요소 없음\",\n\t\t\"{1}개 요소 중 {0}개 일치\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(비어 있음)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"시스템 오류가 발생했습니다({0}).\",\n\t\t\"알 수 없는 오류가 발생했습니다. 자세한 내용은 로그를 참조하세요.\",\n\t\t\"알 수 없는 오류가 발생했습니다. 자세한 내용은 로그를 참조하세요.\",\n\t\t\"{0}(총 {1}개의 오류)\",\n\t\t\"알 수 없는 오류가 발생했습니다. 자세한 내용은 로그를 참조하세요.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"Ctrl\",\n\t\t\"<Shift>\",\n\t\t\"<Alt>\",\n\t\t\"Windows\",\n\t\t\"Ctrl\",\n\t\t\"<Shift>\",\n\t\t\"<Alt>\",\n\t\t\"슈퍼\",\n\t\t\"제어\",\n\t\t\"<Shift>\",\n\t\t\"<Alt>\",\n\t\t\"명령\",\n\t\t\"제어\",\n\t\t\"<Shift>\",\n\t\t\"<Alt>\",\n\t\t\"Windows\",\n\t\t\"제어\",\n\t\t\"<Shift>\",\n\t\t\"<Alt>\",\n\t\t\"슈퍼\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"뒤로\",\n\t\t\"입력을 확인하려면 \\'Enter\\' 키를 누르고, 취소하려면 \\'Esc\\' 키를 누르세요.\",\n\t\t\"{0} / {1}\",\n\t\t\"결과의 범위를 축소하려면 입력하세요.\",\n\t\t\"{0}개 결과\",\n\t\t\"{0} 선택됨\",\n\t\t\"확인\",\n\t\t\"사용자 지정\",\n\t\t\"뒤로({0})\",\n\t\t\"뒤로\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"빠른 입력\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"더 긴 줄로 이동하는 경우에도 끝에 고정\",\n\t\t\"더 긴 줄로 이동하는 경우에도 끝에 고정\",\n\t\t\"보조 커서가 제거됨\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"편집기\",\n\t\t\"현재 편집기에 액세스할 수 없습니다. 옵션을 보려면 {0}을(를) 누릅니다.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"편집기에서 취소 가능한 작업(예: \\'참조 피킹\\')을 실행하는지 여부\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"실행 취소(&&U)\",\n\t\t\"실행 취소\",\n\t\t\"다시 실행(&&R)\",\n\t\t\"다시 실행\",\n\t\t\"모두 선택(&&S)\",\n\t\t\"모두 선택\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"커서 수는 {0}(으)로 제한되었습니다.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"diff 편집기의 삽입에 대한 줄 데코레이션입니다.\",\n\t\t\"diff 편집기의 제거에 대한 줄 데코레이션입니다.\",\n\t\t\"파일 1개가 너무 커서 파일을 비교할 수 없습니다.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"Diff 검토에서 \\'삽입\\'의 아이콘입니다.\",\n\t\t\"Diff 검토에서 \\'제거\\'의 아이콘입니다.\",\n\t\t\"Diff 검토에서 \\'닫기\\'의 아이콘입니다.\",\n\t\t\"닫기\",\n\t\t\"변경된 줄 없음\",\n\t\t\"선 1개 변경됨\",\n\t\t\"줄 {0}개 변경됨\",\n\t\t\"차이 {0}/{1}: 원래 줄 {2}, {3}, 수정된 줄 {4}, {5}\",\n\t\t\"비어 있음\",\n\t\t\"{0} 변경되지 않은 줄 {1}\",\n\t\t\"{0} 원래 줄 {1} 수정된 줄 {2}\",\n\t\t\"+ {0} 수정된 줄 {1}\",\n\t\t\"- {0} 원래 줄 {1}\",\n\t\t\"다음 다른 항목으로 이동\",\n\t\t\"다음 다른 항목으로 이동\",\n\t],\n\t\"vs/editor/browser/widget/inlineDiffMargin\": [\n\t\t\"삭제된 줄 복사\",\n\t\t\"삭제된 줄 복사\",\n\t\t\"변경된 줄 복사\",\n\t\t\"변경된 줄 복사\",\n\t\t\"삭제Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["out-editor/vs/editor/editor.main.nls.ru.js"],"sourcesContent":["/*!-----------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.30.0(8507f3abc71412b9d5c822d0ae372b8dc87a796f)\n * Released under the MIT license\n * https://github.com/microsoft/vscode/blob/main/LICENSE.txt\n *-----------------------------------------------------------*/\n\ndefine(\"vs/editor/editor.main.nls.ru\", {\n\t\"vs/base/browser/ui/actionbar/actionViewItems\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInput\": [\n\t\t\"входные данные\",\n\t],\n\t\"vs/base/browser/ui/findinput/findInputCheckboxes\": [\n\t\t\"С учетом регистра\",\n\t\t\"Слово целиком\",\n\t\t\"Использовать регулярное выражение\",\n\t],\n\t\"vs/base/browser/ui/findinput/replaceInput\": [\n\t\t\"входные данные\",\n\t\t\"Сохранить регистр\",\n\t],\n\t\"vs/base/browser/ui/iconLabel/iconLabelHover\": [\n\t\t\"Загрузка…\",\n\t],\n\t\"vs/base/browser/ui/inputbox/inputBox\": [\n\t\t\"Ошибка: {0}\",\n\t\t\"Предупреждение: {0}\",\n\t\t\"Информация: {0}\",\n\t\t\"для журнала\",\n\t],\n\t\"vs/base/browser/ui/keybindingLabel/keybindingLabel\": [\n\t\t\"свободный\",\n\t],\n\t\"vs/base/browser/ui/menu/menu\": [\n\t\t\"{0} ({1})\",\n\t],\n\t\"vs/base/browser/ui/tree/abstractTree\": [\n\t\t\"Сброс\",\n\t\t\"Отключить фильтр по типу\",\n\t\t\"Включить фильтр по типу\",\n\t\t\"Элементы не найдены\",\n\t\t\"Сопоставлено элементов: {0} из {1}\",\n\t],\n\t\"vs/base/common/actions\": [\n\t\t\"(пусто)\",\n\t],\n\t\"vs/base/common/errorMessage\": [\n\t\t\"{0}: {1}\",\n\t\t\"Произошла системная ошибка ({0})\",\n\t\t\"Произошла неизвестная ошибка. Подробные сведения см. в журнале.\",\n\t\t\"Произошла неизвестная ошибка. Подробные сведения см. в журнале.\",\n\t\t\"{0} (всего ошибок: {1})\",\n\t\t\"Произошла неизвестная ошибка. Подробные сведения см. в журнале.\",\n\t],\n\t\"vs/base/common/keybindingLabels\": [\n\t\t\"CTRL\",\n\t\t\"SHIFT\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"CTRL\",\n\t\t\"SHIFT\",\n\t\t\"ALT\",\n\t\t\"Превосходно\",\n\t\t\"CTRL\",\n\t\t\"SHIFT\",\n\t\t\"ALT\",\n\t\t\"Команда\",\n\t\t\"CTRL\",\n\t\t\"SHIFT\",\n\t\t\"ALT\",\n\t\t\"Windows\",\n\t\t\"CTRL\",\n\t\t\"SHIFT\",\n\t\t\"ALT\",\n\t\t\"Превосходно\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInput\": [\n\t\t\"Назад\",\n\t\t\"Нажмите клавишу ВВОД, чтобы подтвердить введенные данные, или ESCAPE для отмены\",\n\t\t\"{0} / {1}\",\n\t\t\"Введите текст, чтобы уменьшить число результатов.\",\n\t\t\"Результаты: {0}\",\n\t\t\"{0} выбрано\",\n\t\t\"OK\",\n\t\t\"Другой\",\n\t\t\"Назад ({0})\",\n\t\t\"Назад\",\n\t],\n\t\"vs/base/parts/quickinput/browser/quickInputList\": [\n\t\t\"Быстрый ввод\",\n\t],\n\t\"vs/editor/browser/controller/coreCommands\": [\n\t\t\"Размещать на конце даже для более длинных строк\",\n\t\t\"Размещать на конце даже для более длинных строк\",\n\t\t\"Дополнительные курсоры удалены.\",\n\t],\n\t\"vs/editor/browser/controller/textAreaHandler\": [\n\t\t\"редактор\",\n\t\t\"Сейчас редактор недоступен. Нажмите {0} для отображения вариантов.\",\n\t],\n\t\"vs/editor/browser/core/keybindingCancellation\": [\n\t\t\"Выполняются ли в редакторе операции, допускающие отмену, например, \\\"Показать ссылки\\\"\",\n\t],\n\t\"vs/editor/browser/editorExtensions\": [\n\t\t\"&&Отменить\",\n\t\t\"Отменить\",\n\t\t\"&&Повторить\",\n\t\t\"Вернуть\",\n\t\t\"&&Выделить все\",\n\t\t\"Выбрать все\",\n\t],\n\t\"vs/editor/browser/widget/codeEditorWidget\": [\n\t\t\"Количество курсоров ограничено {0}.\",\n\t],\n\t\"vs/editor/browser/widget/diffEditorWidget\": [\n\t\t\"Оформление строки для вставок в редакторе несовпадений.\",\n\t\t\"Оформление строки для удалений в редакторе несовпадений.\",\n\t\t\"Нельзя сравнить файлы, потому что один из файлов слишком большой.\",\n\t],\n\t\"vs/editor/browser/widget/diffReview\": [\n\t\t\"ЗначоLine truncated
|
||||
Loaded 100 of 1088 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user