Compare commits
198
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5456f13c9e | ||
|
|
f45254bb5d | ||
|
|
ef406c8baa | ||
|
|
405809f13a | ||
|
|
1a01d21f60 | ||
|
|
a012f392d8 | ||
|
|
1bc6a1ed07 | ||
|
|
846190dfba | ||
|
|
e94b7243c5 | ||
|
|
10186ed535 | ||
|
|
aabfcbe6bc | ||
|
|
558050daf3 | ||
|
|
c5be27440a | ||
|
|
7987e58424 | ||
|
|
2e8b160682 | ||
|
|
9abb45a43c | ||
|
|
0e1355a038 | ||
|
|
80e4a750b1 | ||
|
|
25d6e4efd1 | ||
|
|
e146b03aef | ||
|
|
087a14289a | ||
|
|
e85bd673fc | ||
|
|
9e8231ab01 | ||
|
|
c23071fb91 | ||
|
|
46ce7b88eb | ||
|
|
d71907f422 | ||
|
|
9ecc065879 | ||
|
|
c370276198 | ||
|
|
4a30624fe8 | ||
|
|
4b43c5f81f | ||
|
|
0ed7cca740 | ||
|
|
509db097ff | ||
|
|
235ceed10c | ||
|
|
ab163baa70 | ||
|
|
c1ef23a761 | ||
|
|
e2d9898cb1 | ||
|
|
29341a7f94 | ||
|
|
92a52daf98 | ||
|
|
ee7a3bf5d2 | ||
|
|
f30b5af0af | ||
|
|
a837e4881f | ||
|
|
d2307f49d9 | ||
|
|
5268b8e5e6 | ||
|
|
d7d3ac76a5 | ||
|
|
acd2aa315e | ||
|
|
7c20ca2b54 | ||
|
|
45fe331ad7 | ||
|
|
bd8a799366 | ||
|
|
1ccc568260 | ||
|
|
e5488947f7 | ||
|
|
d6975c45e0 | ||
|
|
a3785953af | ||
|
|
afaf4e0ec8 | ||
|
|
a759938a8d | ||
|
|
60a68e8d93 | ||
|
|
a140779ded | ||
|
|
b416763599 | ||
|
|
4e62281f88 | ||
|
|
1cf427cbf6 | ||
|
|
179eb2a036 | ||
|
|
33649efc75 | ||
|
|
77b769457a | ||
|
|
a5438849b9 | ||
|
|
562c376c68 | ||
|
|
24b851a623 | ||
|
|
d019a005c9 | ||
|
|
5b60841ada | ||
|
|
839e5c1556 | ||
|
|
e3c52af56c | ||
|
|
127db3f3e5 | ||
|
|
186a93bc38 | ||
|
|
c846646719 | ||
|
|
24fb595424 | ||
|
|
fef74e7552 | ||
|
|
27dd8ff292 | ||
|
|
13e884a048 | ||
|
|
060c0932dd | ||
|
|
401bc09b75 | ||
|
|
641dec17da | ||
|
|
cddb334f80 | ||
|
|
ccfd48532e | ||
|
|
291a390848 | ||
|
|
a8e4c414fc | ||
|
|
e30c3b2270 | ||
|
|
2356415099 | ||
|
|
89ae20758d | ||
|
|
7e49454183 | ||
|
|
e81138f1d3 | ||
|
|
ea29c80772 | ||
|
|
d3b1d7efdb | ||
|
|
de37b0b631 | ||
|
|
75a4015954 | ||
|
|
9c4461ef88 | ||
|
|
cee10e06e5 | ||
|
|
7144ed24dc | ||
|
|
2c2ac4c93e | ||
|
|
0686d7bc99 | ||
|
|
a7ddc1ee88 | ||
|
|
c2c198c3f3 | ||
|
|
a9b6753991 | ||
|
|
b5a4a11591 | ||
|
|
524bf18920 | ||
|
|
72cb487b75 | ||
|
|
03de49e59b | ||
|
|
95112ee266 | ||
|
|
35cf374f79 | ||
|
|
df4f70917c | ||
|
|
75e6c46e66 | ||
|
|
0c66bdd6ad | ||
|
|
462937b6df | ||
|
|
59a1ef8894 | ||
|
|
edbc5e1ffa | ||
|
|
842d552b39 | ||
|
|
9734c27d18 | ||
|
|
88664152e3 | ||
|
|
6f7bb90106 | ||
|
|
c51a6630bd | ||
|
|
375e9121fd | ||
|
|
0c8cbe4d4f | ||
|
|
26ec5f0a40 | ||
|
|
35905f4a09 | ||
|
|
518e8747b2 | ||
|
|
669175b062 | ||
|
|
9443f2f50a | ||
|
|
8fdaa188e0 | ||
|
|
d2026a5d94 | ||
|
|
0be96a6777 | ||
|
|
3f25821f36 | ||
|
|
8fdf8e340b | ||
|
|
367ea73166 | ||
|
|
32fb7cb6f0 | ||
|
|
1494e69517 | ||
|
|
f5aabe1a87 | ||
|
|
600c7ca351 | ||
|
|
fb0380820c | ||
|
|
c88824e7a0 | ||
|
|
5713fe81a4 | ||
|
|
a23e648e17 | ||
|
|
2878b26c29 | ||
|
|
8b7f866059 | ||
|
|
52036082a7 | ||
|
|
ef9ee8726e | ||
|
|
d169bba0bb | ||
|
|
f97ab8c223 | ||
|
|
cfc82f7df8 | ||
|
|
c7553651f3 | ||
|
|
4e309b212f | ||
|
|
fabed476f7 | ||
|
|
a8f1d76cbe | ||
|
|
237c69b293 | ||
|
|
c833edfefb | ||
|
|
b155569c95 | ||
|
|
d5f1bf7b79 | ||
|
|
2303ca308c | ||
|
|
986543ef8b | ||
|
|
654c237094 | ||
|
|
9f2831634d | ||
|
|
de3fefd4dd | ||
|
|
abbd64bff6 | ||
|
|
aeb51cf241 | ||
|
|
43b624a0fe | ||
|
|
7b062ce2a4 | ||
|
|
2b145d7feb | ||
|
|
fcb1c4225b | ||
|
|
42b60fddb6 | ||
|
|
cbac7e0052 | ||
|
|
db2c4d8bb1 | ||
|
|
6d5a3733ff | ||
|
|
c4f450bab7 | ||
|
|
ce136b4940 | ||
|
|
60da5983e0 | ||
|
|
a9ec4e99b7 | ||
|
|
00c663f3b6 | ||
|
|
d04c929109 | ||
|
|
94accca55c | ||
|
|
492da79b09 | ||
|
|
7d2b75a93b | ||
|
|
c60b76e1de | ||
|
|
2a6e5454d2 | ||
|
|
f136a58054 | ||
|
|
d5d33c7941 | ||
|
|
5703a18f17 | ||
|
|
e303f5fa51 | ||
|
|
3607bbb3a9 | ||
|
|
719e1cfb48 | ||
|
|
e9137c1533 | ||
|
|
9e961e7e86 | ||
|
|
5b9870d1d8 | ||
|
|
e17eda7160 | ||
|
|
879827ca4b | ||
|
|
9984d4d7d9 | ||
|
|
6844242511 | ||
|
|
e521c4c93c | ||
|
|
f520e3db1d | ||
|
|
d58d3d2de6 | ||
|
|
8659272d8c | ||
|
|
490bea0eba | ||
|
|
47bd449fac |
No files matched your search
+3
-9
@@ -41,12 +41,6 @@ $(CALENS): $(BINGO_DIR)/calens.mod
|
||||
@echo "(re)installing $(GOBIN)/calens-v0.2.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.2.0 "github.com/restic/calens"
|
||||
|
||||
FILEB0X := $(GOBIN)/fileb0x-v1.1.4
|
||||
$(FILEB0X): $(BINGO_DIR)/fileb0x.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/fileb0x-v1.1.4"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=fileb0x.mod -o=$(GOBIN)/fileb0x-v1.1.4 "github.com/UnnoTed/fileb0x"
|
||||
|
||||
FLAEX := $(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f
|
||||
$(FLAEX): $(BINGO_DIR)/flaex.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@@ -95,11 +89,11 @@ $(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.27.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.27.1 "google.golang.org/protobuf/cmd/protoc-gen-go"
|
||||
|
||||
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20210924081004-8c39b1e1204d
|
||||
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9
|
||||
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210924081004-8c39b1e1204d"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210924081004-8c39b1e1204d "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
|
||||
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9
|
||||
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.17
|
||||
|
||||
require github.com/UnnoTed/fileb0x v1.1.4
|
||||
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.17
|
||||
|
||||
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20210924081004-8c39b1e1204d
|
||||
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
@@ -16,8 +16,6 @@ BUILDIFIER="${GOBIN}/buildifier-v0.0.0-20210920153738-d6daef01a1a2"
|
||||
|
||||
CALENS="${GOBIN}/calens-v0.2.0"
|
||||
|
||||
FILEB0X="${GOBIN}/fileb0x-v1.1.4"
|
||||
|
||||
FLAEX="${GOBIN}/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
|
||||
|
||||
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.42.1"
|
||||
@@ -34,7 +32,7 @@ PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.5.0"
|
||||
|
||||
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.27.1"
|
||||
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210924081004-8c39b1e1204d"
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20211012122208-f63e46a7d1e9"
|
||||
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
# The test runner source for API tests
|
||||
CORE_COMMITID=28fb541fcd334e17157013e6ab594b4e18c3b156
|
||||
CORE_COMMITID=b72258bf8ef1e483d92d42535abfe76f912d12a2
|
||||
CORE_BRANCH=master
|
||||
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=6dae5d82e4c6b3310301005ad6e38c0493b854fa
|
||||
WEB_COMMITID=6f6855ebdea9ef5eb956ce517f3742e7018bccfa
|
||||
WEB_BRANCH=master
|
||||
+7
-51
@@ -216,7 +216,6 @@ def stopRecentBuilds(ctx):
|
||||
return [{
|
||||
"name": "stop-recent-builds",
|
||||
"image": "drone/cli:alpine",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DRONE_SERVER": "https://drone.owncloud.com",
|
||||
"DRONE_TOKEN": {
|
||||
@@ -240,6 +239,7 @@ def testPipelines(ctx):
|
||||
if "skip" not in config["localApiTests"] or not config["localApiTests"]["skip"]:
|
||||
pipelines = [
|
||||
localApiTests(ctx, "ocis", "apiAccountsHashDifficulty", "default"),
|
||||
localApiTests(ctx, "ocis", "apiSpaces", "default"),
|
||||
]
|
||||
|
||||
if "skip" not in config["apiTests"] or not config["apiTests"]["skip"]:
|
||||
@@ -261,7 +261,6 @@ def testOcisModule(ctx, module):
|
||||
{
|
||||
"name": "golangci-lint",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"mkdir -p cache/checkstyle",
|
||||
"make -C %s ci-golangci-lint" % (module),
|
||||
@@ -272,7 +271,6 @@ def testOcisModule(ctx, module):
|
||||
{
|
||||
"name": "test",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"mkdir -p cache/coverage",
|
||||
"make -C %s test" % (module),
|
||||
@@ -394,7 +392,6 @@ def uploadScanResults(ctx):
|
||||
{
|
||||
"name": "codacy",
|
||||
"image": "plugins/codacy:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"token": {
|
||||
"from_secret": "codacy_token",
|
||||
@@ -404,7 +401,6 @@ def uploadScanResults(ctx):
|
||||
{
|
||||
"name": "sonarcloud",
|
||||
"image": "sonarsource/sonar-scanner-cli:latest",
|
||||
"pull": "always",
|
||||
"environment": sonar_env,
|
||||
},
|
||||
{
|
||||
@@ -449,7 +445,6 @@ def localApiTests(ctx, storage, suite, accounts_hash_difficulty = 4):
|
||||
{
|
||||
"name": "localApiTests-%s-%s" % (suite, storage),
|
||||
"image": "owncloudci/php:7.4",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"TEST_SERVER_URL": "https://ocis-server:9200",
|
||||
"OCIS_REVA_DATA_ROOT": "%s" % ("/srv/app/tmp/ocis/owncloud/data/" if storage == "owncloud" else ""),
|
||||
@@ -501,7 +496,6 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", ac
|
||||
{
|
||||
"name": "oC10ApiTests-%s-storage-%s" % (storage, part_number),
|
||||
"image": "owncloudci/php:7.4",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"TEST_SERVER_URL": "https://ocis-server:9200",
|
||||
"OCIS_REVA_DATA_ROOT": "%s" % ("/srv/app/tmp/ocis/owncloud/data/" if storage == "owncloud" else ""),
|
||||
@@ -615,7 +609,6 @@ def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, s
|
||||
{
|
||||
"name": "webUITests",
|
||||
"image": "owncloudci/nodejs:14",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"SERVER_HOST": "https://ocis-server:9200",
|
||||
"BACKEND_HOST": "https://ocis-server:9200",
|
||||
@@ -637,7 +630,7 @@ def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, s
|
||||
"cd /srv/app/web",
|
||||
"git checkout $WEB_COMMITID",
|
||||
"cp -r tests/acceptance/filesForUpload/* /uploads",
|
||||
"yarn install --all",
|
||||
"yarn install --frozen-lockfile",
|
||||
"yarn build",
|
||||
"./tests/acceptance/run.sh",
|
||||
],
|
||||
@@ -683,7 +676,6 @@ def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
{
|
||||
"name": "WebUIAcceptanceTests",
|
||||
"image": "owncloudci/nodejs:14",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"SERVER_HOST": "https://ocis-server:9200",
|
||||
"BACKEND_HOST": "https://ocis-server:9200",
|
||||
@@ -704,10 +696,10 @@ def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
"cd /srv/app/web",
|
||||
"git checkout $WEB_COMMITID",
|
||||
"cp -r tests/acceptance/filesForUpload/* /uploads",
|
||||
"yarn install --all",
|
||||
"yarn install --frozen-lockfile",
|
||||
"yarn build",
|
||||
"cd /drone/src/accounts",
|
||||
"yarn install --all",
|
||||
"yarn install --frozen-lockfile",
|
||||
"make test-acceptance-webui",
|
||||
],
|
||||
"volumes": [stepVolumeOC10Tests] +
|
||||
@@ -752,7 +744,6 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
{
|
||||
"name": "WebUIAcceptanceTests",
|
||||
"image": "owncloudci/nodejs:14",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"SERVER_HOST": "https://ocis-server:9200",
|
||||
"BACKEND_HOST": "https://ocis-server:9200",
|
||||
@@ -772,9 +763,9 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
"cp -r /srv/app/web/tests/acceptance/filesForUpload/* /uploads",
|
||||
"cd /srv/app/web",
|
||||
"git checkout $WEB_COMMITID",
|
||||
"yarn install --all",
|
||||
"yarn install --frozen-lockfile",
|
||||
"cd /drone/src/settings",
|
||||
"yarn install --all",
|
||||
"yarn install --frozen-lockfile",
|
||||
"make test-acceptance-webui",
|
||||
],
|
||||
"volumes": [stepVolumeOC10Tests] +
|
||||
@@ -788,7 +779,6 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
{
|
||||
"name": "redis",
|
||||
"image": "redis:6-alpine",
|
||||
"pull": "always",
|
||||
},
|
||||
] + selenium(),
|
||||
"volumes": [stepVolumeOC10Tests] +
|
||||
@@ -811,7 +801,6 @@ def stopBuild(earlyFail):
|
||||
return [{
|
||||
"name": "stop-build",
|
||||
"image": "drone/cli:alpine",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DRONE_SERVER": "https://drone.owncloud.com",
|
||||
"DRONE_TOKEN": {
|
||||
@@ -838,8 +827,7 @@ def buildGithubCommentForBuildStopped(alternateSuiteName, earlyFail):
|
||||
if (earlyFail):
|
||||
return [{
|
||||
"name": "build-github-comment-buildStop",
|
||||
"image": "owncloud/ubuntu:16.04",
|
||||
"pull": "always",
|
||||
"image": "owncloud/ubuntu:20.04",
|
||||
"commands": [
|
||||
'echo "<details><summary>:boom: Acceptance tests <strong>%s</strong> failed. The build is cancelled...</summary>\\n\\n" >> /drone/src/comments.file' % alternateSuiteName,
|
||||
],
|
||||
@@ -861,7 +849,6 @@ def githubComment(earlyFail):
|
||||
return [{
|
||||
"name": "github-comment",
|
||||
"image": "jmccann/drone-github-comment:1",
|
||||
"pull": "if-not-exists",
|
||||
"settings": {
|
||||
"message_file": "/drone/src/comments.file",
|
||||
},
|
||||
@@ -916,7 +903,6 @@ def dockerRelease(ctx, arch):
|
||||
{
|
||||
"name": "build",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis release-linux-docker",
|
||||
],
|
||||
@@ -924,7 +910,6 @@ def dockerRelease(ctx, arch):
|
||||
{
|
||||
"name": "dryrun",
|
||||
"image": "plugins/docker:latest",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"dry_run": True,
|
||||
"context": "ocis",
|
||||
@@ -944,7 +929,6 @@ def dockerRelease(ctx, arch):
|
||||
{
|
||||
"name": "docker",
|
||||
"image": "plugins/docker:latest",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
@@ -992,7 +976,6 @@ def dockerEos(ctx):
|
||||
{
|
||||
"name": "build",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis release-linux-docker",
|
||||
],
|
||||
@@ -1000,7 +983,6 @@ def dockerEos(ctx):
|
||||
{
|
||||
"name": "dryrun-eos-ocis",
|
||||
"image": "plugins/docker:latest",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"dry_run": True,
|
||||
"context": "ocis",
|
||||
@@ -1019,7 +1001,6 @@ def dockerEos(ctx):
|
||||
{
|
||||
"name": "docker-eos-ocis",
|
||||
"image": "plugins/docker:latest",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
@@ -1097,7 +1078,6 @@ def binaryRelease(ctx, name):
|
||||
{
|
||||
"name": "build",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis release-%s" % (name),
|
||||
],
|
||||
@@ -1105,7 +1085,6 @@ def binaryRelease(ctx, name):
|
||||
{
|
||||
"name": "finish",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis release-finish",
|
||||
],
|
||||
@@ -1119,7 +1098,6 @@ def binaryRelease(ctx, name):
|
||||
{
|
||||
"name": "upload",
|
||||
"image": "plugins/s3:latest",
|
||||
"pull": "always",
|
||||
"settings": settings,
|
||||
"when": {
|
||||
"ref": [
|
||||
@@ -1131,7 +1109,6 @@ def binaryRelease(ctx, name):
|
||||
{
|
||||
"name": "changelog",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make changelog CHANGELOG_VERSION=%s" % ctx.build.ref.replace("refs/tags/v", "").split("-")[0],
|
||||
],
|
||||
@@ -1144,7 +1121,6 @@ def binaryRelease(ctx, name):
|
||||
{
|
||||
"name": "release",
|
||||
"image": "plugins/github-release:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"api_key": {
|
||||
"from_secret": "github_token",
|
||||
@@ -1192,7 +1168,6 @@ def releaseSubmodule(ctx):
|
||||
{
|
||||
"name": "release-submodule",
|
||||
"image": "plugins/github-release:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"api_key": {
|
||||
"from_secret": "github_token",
|
||||
@@ -1232,7 +1207,6 @@ def releaseDockerManifest(ctx):
|
||||
{
|
||||
"name": "execute",
|
||||
"image": "plugins/manifest:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
@@ -1267,7 +1241,6 @@ def changelog(ctx):
|
||||
{
|
||||
"name": "generate",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis changelog",
|
||||
],
|
||||
@@ -1275,7 +1248,6 @@ def changelog(ctx):
|
||||
{
|
||||
"name": "diff",
|
||||
"image": "owncloudci/alpine:latest",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"git diff",
|
||||
],
|
||||
@@ -1283,7 +1255,6 @@ def changelog(ctx):
|
||||
{
|
||||
"name": "output",
|
||||
"image": "owncloudci/alpine:latest",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"cat CHANGELOG.md",
|
||||
],
|
||||
@@ -1291,7 +1262,6 @@ def changelog(ctx):
|
||||
{
|
||||
"name": "publish",
|
||||
"image": "plugins/git-action:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"actions": [
|
||||
"commit",
|
||||
@@ -1339,7 +1309,6 @@ def releaseDockerReadme(ctx):
|
||||
{
|
||||
"name": "execute",
|
||||
"image": "chko/docker-pushrm:1",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DOCKER_USER": {
|
||||
"from_secret": "docker_username",
|
||||
@@ -1393,7 +1362,6 @@ def docs(ctx):
|
||||
{
|
||||
"name": "publish",
|
||||
"image": "plugins/gh-pages:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"username": {
|
||||
"from_secret": "github_username",
|
||||
@@ -1458,7 +1426,6 @@ def makeGenerate(module):
|
||||
{
|
||||
"name": "generate nodejs",
|
||||
"image": "owncloudci/nodejs:14",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"%s ci-node-generate" % (make),
|
||||
],
|
||||
@@ -1467,7 +1434,6 @@ def makeGenerate(module):
|
||||
{
|
||||
"name": "generate go",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"%s ci-go-generate" % (make),
|
||||
],
|
||||
@@ -1487,7 +1453,6 @@ def notify(ctx):
|
||||
{
|
||||
"name": "notify-rocketchat",
|
||||
"image": "plugins/slack:1",
|
||||
"pull": "always",
|
||||
"settings": {
|
||||
"webhook": {
|
||||
"from_secret": config["rocketchat"]["from_secret"],
|
||||
@@ -1537,7 +1502,6 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = []):
|
||||
{
|
||||
"name": "ocis-server",
|
||||
"image": "owncloudci/alpine:latest",
|
||||
"pull": "always",
|
||||
"detach": True,
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
@@ -1549,7 +1513,6 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = []):
|
||||
{
|
||||
"name": "wait-for-ocis-server",
|
||||
"image": "owncloudci/wait-for:latest",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"wait-for -it ocis-server:9200 -t 300",
|
||||
],
|
||||
@@ -1561,7 +1524,6 @@ def cloneCoreRepos():
|
||||
{
|
||||
"name": "clone-core-repos",
|
||||
"image": "owncloudci/alpine:latest",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"source /drone/src/.drone.env",
|
||||
"git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/tmp/testing",
|
||||
@@ -1578,7 +1540,6 @@ def redis():
|
||||
{
|
||||
"name": "redis",
|
||||
"image": "redis:6-alpine",
|
||||
"pull": "always",
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1593,7 +1554,6 @@ def selenium():
|
||||
{
|
||||
"name": "selenium",
|
||||
"image": "selenium/standalone-chrome-debug:3.141.59",
|
||||
"pull": "always",
|
||||
"volumes": [{
|
||||
"name": "uploads",
|
||||
"path": "/uploads",
|
||||
@@ -1606,7 +1566,6 @@ def build():
|
||||
{
|
||||
"name": "build",
|
||||
"image": "owncloudci/golang:1.17",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"make -C ocis build",
|
||||
],
|
||||
@@ -1709,7 +1668,6 @@ def checkStarlark():
|
||||
{
|
||||
"name": "format-check-starlark",
|
||||
"image": "owncloudci/bazel-buildifier",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"buildifier --mode=check .drone.star",
|
||||
],
|
||||
@@ -1717,7 +1675,6 @@ def checkStarlark():
|
||||
{
|
||||
"name": "show-diff",
|
||||
"image": "owncloudci/bazel-buildifier",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"buildifier --mode=fix .drone.star",
|
||||
"git diff",
|
||||
@@ -1750,7 +1707,6 @@ def genericCache(name, action, mounts, cache_key):
|
||||
step = {
|
||||
"name": "%s_%s" % (action, name),
|
||||
"image": "meltwater/drone-cache:v1",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"AWS_ACCESS_KEY_ID": {
|
||||
"from_secret": "cache_s3_access_key",
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ config-docs-generate: $(FLAEX)
|
||||
@$(FLAEX) >| ../docs/extensions/$(NAME)/configuration.md
|
||||
|
||||
.PHONY: grpc-docs-generate
|
||||
grpc-docs-generate: ../docs/extensions/${NAME}/grpc.md
|
||||
grpc-docs-generate: buf-generate
|
||||
@@ -1,6 +1,2 @@
|
||||
.PHONY: generate
|
||||
generate: ci-node-generate ci-go-generate
|
||||
|
||||
.PHONY: embed.yml
|
||||
embed.yml: $(FILEB0X)
|
||||
@cd pkg/assets/ && echo -n "$(NAME): embed.go - " && $(FILEB0X) embed.yml
|
||||
+3
-7
@@ -11,11 +11,7 @@ else
|
||||
UNAME := $(shell uname -s)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
GOBUILD ?= go build -i
|
||||
else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
GOBUILD ?= go build
|
||||
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||
|
||||
@@ -70,11 +66,11 @@ fmt:
|
||||
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E revive -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
|
||||
|
||||
.PHONY: ci-golangci-lint
|
||||
ci-golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E revive -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
|
||||
+18
-60
@@ -1,63 +1,21 @@
|
||||
.PHONY: protoc-gen-openapiv2
|
||||
protoc-gen-openapiv2:
|
||||
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
|
||||
|
||||
.PHONY: protoc-deps
|
||||
protoc-deps: $(BINGO)
|
||||
@# #TODO: bingo creates symlinks from the -l option in the current directory
|
||||
@# if no GOPATH and GOBIN is set, but they should reside inside .bingo
|
||||
@# for now we move them manually
|
||||
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
@cd .. && mv protoc-gen-go .bingo/
|
||||
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/asim/go-micro/cmd/protoc-gen-micro/v3
|
||||
@cd .. && mv protoc-gen-micro .bingo/
|
||||
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/owncloud/protoc-gen-microweb
|
||||
@cd .. && mv protoc-gen-microweb .bingo/
|
||||
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
|
||||
@cd .. && mv protoc-gen-openapiv2 .bingo/
|
||||
@cd .. && GOPATH="" GOBIN="" $(BINGO) get -l github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
|
||||
@cd .. && mv protoc-gen-doc .bingo/
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.go
|
||||
$(PROTO_SRC)/${NAME}.pb.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_GO)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-go=$(PROTOC_GEN_GO) \
|
||||
--go_out=$(PROTO_SRC) \
|
||||
--go_opt=paths=source_relative \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
.PHONY: buf-generate
|
||||
buf-generate: $(BUF) protoc-deps
|
||||
$(BUF) generate
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.micro.go
|
||||
$(PROTO_SRC)/${NAME}.pb.micro.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICRO)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.micro.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-micro=$(PROTOC_GEN_MICRO) \
|
||||
--micro_out=logtostderr=true:$(PROTO_SRC) \
|
||||
--micro_opt=paths=source_relative \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.web.go
|
||||
$(PROTO_SRC)/${NAME}.pb.web.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICROWEB)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.web.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-microweb=$(PROTOC_GEN_MICROWEB) \
|
||||
--microweb_out=logtostderr=true:$(PROTO_SRC) \
|
||||
--microweb_opt=paths=source_relative \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.swagger.json
|
||||
$(PROTO_SRC)/${NAME}.swagger.json: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_OPENAPIV2)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.swagger.json"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-openapiv2=$(PROTOC_GEN_OPENAPIV2) \
|
||||
--openapiv2_out=logtostderr=true:$(PROTO_SRC)/ \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: ../docs/extensions/${NAME}/grpc.md
|
||||
../docs/extensions/${NAME}/grpc.md: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_DOC)
|
||||
@echo "$(NAME): generating ../docs/extensions/${NAME}/grpc.md"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-doc=$(PROTOC_GEN_DOC) \
|
||||
--doc_opt=./templates/GRPC.tmpl,grpc.md \
|
||||
--doc_out=../docs/extensions/${NAME} \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
+3
-1
@@ -13,8 +13,10 @@ release-dirs:
|
||||
release-linux: $(GOX) release-dirs
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
# docker specific packaging flags
|
||||
DOCKER_LDFLAGS += -X "$(OCIS_REPO)/ocis-pkg/config/defaults.BaseDataPathType=path" -X "$(OCIS_REPO)/ocis-pkg/config/defaults.BaseDataPathValue=/var/lib/ocis"
|
||||
release-linux-docker: $(GOX) release-dirs
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS) $(DOCKER_LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-windows
|
||||
release-windows: $(GOX) release-dirs
|
||||
|
||||
+214
-2
@@ -1,8 +1,220 @@
|
||||
# Changelog for [1.14.0] (2021-10-13)
|
||||
# Changelog for [1.14.0] (2021-10-27)
|
||||
|
||||
The following sections list the changes for 1.14.0.
|
||||
|
||||
[1.14.0]: https://github.com/owncloud/ocis/compare/v1.12.0...v1.14.0
|
||||
[1.14.0]: https://github.com/owncloud/ocis/compare/v1.13.0...v1.14.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Security - Don't expose services by default: [#2612](https://github.com/owncloud/ocis/issues/2612)
|
||||
* Bugfix - Create parent directories for idp configuration: [#2667](https://github.com/owncloud/ocis/issues/2667)
|
||||
* Change - Configurable default quota: [#2621](https://github.com/owncloud/ocis/issues/2621)
|
||||
* Change - New default data paths and easier configuration of the data path: [#2590](https://github.com/owncloud/ocis/pull/2590)
|
||||
* Change - Split spaces webdav url and graph url in base and path: [#2660](https://github.com/owncloud/ocis/pull/2660)
|
||||
* Change - Update ownCloud Web to v4.4.0: [#2681](https://github.com/owncloud/ocis/pull/2681)
|
||||
* Enhancement - Add user setting capability: [#2655](https://github.com/owncloud/ocis/pull/2655)
|
||||
* Enhancement - Broaden bufbuild/Buf usage: [#2630](https://github.com/owncloud/ocis/pull/2630)
|
||||
* Enhancement - Replace fileb0x with go-embed: [#1199](https://github.com/owncloud/ocis/issues/1199)
|
||||
* Enhancement - Upgrade to go-micro v4.1.0: [#2616](https://github.com/owncloud/ocis/pull/2616)
|
||||
* Enhancement - Review and correct http header: [#2666](https://github.com/owncloud/ocis/pull/2666)
|
||||
* Enhancement - Lower TUS max chunk size: [#2584](https://github.com/owncloud/ocis/pull/2584)
|
||||
* Enhancement - Add sharees additional info paramater config to ocs: [#2637](https://github.com/owncloud/ocis/pull/2637)
|
||||
* Enhancement - Add a middleware to authenticate public share requests: [#2536](https://github.com/owncloud/ocis/pull/2536)
|
||||
* Enhancement - Report quota states: [#2628](https://github.com/owncloud/ocis/pull/2628)
|
||||
* Enhancement - Start up a new machine auth provider in the storage service: [#2528](https://github.com/owncloud/ocis/pull/2528)
|
||||
* Enhancement - Enforce permission on update space quota: [#2650](https://github.com/owncloud/ocis/pull/2650)
|
||||
* Enhancement - Update lico to v0.51.1: [#2654](https://github.com/owncloud/ocis/pull/2654)
|
||||
* Enhancement - Update reva to v1.15: [#2658](https://github.com/owncloud/ocis/pull/2658)
|
||||
|
||||
## Details
|
||||
|
||||
* Security - Don't expose services by default: [#2612](https://github.com/owncloud/ocis/issues/2612)
|
||||
|
||||
We've changed the bind behaviour for all non public facing services. Before this PR all
|
||||
services would listen on all interfaces. After this PR, all services listen on 127.0.0.1 only,
|
||||
except the proxy which is listening on 0.0.0.0:9200.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2612
|
||||
|
||||
* Bugfix - Create parent directories for idp configuration: [#2667](https://github.com/owncloud/ocis/issues/2667)
|
||||
|
||||
The parent directories of the identifier-registration.yaml config file might not exist when
|
||||
starting idp. Create them, when that is the case.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2667
|
||||
|
||||
* Change - Configurable default quota: [#2621](https://github.com/owncloud/ocis/issues/2621)
|
||||
|
||||
When creating a new space a (configurable) default quota will be used (instead the hardcoded
|
||||
one). One can set the EnvVar `GRAPH_SPACES_DEFAULT_QUOTA` to configure it
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2621
|
||||
https://jira.owncloud.com/browse/OCIS-2070
|
||||
|
||||
* Change - New default data paths and easier configuration of the data path: [#2590](https://github.com/owncloud/ocis/pull/2590)
|
||||
|
||||
We've changed the default data path for our release artifacts: - oCIS docker images will now
|
||||
store all data in `/var/lib/ocis` instead in `/var/tmp/ocis` - binary releases will now store
|
||||
all data in `~/.ocis` instead of `/var/tmp/ocis`
|
||||
|
||||
Also if you're a developer and you run oCIS from source, it will store all data in `~/.ocis` from
|
||||
now on.
|
||||
|
||||
You can now easily change the data path for all extensions by setting the environment variable
|
||||
`OCIS_BASE_DATA_PATH`.
|
||||
|
||||
If you want to package oCIS, you also can set the default data path at compile time, eg. by passing
|
||||
`-X "github.com/owncloud/ocis/ocis-pkg/config/defaults.BaseDataPathType=path" -X
|
||||
"github.com/owncloud/ocis/ocis-pkg/config/defaults.BaseDataPathValue=/var/lib/ocis"`
|
||||
to your go build step.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2590
|
||||
|
||||
* Change - Split spaces webdav url and graph url in base and path: [#2660](https://github.com/owncloud/ocis/pull/2660)
|
||||
|
||||
We've fixed the behavior for the spaces webdav url and graph explorer graph url settings, so
|
||||
that they respect the environment variable `OCIS_URL`. Previously oCIS admins needed to set
|
||||
these URLs manually to make spaces and the graph explorer work.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2659
|
||||
https://github.com/owncloud/ocis/pull/2660
|
||||
|
||||
* Change - Update ownCloud Web to v4.4.0: [#2681](https://github.com/owncloud/ocis/pull/2681)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.4.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2681
|
||||
https://github.com/owncloud/web/releases/tag/v4.4.0
|
||||
|
||||
* Enhancement - Add user setting capability: [#2655](https://github.com/owncloud/ocis/pull/2655)
|
||||
|
||||
We've added a capability to communicate the existance of a user settings service to clients.
|
||||
|
||||
https://github.com/owncloud/web/issues/5926
|
||||
https://github.com/owncloud/ocis/pull/2655
|
||||
|
||||
* Enhancement - Broaden bufbuild/Buf usage: [#2630](https://github.com/owncloud/ocis/pull/2630)
|
||||
|
||||
We've switched the usage of bufbuild/Buf from a protoc replacement only to also using it to
|
||||
confige the outputs and pinning dependencies.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2630
|
||||
https://github.com/owncloud/ocis/pull/2616
|
||||
|
||||
* Enhancement - Replace fileb0x with go-embed: [#1199](https://github.com/owncloud/ocis/issues/1199)
|
||||
|
||||
Go-embed already brings the functionality we need but with less code. We decided to use it
|
||||
instead of 3rd party fileb0x
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1199
|
||||
https://github.com/owncloud/ocis/pull/2631
|
||||
https://github.com/owncloud/ocis/pull/2649
|
||||
|
||||
* Enhancement - Upgrade to go-micro v4.1.0: [#2616](https://github.com/owncloud/ocis/pull/2616)
|
||||
|
||||
We've upgraded to go-micro v4.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2616
|
||||
|
||||
* Enhancement - Review and correct http header: [#2666](https://github.com/owncloud/ocis/pull/2666)
|
||||
|
||||
Reviewed and corrected the necessary http headers. Made CORS configurable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2666
|
||||
|
||||
* Enhancement - Lower TUS max chunk size: [#2584](https://github.com/owncloud/ocis/pull/2584)
|
||||
|
||||
We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2584
|
||||
https://github.com/cs3org/reva/pull/2136
|
||||
|
||||
* Enhancement - Add sharees additional info paramater config to ocs: [#2637](https://github.com/owncloud/ocis/pull/2637)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2637
|
||||
|
||||
* Enhancement - Add a middleware to authenticate public share requests: [#2536](https://github.com/owncloud/ocis/pull/2536)
|
||||
|
||||
Added a new middleware to authenticate public share requests. This makes it possible to use
|
||||
APIs which require an authenticated context with public shares.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2479
|
||||
https://github.com/owncloud/ocis/pull/2536
|
||||
https://github.com/owncloud/ocis/pull/2652
|
||||
|
||||
* Enhancement - Report quota states: [#2628](https://github.com/owncloud/ocis/pull/2628)
|
||||
|
||||
When listing the available spaces via the GraphAPI we now return quota states to make it easier
|
||||
for the clients to add visual indicators.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2628
|
||||
|
||||
* Enhancement - Start up a new machine auth provider in the storage service: [#2528](https://github.com/owncloud/ocis/pull/2528)
|
||||
|
||||
This PR also adds the config to skip encoding user groups in reva tokens
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2528
|
||||
https://github.com/owncloud/ocis/pull/2529
|
||||
|
||||
* Enhancement - Enforce permission on update space quota: [#2650](https://github.com/owncloud/ocis/pull/2650)
|
||||
|
||||
Added a check that only users with the `set-space-quota` permission can update the space
|
||||
quota.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2650
|
||||
|
||||
* Enhancement - Update lico to v0.51.1: [#2654](https://github.com/owncloud/ocis/pull/2654)
|
||||
|
||||
Updated lico to v0.51.1 This update includes: * Apply LibreGraph naming treewide * move to
|
||||
go1.17 * Update 3rd party Go dependencies
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2654
|
||||
|
||||
* Enhancement - Update reva to v1.15: [#2658](https://github.com/owncloud/ocis/pull/2658)
|
||||
|
||||
Updated reva to v1.15 This update includes: * Fix
|
||||
[cs3org/reva#2168](https://github.com/cs3org/reva/pull/2168): Override provider if
|
||||
was previously registered * Fix
|
||||
[cs3org/reva#2173](https://github.com/cs3org/reva/pull/2173): Fix archiver max size
|
||||
reached error * Fix [cs3org/reva#2167](https://github.com/cs3org/reva/pull/2167):
|
||||
Handle nil quota in decomposedfs * Fix
|
||||
[cs3org/reva#2153](https://github.com/cs3org/reva/pull/2153): Restrict EOS project
|
||||
spaces sharing permissions to admins and writers * Fix
|
||||
[cs3org/reva#2179](https://github.com/cs3org/reva/pull/2179): Fix the returned
|
||||
permissions for webdav uploads * Chg
|
||||
[cs3org/reva#2479](https://github.com/cs3org/reva/pull/2479): Make apps able to work
|
||||
with public shares * Enh
|
||||
[cs3org/reva#2174](https://github.com/cs3org/reva/pull/2174): Inherit ACLs for files
|
||||
from parent directories * Enh
|
||||
[cs3org/reva#2152](https://github.com/cs3org/reva/pull/2152): Add a reference
|
||||
parameter to the getQuota request * Enh
|
||||
[cs3org/reva#2171](https://github.com/cs3org/reva/pull/2171): Add optional claim
|
||||
parameter to machine auth * Enh
|
||||
[cs3org/reva#2135](https://github.com/cs3org/reva/pull/2135): Nextcloud test
|
||||
improvements * Enh [cs3org/reva#2180](https://github.com/cs3org/reva/pull/2180):
|
||||
Remove OCDAV options namespace parameter * Enh
|
||||
[cs3org/reva#2170](https://github.com/cs3org/reva/pull/2170): Handle propfind
|
||||
requests for existing files * Enh
|
||||
[cs3org/reva#2165](https://github.com/cs3org/reva/pull/2165): Allow access to
|
||||
recycle bin for arbitrary paths outside homes * Enh
|
||||
[cs3org/reva#2189](https://github.com/cs3org/reva/pull/2189): Add user settings
|
||||
capability * Enh [cs3org/reva#2162](https://github.com/cs3org/reva/pull/2162):
|
||||
Implement the UpdateStorageSpace method * Enh
|
||||
[cs3org/reva#2117](https://github.com/cs3org/reva/pull/2117): Add ocs cache warmup
|
||||
strategy for first request from the user
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2658
|
||||
https://github.com/owncloud/ocis/pull/2536
|
||||
https://github.com/owncloud/ocis/pull/2650
|
||||
https://github.com/owncloud/ocis/pull/2680
|
||||
# Changelog for [1.13.0] (2021-10-13)
|
||||
|
||||
The following sections list the changes for 1.13.0.
|
||||
|
||||
[1.13.0]: https://github.com/owncloud/ocis/compare/v1.12.0...v1.13.0
|
||||
|
||||
## Summary
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ protobuf:
|
||||
|
||||
.PHONY: bingo-update
|
||||
bingo-update: $(BINGO)
|
||||
$(BINGO) get -u
|
||||
$(BINGO) get -l -u
|
||||
|
||||
CHANGELOG_VERSION =
|
||||
|
||||
|
||||
+1
-6
@@ -32,7 +32,6 @@ include ../.make/generate.mk
|
||||
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
|
||||
@go generate ./...
|
||||
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate: yarn-build
|
||||
@@ -54,8 +53,4 @@ PROTO_SRC := pkg/proto/$(PROTO_VERSION)
|
||||
include ../.make/protobuf.mk
|
||||
|
||||
.PHONY: protobuf
|
||||
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.micro.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.web.go \
|
||||
$(PROTO_SRC)/${NAME}.swagger.json \
|
||||
../docs/extensions/${NAME}/grpc.md
|
||||
protobuf: buf-generate
|
||||
@@ -0,0 +1,8 @@
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed assets/*
|
||||
var Assets embed.FS
|
||||
@@ -0,0 +1,29 @@
|
||||
version: v1
|
||||
plugins:
|
||||
- name: go
|
||||
path: ../.bingo/protoc-gen-go
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: micro
|
||||
path: ../.bingo/protoc-gen-micro
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: microweb
|
||||
path: ../.bingo/protoc-gen-microweb
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: openapiv2
|
||||
path: ../.bingo/protoc-gen-openapiv2
|
||||
out: pkg/
|
||||
|
||||
- name: doc
|
||||
path: ../.bingo/protoc-gen-doc
|
||||
out: ../docs/extensions/accounts
|
||||
opt:
|
||||
- ./templates/GRPC.tmpl,grpc.md
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by buf. DO NOT EDIT.
|
||||
version: v1
|
||||
deps:
|
||||
- remote: buf.build
|
||||
owner: googleapis
|
||||
repository: googleapis
|
||||
branch: main
|
||||
commit: ca45b9d9c51849e898845743a28b0eb0
|
||||
digest: b1--B2JdvzLV2KI5pYMG9AHJHFGznqXfZKjKwcqBuXhGgw=
|
||||
create_time: 2021-10-14T15:09:30.598677Z
|
||||
- remote: buf.build
|
||||
owner: grpc-ecosystem
|
||||
repository: grpc-gateway
|
||||
branch: main
|
||||
commit: 462ede5f3dee45569df6317bda220b1b
|
||||
digest: b1-4FNKWjnS2yafyeOdqW8u-s7w1pJBHjz0Z6CbOL-Ipk0=
|
||||
create_time: 2021-10-14T01:55:03.476639Z
|
||||
@@ -0,0 +1,10 @@
|
||||
version: v1
|
||||
lint:
|
||||
use:
|
||||
- DEFAULT
|
||||
deps:
|
||||
- buf.build/googleapis/googleapis
|
||||
- buf.build/grpc-ecosystem/grpc-gateway
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
+20
-20
@@ -1,23 +1,34 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "ocis-accounts",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"homepage": "https://github.com/owncloud/ocis-accounts#readme",
|
||||
"license": "Apache-2.0",
|
||||
"author": "ownCloud GmbH <devops@owncloud.com>",
|
||||
"repository": "https://github.com/owncloud/ocis-accounts.git",
|
||||
"bugs": {
|
||||
"url": "https://github.com/owncloud/ocis/issues",
|
||||
"email": "support@owncloud.com"
|
||||
},
|
||||
"repository": "https://github.com/owncloud/ocis-accounts.git",
|
||||
"license": "Apache-2.0",
|
||||
"author": "ownCloud GmbH <devops@owncloud.com>",
|
||||
"scripts": {
|
||||
"lint": "eslint ui/**/*.vue ui/**/*.js --color --global requirejs --global require",
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format @cucumber/pretty-formatter -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\"",
|
||||
"build": "rollup -c",
|
||||
"watch": "rollup -c -w",
|
||||
"test": "echo 'Not implemented'",
|
||||
"generate-api": "node node_modules/swagger-vue-generator/bin/generate-api.js --package-version v0 --source pkg/proto/v0/accounts.swagger.json --moduleName accounts --destination ui/client/accounts/index.js",
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format @cucumber/pretty-formatter -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
"lint": "eslint ui/**/*.vue ui/**/*.js --color --global requirejs --global require",
|
||||
"test": "echo 'Not implemented'",
|
||||
"watch": "rollup -c -w"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"not dead"
|
||||
],
|
||||
"dependencies": {
|
||||
"axios": "^0.21.4",
|
||||
"core-js": "^3.17.3",
|
||||
"debounce": "^1.2.1",
|
||||
"validator": "^13.1.1",
|
||||
"vuex": "^3.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
@@ -36,10 +47,7 @@
|
||||
"@rollup/plugin-json": "^4.0.1",
|
||||
"@rollup/plugin-replace": "^2.3.0",
|
||||
"archiver": "^5.3.0",
|
||||
"axios": "^0.21.4",
|
||||
"core-js": "^3.17.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"debounce": "^1.2.1",
|
||||
"easygettext": "^2.17.0",
|
||||
"eslint": "7.24.0",
|
||||
"eslint-config-standard": "^16.0.2",
|
||||
@@ -68,17 +76,9 @@
|
||||
"swagger-vue-generator": "^1.0.6",
|
||||
"url-search-params-polyfill": "^8.1.0",
|
||||
"vue-template-compiler": "^2.6.11",
|
||||
"vuex": "^3.5.1",
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"not dead"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"owncloud-design-system": "^10.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"validator": "^13.1.1"
|
||||
"owncloud-design-system": "^11.0.0"
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
|
||||
// Fake the import to make the dep tree happy.
|
||||
_ "golang.org/x/net/context"
|
||||
|
||||
// Fake the import to make the dep tree happy.
|
||||
_ "golang.org/x/net/webdav"
|
||||
)
|
||||
|
||||
//go:generate make -C ../.. embed.yml
|
||||
|
||||
// assets gets initialized by New and provides the handler.
|
||||
type assets struct {
|
||||
logger log.Logger
|
||||
config *config.Config
|
||||
}
|
||||
|
||||
// Open just implements the HTTP filesystem interface.
|
||||
func (a assets) Open(original string) (http.File, error) {
|
||||
if a.config.Asset.Path != "" {
|
||||
if stat, err := os.Stat(a.config.Asset.Path); err == nil && stat.IsDir() {
|
||||
custom := path.Join(
|
||||
a.config.Asset.Path,
|
||||
original,
|
||||
)
|
||||
|
||||
if _, err := os.Stat(custom); !os.IsNotExist(err) {
|
||||
f, err := os.Open(custom)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return f, nil
|
||||
}
|
||||
} else {
|
||||
a.logger.Warn().
|
||||
Str("path", a.config.Asset.Path).
|
||||
Msg("Assets directory doesn't exist")
|
||||
}
|
||||
}
|
||||
|
||||
return FS.OpenFile(
|
||||
CTX,
|
||||
original,
|
||||
os.O_RDONLY,
|
||||
0644,
|
||||
)
|
||||
}
|
||||
|
||||
// New returns a new http filesystem to serve assets.
|
||||
func New(opts ...Option) http.FileSystem {
|
||||
options := newOptions(opts...)
|
||||
|
||||
return assets{
|
||||
config: options.Config,
|
||||
}
|
||||
}
|
||||
@@ -1,173 +0,0 @@
|
||||
// Code generated by fileb0x at "2021-10-07 17:11:28.050221 +0200 CEST m=+0.008210226" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(ba7eba3c9542ba714f68a0977834a154.8058aec596c5fb73022d09bb97af796e)
|
||||
|
||||
package assets
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"golang.org/x/net/webdav"
|
||||
)
|
||||
|
||||
var (
|
||||
// CTX is a context for webdav vfs
|
||||
CTX = context.Background()
|
||||
|
||||
// FS is a virtual memory file system
|
||||
FS = webdav.NewMemFS()
|
||||
|
||||
// Handler is used to server files through a http handler
|
||||
Handler *webdav.Handler
|
||||
|
||||
// HTTP is the http file system
|
||||
HTTP http.FileSystem = new(HTTPFS)
|
||||
)
|
||||
|
||||
// HTTPFS implements http.FileSystem
|
||||
type HTTPFS struct {
|
||||
// Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
|
||||
Prefix string
|
||||
}
|
||||
|
||||
// FileAccountsJs is "accounts.js"
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\xdb\xb8\xd2\x28\xfa\xfb\x9e\xa7\x90\x70\x62\x36\xd0\x82\x69\xc9\x49\x67\x77\x53\x41\x74\x32\x38\x43\x77\xa6\x8e\x93\xde\x83\xac\xf6\x86\x25\x48\x62\x2c\x81\x6a\x10\xf2\x10\x89\x0f\x74\x5f\xe3\x3e\xd9\x5d\x18\x09\x52\x94\x93\xfd\x9d\xef\xdc\xb5\xee\x5a\x89\x45\x00\x85\x42\x61\x2a\x14\x0a\x85\xc2\x84\x4d\x53\xce\x20\x9c\xae\xf9\x58\xa6\x19\x87\x68\x03\xd6\x39\x6b\xe5\x52\xa4\x63\x09\xfa\x57\x54\xb4\x18\x01\x6b\x6e\x00\x27\xa0\x4d\xe4\xed\x8a\x65\xd3\xd6\x6c\x91\x5d\xd0\xc5\xa7\x79\x9a\x0f\xca\xcf\xa4\x09\xf2\x3a\xe5\x93\xec\x7a\x60\x7e\x1a\x21\x0c\x02\x8b\xa7\x11\x22\x67\x8b\xe9\x40\xfd\x49\x36\x45\xdf\x11\xdb\x92\x90\xa1\x8d\x60\x72\x2d\x78\x8b\x45\x11\x8b\xcf\xcf\x59\xfe\x36\x9b\xac\x17\x2c\x8a\xde\x5f\x7c\x61\x63\x19\xaf\x44\x26\x33\x85\x25\x9e\xd3\xfc\xfd\x35\xff\x20\xb2\x15\x13\xf2\x36\x1e\xd3\xc5\x02\x32\x0c\x26\x6c\x4a\xd7\x0b\x09\xd0\x80\xc5\xf6\x3b\x61\x85\x2f\x83\xab\x32\xd2\x29\x0c\x91\x23\x57\xa6\x6e\x1f\x49\x6c\x51\x86\x6a\x57\x00\xdc\x14\x18\x94\x79\x00\xde\x5c\xd1\xc5\x9a\x25\xed\x6e\x81\xfa\x16\x81\xcd\x78\xc9\x6e\x73\xc8\x50\x3c\xcd\xc4\x09\x1d\xcf\x83\xee\xe0\x68\xa3\x8a\x10\xae\x88\x19\x93\x41\x1d\x9e\xb3\x7c\x2c\xd2\x95\xcc\x04\x64\x98\xa3\x7e\x33\x1d\x12\x73\x2c\x54\xce\x81\x48\x36\x8c\xaf\x97\x4c\xd0\x8b\x85\x22\x04\xcf\x98\x4c\x82\xae\x77\xd5\x1a\xf2\x51\x51\xa0\x02\x21\x2c\xcb\x86\x10\xaa\x21\x4c\x7d\x37\xec\x66\x95\x09\x99\x27\x9b\xa2\x70\x55\x61\x50\x62\x19\xdb\x04\x54\x7e\x16\x22\xa8\x8e\xc7\xb0\x13\x83\x39\xa9\x77\x18\x16\x84\xd7\x3a\x0d\x67\x04\xb8\xac\x80\xb8\xc1\x71\x7a\xbb\xbc\xc8\x16\x03\xf3\x93\x6c\x0a\x4c\x49\x16\xa7\x92\x09\x2a\x33\xb1\xdd\x82\xff\xf5\xbf\x5c\x00\xe0\x94\x64\x31\xcd\x6f\xf9\xf8\x75\x98\x5e\x89\x01\x38\x27\x59\x2c\xb3\x53\x29\x52\x3e\xfb\x44\x67\x1a\x24\x08\x83\x72\x04\x8e\x21\xc3\x12\x73\xdf\x74\xcd\x3d\xa0\x60\x6c\xef\x73\x5c\xed\x81\x71\xc6\xa7\xe9\x6c\xed\xc3\xd7\x22\x95\xf6\xbb\x40\x98\x0d\xe5\xa8\x90\xe2\x76\x33\xd6\xa3\x09\xa0\x62\x4c\xe5\x78\xae\x5a\x6d\x1c\xb4\x61\x85\x04\x95\x87\xf0\xa2\xec\xb8\xb5\x01\xc0\xc2\x34\x75\x46\x64\x14\x05\xcd\xdc\x4a\x79\x2e\x29\x1f\xab\x96\xbc\x1d\xc8\xe4\x16\x53\xd7\x15\x63\xc1\xa8\x64\x30\x2b\x81\x11\x4e\x09\x67\xd7\xad\x67\x50\x6c\xb7\xc3\x91\x1f\xc8\x34\x3e\x4f\xf9\x55\x76\xc9\x76\xa8\x32\xc3\x77\xea\x00\x7d\x72\x86\xa9\x9e\x57\x82\x10\x32\x41\x72\x2e\xb2\xeb\x96\xc2\x7c\x22\x44\x26\x20\x78\xc9\xb8\xe9\x8d\x56\x9a\xb7\xe8\x42\x30\x3a\xb9\x6d\x89\x35\xe7\x29\x9f\x01\xd4\xb7\x19\xe7\x1a\x05\xd0\xb9\x01\x21\x24\xb3\x88\xa8\x2b\xee\x1c\xa2\x62\x9a\x09\xc8\xe3\x25\x93\xf3\x6c\x42\x32\xcc\x63\x2a\x66\x84\xf6\xfb\x86\xb6\x94\xf0\x78\xc2\x16\x6c\x46\x25\x53\x68\x53\x13\x9d\x93\x4b\x98\xaa\x39\x95\x4e\x61\xae\x4b\xc9\x09\x21\x4b\x34\xce\xb8\x4c\xf9\x9a\xb9\x02\xf2\xa2\x50\x14\x70\x76\x23\x15\x01\xae\x1c\xc4\xe3\x9c\x71\x49\x78\x7c\x6e\x7f\xa9\x98\xf5\xd9\x22\x67\xad\x0a\xc1\x1e\xde\x35\xc5\xd4\xd6\x40\x90\xb9\xa1\xb4\xcf\xe3\x49\x9a\xaf\x54\xb7\x9f\xdc\x8c\xd9\xca\xb0\x05\x95\x82\x0a\x85\x0f\x18\x42\x42\x64\x51\xc4\x63\x7a\x21\xd6\x2b\x09\x5d\xaa\xc1\x85\xfa\x82\x4c\x34\xcf\x1a\x93\x85\xed\xa0\xbe\x26\x3f\x13\x4b\xba\x50\x38\xc6\xb1\xee\x66\x43\x0e\x8f\x27\x19\x67\x83\x79\xb2\xc2\x63\xdd\x6a\x0d\x2d\x60\xc7\xb5\x4e\xc7\x0a\x3c\x31\xb9\x8a\xa2\xac\xa5\x41\x1a\x45\xd0\xd4\xca\x76\x85\x4d\xb7\x1d\x32\x36\x55\x2a\x0a\xc5\xca\x70\x8a\x30\x2d\x47\xb0\xa3\x75\xa3\xa6\x82\x2d\x56\x61\x4c\x1c\xe1\x98\x8a\x59\xc2\x0c\x4b\x57\x80\x45\x39\x4f\x2a\xe0\xb6\x44\x0d\x5d\x14\x05\x8b\xaf\x05\x5d\x91\xb5\x6e\x92\x29\x01\xf9\x3a\x5f\x31\x3e\x61\x93\x53\x49\x85\x04\x78\x15\x44\xfd\x33\x65\x8b\x09\xc0\x13\x02\xd8\x0d\x1b\xaf\xa5\x1a\x87\x78\x4e\xc0\x38\x5b\xae\x16\x4c\xb2\x09\xc0\x4b\x12\x2e\x4e\xb7\x10\x6d\xca\x2a\xcc\x2a\xa1\x2b\x15\x52\x85\x5e\xa8\x2c\x17\x43\x3a\x22\xbb\x6c\x58\xce\xd3\xbc\xd0\xa4\x5d\x07\xec\xff\x83\x9b\x8a\xef\xa7\xf8\x09\xb9\x8e\xa2\x6b\x78\x0d\x6f\xe0\x70\x84\x10\xea\x3f\x89\xa2\x27\x6d\x42\x78\x14\x09\xd3\x18\x4f\x30\x45\x51\x04\x2f\xc8\x13\xa4\x31\x9d\x90\xab\x72\x32\x93\xdb\xe0\xbb\x3a\xe5\x2f\x50\x59\x91\x53\xd5\x8c\x43\x33\xc4\xb1\x6b\x42\x37\xb0\x46\x0d\x8b\x96\x44\x1b\xc3\x17\x2b\x8c\x3f\xa8\x95\x63\x16\x50\x62\xa6\x96\x19\xf5\xcf\x17\xf7\x5e\x65\x45\x9b\x60\x01\xce\x30\xc5\x29\xce\xcd\xc4\xd4\x23\x77\x98\x8d\x30\xc3\xd4\x0c\x5e\x43\x51\xbb\x1c\xbb\x0a\x6c\x6d\x06\x14\x9e\x92\x75\xac\x47\xa8\x67\x40\x51\x04\x32\x5d\xd7\x72\x01\x99\xfa\xf6\x9a\xaa\x25\x9b\x5e\xd3\x54\xc9\x03\x32\x16\x2c\xcf\x16\x57\x0c\x4e\x63\x1b\x8b\x62\x39\x67\xbc\xba\xa2\x71\x3b\xfd\x31\xd3\x54\x16\x08\xd7\x93\x6d\x9b\xb9\x74\x94\x04\x98\x9b\x30\x5a\x92\x09\xc3\x29\x5c\xef\x20\xb4\x15\x69\xc0\x5b\xe4\xd0\x4e\x23\xcd\xe8\xfb\x61\x5b\x87\x8c\x59\x04\xcd\x4b\xcb\x01\xa7\xd8\xaf\x0c\xfb\x11\x67\x8a\x7c\x86\x05\x56\x9f\xaa\x00\x0b\x99\x91\x6c\x90\x19\xc2\x29\xa6\x28\xa1\x10\x05\x0b\xce\xa5\x96\x46\x2c\xe7\x67\x7e\x25\x1e\xba\x99\x3f\x72\xec\x5b\x6a\x3e\x53\xf2\x5f\xc2\xd7\x8b\x05\xde\xc3\x1d\x4b\x44\xb1\xa1\x22\x8a\x4a\xb6\x5e\xe5\x73\x44\x62\x43\x43\x13\x2e\x27\xLine truncated
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
var f webdav.File
|
||||
|
||||
var rb *bytes.Reader
|
||||
var r *gzip.Reader
|
||||
|
||||
rb = bytes.NewReader(FileAccountsJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "accounts.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Handler = &webdav.Handler{
|
||||
FileSystem: FS,
|
||||
LockSystem: webdav.NewMemLS(),
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Open a file
|
||||
func (hfs *HTTPFS) Open(path string) (http.File, error) {
|
||||
path = hfs.Prefix + path
|
||||
|
||||
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return f, nil
|
||||
}
|
||||
|
||||
// ReadFile is adapTed from ioutil
|
||||
func ReadFile(path string) ([]byte, error) {
|
||||
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
buf := bytes.NewBuffer(make([]byte, 0, bytes.MinRead))
|
||||
|
||||
// If the buffer overflows, we will get bytes.ErrTooLarge.
|
||||
// Return that as an error. Any other panic remains.
|
||||
defer func() {
|
||||
e := recover()
|
||||
if e == nil {
|
||||
return
|
||||
}
|
||||
if panicErr, ok := e.(error); ok && panicErr == bytes.ErrTooLarge {
|
||||
err = panicErr
|
||||
} else {
|
||||
panic(e)
|
||||
}
|
||||
}()
|
||||
_, err = buf.ReadFrom(f)
|
||||
return buf.Bytes(), err
|
||||
}
|
||||
|
||||
// WriteFile is adapTed from ioutil
|
||||
func WriteFile(filename string, data []byte, perm os.FileMode) error {
|
||||
f, err := FS.OpenFile(CTX, filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
n, err := f.Write(data)
|
||||
if err == nil && n < len(data) {
|
||||
err = io.ErrShortWrite
|
||||
}
|
||||
if err1 := f.Close(); err == nil {
|
||||
err = err1
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// WalkDirs looks for files in the given dir and returns a list of files in it
|
||||
// usage for all files in the b0x: WalkDirs("", false)
|
||||
func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error) {
|
||||
f, err := FS.OpenFile(CTX, name, os.O_RDONLY, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fileInfos, err := f.Readdir(0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for _, info := range fileInfos {
|
||||
filename := path.Join(name, info.Name())
|
||||
|
||||
if includeDirsInList || !info.IsDir() {
|
||||
files = append(files, filename)
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
files, err = WalkDirs(filename, includeDirsInList, files...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return files, nil
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
pkg: "assets"
|
||||
dest: "."
|
||||
output: "embed.go"
|
||||
fmt: true
|
||||
noprefix: true
|
||||
|
||||
compression:
|
||||
compress: true
|
||||
|
||||
custom:
|
||||
- files:
|
||||
- "../../assets/"
|
||||
base: "../../assets/"
|
||||
prefix: ""
|
||||
|
||||
...
|
||||
@@ -1,10 +1,20 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/owncloud/ocis/accounts"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/assetsfs"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
|
||||
// New returns a new http filesystem to serve assets.
|
||||
func New(opts ...Option) http.FileSystem {
|
||||
options := newOptions(opts...)
|
||||
return assetsfs.New(accounts.Assets, options.Config.Asset.Path, options.Logger)
|
||||
}
|
||||
|
||||
// Option defines a single option function.
|
||||
type Option func(o *Options)
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/urfave/cli/v2"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
)
|
||||
|
||||
// RebuildIndex rebuilds the entire configured index.
|
||||
|
||||
@@ -30,11 +30,22 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
|
||||
}
|
||||
|
||||
cfg.Repo.Backend = strings.ToLower(cfg.Repo.Backend)
|
||||
|
||||
// When running on single binary mode the before hook from the root command won't get called. We manually
|
||||
// call this before hook from ocis command, so the configuration can be loaded.
|
||||
if !cfg.Supervised {
|
||||
return ParseConfig(ctx, cfg)
|
||||
}
|
||||
if origins := ctx.StringSlice("cors-allowed-origins"); len(origins) != 0 {
|
||||
cfg.HTTP.CORS.AllowedOrigins = origins
|
||||
}
|
||||
if methods := ctx.StringSlice("cors-allowed-methods"); len(methods) != 0 {
|
||||
cfg.HTTP.CORS.AllowedMethods = methods
|
||||
}
|
||||
if headers := ctx.StringSlice("cors-allowed-headers"); len(headers) != 0 {
|
||||
cfg.HTTP.CORS.AllowedOrigins = headers
|
||||
}
|
||||
logger.Debug().Str("service", "accounts").Msg("ignoring config file parsing when running supervised")
|
||||
return nil
|
||||
},
|
||||
|
||||
@@ -26,12 +26,21 @@ type LDAPSchema struct {
|
||||
Groups string
|
||||
}
|
||||
|
||||
// CORS defines the available cors configuration.
|
||||
type CORS struct {
|
||||
AllowedOrigins []string
|
||||
AllowedMethods []string
|
||||
AllowedHeaders []string
|
||||
AllowCredentials bool
|
||||
}
|
||||
|
||||
// HTTP defines the available http configuration.
|
||||
type HTTP struct {
|
||||
Addr string
|
||||
Namespace string
|
||||
Root string
|
||||
CacheTTL int
|
||||
CORS CORS
|
||||
}
|
||||
|
||||
// GRPC defines the available grpc configuration.
|
||||
@@ -68,8 +77,9 @@ type Log struct {
|
||||
|
||||
// Repo defines which storage implementation is to be used.
|
||||
type Repo struct {
|
||||
Disk Disk
|
||||
CS3 CS3
|
||||
Backend string
|
||||
Disk Disk
|
||||
CS3 CS3
|
||||
}
|
||||
|
||||
// Disk is the local disk implementation of the storage.
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
package flagset
|
||||
|
||||
import (
|
||||
"path"
|
||||
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/config/defaults"
|
||||
"github.com/owncloud/ocis/ocis-pkg/flags"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
@@ -87,7 +90,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "http-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "0.0.0.0:9181"),
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "127.0.0.1:9181"),
|
||||
Usage: "Address to bind http server",
|
||||
EnvVars: []string{"ACCOUNTS_HTTP_ADDR"},
|
||||
Destination: &cfg.HTTP.Addr,
|
||||
@@ -106,6 +109,30 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"ACCOUNTS_CACHE_TTL"},
|
||||
Destination: &cfg.HTTP.CacheTTL,
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "cors-allowed-origins",
|
||||
Value: cli.NewStringSlice("*"),
|
||||
Usage: "Set the allowed CORS origins",
|
||||
EnvVars: []string{"ACCOUNTS_CORS_ALLOW_ORIGINS", "OCIS_CORS_ALLOW_ORIGINS"},
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "cors-allowed-methods",
|
||||
Value: cli.NewStringSlice("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"),
|
||||
Usage: "Set the allowed CORS origins",
|
||||
EnvVars: []string{"ACCOUNTS_CORS_ALLOW_METHODS", "OCIS_CORS_ALLOW_METHODS"},
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "cors-allowed-headers",
|
||||
Value: cli.NewStringSlice("Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With"),
|
||||
Usage: "Set the allowed CORS origins",
|
||||
EnvVars: []string{"ACCOUNTS_CORS_ALLOW_HEADERS", "OCIS_CORS_ALLOW_HEADERS"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "cors-allow-credentials",
|
||||
Value: flags.OverrideDefaultBool(cfg.HTTP.CORS.AllowCredentials, true),
|
||||
Usage: "Allow credentials for CORS",
|
||||
EnvVars: []string{"ACCOUNTS_CORS_ALLOW_CREDENTIALS", "OCIS_CORS_ALLOW_CREDENTIALS"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "grpc-namespace",
|
||||
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
|
||||
@@ -115,7 +142,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "grpc-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.GRPC.Addr, "0.0.0.0:9180"),
|
||||
Value: flags.OverrideDefaultString(cfg.GRPC.Addr, "127.0.0.1:9180"),
|
||||
Usage: "Address to bind grpc server",
|
||||
EnvVars: []string{"ACCOUNTS_GRPC_ADDR"},
|
||||
Destination: &cfg.GRPC.Addr,
|
||||
@@ -155,10 +182,17 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"ACCOUNTS_JWT_SECRET", "OCIS_JWT_SECRET"},
|
||||
Destination: &cfg.TokenManager.JWTSecret,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "storage-backend",
|
||||
Value: flags.OverrideDefaultString(cfg.Repo.Backend, "CS3"),
|
||||
Usage: "Which backend to use to store accounts data (CS3 or disk)",
|
||||
EnvVars: []string{"ACCOUNTS_STORAGE_BACKEND"},
|
||||
Destination: &cfg.Repo.Backend,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "storage-disk-path",
|
||||
Value: flags.OverrideDefaultString(cfg.Repo.Disk.Path, ""),
|
||||
Usage: "Path on the local disk, e.g. /var/tmp/ocis/accounts",
|
||||
Value: flags.OverrideDefaultString(cfg.Repo.Disk.Path, path.Join(defaults.BaseDataPath(), "accounts")),
|
||||
Usage: "Path on the local disk to store accounts data when backend is set to disk",
|
||||
EnvVars: []string{"ACCOUNTS_STORAGE_DISK_PATH"},
|
||||
Destination: &cfg.Repo.Disk.Path,
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@ package proto
|
||||
import (
|
||||
context "context"
|
||||
|
||||
client "github.com/asim/go-micro/v3/client"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
client "go-micro.dev/v4/client"
|
||||
empty "google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
// MockAccountsService can be used to write tests
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,24 +1,24 @@
|
||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||
// source: accounts.proto
|
||||
// source: proto/v0/accounts.proto
|
||||
|
||||
package proto
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
_ "google.golang.org/genproto/protobuf/field_mask"
|
||||
proto "google.golang.org/protobuf/proto"
|
||||
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||||
_ "google.golang.org/protobuf/types/known/fieldmaskpb"
|
||||
_ "google.golang.org/protobuf/types/known/timestamppb"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "context"
|
||||
api "github.com/asim/go-micro/v3/api"
|
||||
client "github.com/asim/go-micro/v3/client"
|
||||
server "github.com/asim/go-micro/v3/server"
|
||||
api "go-micro.dev/v4/api"
|
||||
client "go-micro.dev/v4/client"
|
||||
server "go-micro.dev/v4/server"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -86,7 +86,7 @@ type AccountsService interface {
|
||||
// Updates an account
|
||||
UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...client.CallOption) (*Account, error)
|
||||
// Deletes an account
|
||||
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error)
|
||||
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type accountsService struct {
|
||||
@@ -141,9 +141,9 @@ func (c *accountsService) UpdateAccount(ctx context.Context, in *UpdateAccountRe
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*empty.Empty, error) {
|
||||
func (c *accountsService) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...client.CallOption) (*emptypb.Empty, error) {
|
||||
req := c.c.NewRequest(c.name, "AccountsService.DeleteAccount", in)
|
||||
out := new(empty.Empty)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.c.Call(ctx, req, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -163,7 +163,7 @@ type AccountsServiceHandler interface {
|
||||
// Updates an account
|
||||
UpdateAccount(context.Context, *UpdateAccountRequest, *Account) error
|
||||
// Deletes an account
|
||||
DeleteAccount(context.Context, *DeleteAccountRequest, *empty.Empty) error
|
||||
DeleteAccount(context.Context, *DeleteAccountRequest, *emptypb.Empty) error
|
||||
}
|
||||
|
||||
func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler, opts ...server.HandlerOption) error {
|
||||
@@ -172,7 +172,7 @@ func RegisterAccountsServiceHandler(s server.Server, hdlr AccountsServiceHandler
|
||||
GetAccount(ctx context.Context, in *GetAccountRequest, out *Account) error
|
||||
CreateAccount(ctx context.Context, in *CreateAccountRequest, out *Account) error
|
||||
UpdateAccount(ctx context.Context, in *UpdateAccountRequest, out *Account) error
|
||||
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *empty.Empty) error
|
||||
DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *emptypb.Empty) error
|
||||
}
|
||||
type AccountsService struct {
|
||||
accountsService
|
||||
@@ -236,7 +236,7 @@ func (h *accountsServiceHandler) UpdateAccount(ctx context.Context, in *UpdateAc
|
||||
return h.AccountsServiceHandler.UpdateAccount(ctx, in, out)
|
||||
}
|
||||
|
||||
func (h *accountsServiceHandler) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *empty.Empty) error {
|
||||
func (h *accountsServiceHandler) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, out *emptypb.Empty) error {
|
||||
return h.AccountsServiceHandler.DeleteAccount(ctx, in, out)
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ type GroupsService interface {
|
||||
// Updates a group
|
||||
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...client.CallOption) (*Group, error)
|
||||
// Deletes a group
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*empty.Empty, error)
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*emptypb.Empty, error)
|
||||
// group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http
|
||||
AddMember(ctx context.Context, in *AddMemberRequest, opts ...client.CallOption) (*Group, error)
|
||||
// group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0
|
||||
@@ -376,9 +376,9 @@ func (c *groupsService) UpdateGroup(ctx context.Context, in *UpdateGroupRequest,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *groupsService) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*empty.Empty, error) {
|
||||
func (c *groupsService) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...client.CallOption) (*emptypb.Empty, error) {
|
||||
req := c.c.NewRequest(c.name, "GroupsService.DeleteGroup", in)
|
||||
out := new(empty.Empty)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.c.Call(ctx, req, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -428,7 +428,7 @@ type GroupsServiceHandler interface {
|
||||
// Updates a group
|
||||
UpdateGroup(context.Context, *UpdateGroupRequest, *Group) error
|
||||
// Deletes a group
|
||||
DeleteGroup(context.Context, *DeleteGroupRequest, *empty.Empty) error
|
||||
DeleteGroup(context.Context, *DeleteGroupRequest, *emptypb.Empty) error
|
||||
// group:addmember https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http
|
||||
AddMember(context.Context, *AddMemberRequest, *Group) error
|
||||
// group:removemember https://docs.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0
|
||||
@@ -443,7 +443,7 @@ func RegisterGroupsServiceHandler(s server.Server, hdlr GroupsServiceHandler, op
|
||||
GetGroup(ctx context.Context, in *GetGroupRequest, out *Group) error
|
||||
CreateGroup(ctx context.Context, in *CreateGroupRequest, out *Group) error
|
||||
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, out *Group) error
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *empty.Empty) error
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *emptypb.Empty) error
|
||||
AddMember(ctx context.Context, in *AddMemberRequest, out *Group) error
|
||||
RemoveMember(ctx context.Context, in *RemoveMemberRequest, out *Group) error
|
||||
ListMembers(ctx context.Context, in *ListMembersRequest, out *ListMembersResponse) error
|
||||
@@ -531,7 +531,7 @@ func (h *groupsServiceHandler) UpdateGroup(ctx context.Context, in *UpdateGroupR
|
||||
return h.GroupsServiceHandler.UpdateGroup(ctx, in, out)
|
||||
}
|
||||
|
||||
func (h *groupsServiceHandler) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *empty.Empty) error {
|
||||
func (h *groupsServiceHandler) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, out *emptypb.Empty) error {
|
||||
return h.GroupsServiceHandler.DeleteGroup(ctx, in, out)
|
||||
}
|
||||
|
||||
|
||||
@@ -11,10 +11,8 @@ import (
|
||||
"testing"
|
||||
|
||||
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/owncloud/ocis/accounts/pkg/command"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
@@ -22,6 +20,8 @@ import (
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go-micro.dev/v4/client"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
"google.golang.org/genproto/protobuf/field_mask"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
@@ -80,6 +80,7 @@ func init() {
|
||||
)
|
||||
|
||||
cfg := config.New()
|
||||
cfg.Repo.Backend = "disk"
|
||||
cfg.Repo.Disk.Path = dataPath
|
||||
cfg.Server.DemoUsersAndGroups = true
|
||||
var hdlr *svc.Service
|
||||
@@ -392,7 +393,7 @@ func deleteGroup(t *testing.T, id string) (*empty.Empty, error) {
|
||||
|
||||
// createTmpDir creates a temporary dir for tests data.
|
||||
func createTmpDir() string {
|
||||
name, err := ioutil.TempDir("/var/tmp", "ocis-accounts-store-")
|
||||
name, err := ioutil.TempDir("/tmp", "ocis-accounts-store-")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -544,7 +545,7 @@ func TestUpdateAccount(t *testing.T) {
|
||||
resp, err := updateAccount(t, tt.userAccount, updateMask)
|
||||
if tt.expectedErrOnUpdate != nil {
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, tt.expectedErrOnUpdate, err)
|
||||
assert.Equal(t, tt.expectedErrOnUpdate.Error(), err.Error())
|
||||
} else {
|
||||
assert.NoError(t, err)
|
||||
assert.IsType(t, &proto.Account{}, resp)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
|
||||
@@ -1,15 +1,16 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
"github.com/go-chi/chi/v5"
|
||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/owncloud/ocis/accounts/pkg/assets"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/account"
|
||||
"github.com/owncloud/ocis/ocis-pkg/cors"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||
"go-micro.dev/v4"
|
||||
)
|
||||
|
||||
// Server initializes the http service and server.
|
||||
@@ -33,7 +34,13 @@ func Server(opts ...Option) http.Service {
|
||||
mux.Use(chimiddleware.RequestID)
|
||||
mux.Use(middleware.TraceContext)
|
||||
mux.Use(middleware.NoCache)
|
||||
mux.Use(middleware.Cors)
|
||||
mux.Use(middleware.Cors(
|
||||
cors.Logger(options.Logger),
|
||||
cors.AllowedOrigins(options.Config.HTTP.CORS.AllowedOrigins),
|
||||
cors.AllowedMethods(options.Config.HTTP.CORS.AllowedMethods),
|
||||
cors.AllowedHeaders(options.Config.HTTP.CORS.AllowedHeaders),
|
||||
cors.AllowCredentials(options.Config.HTTP.CORS.AllowCredentials),
|
||||
))
|
||||
mux.Use(middleware.Secure)
|
||||
mux.Use(middleware.ExtractAccountUUID(
|
||||
account.Logger(options.Logger),
|
||||
|
||||
@@ -16,8 +16,6 @@ import (
|
||||
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/gofrs/uuid"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
fieldmask_utils "github.com/mennanov/fieldmask-utils"
|
||||
@@ -31,6 +29,8 @@ import (
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
"github.com/rs/zerolog"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
"go-micro.dev/v4/metadata"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"google.golang.org/genproto/protobuf/field_mask"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
|
||||
@@ -9,9 +9,6 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
@@ -21,9 +18,12 @@ import (
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
ssvc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go-micro.dev/v4/client"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
"go-micro.dev/v4/metadata"
|
||||
)
|
||||
|
||||
const dataPath = "/var/tmp/ocis-accounts-tests"
|
||||
const dataPath = "/tmp/ocis-accounts-tests"
|
||||
|
||||
var (
|
||||
roleServiceMock settings.RoleService
|
||||
@@ -33,6 +33,7 @@ var (
|
||||
func init() {
|
||||
cfg := config.New()
|
||||
cfg.Server.Name = "accounts"
|
||||
cfg.Repo.Backend = "disk"
|
||||
cfg.Repo.Disk.Path = dataPath
|
||||
logger := olog.NewLogger(olog.Color(true), olog.Pretty(true))
|
||||
roleServiceMock = buildRoleServiceMock()
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"path"
|
||||
"strconv"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/gofrs/uuid"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,13 +2,14 @@ package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
||||
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
@@ -48,17 +49,22 @@ func New(opts ...Option) (s *Service, err error) {
|
||||
roleManager = &m
|
||||
}
|
||||
|
||||
storage, err := createMetadataStorage(cfg, logger)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not create metadata storage")
|
||||
}
|
||||
|
||||
s = &Service{
|
||||
id: cfg.GRPC.Namespace + "." + cfg.Server.Name,
|
||||
log: logger,
|
||||
Config: cfg,
|
||||
RoleService: roleService,
|
||||
RoleManager: roleManager,
|
||||
repo: createMetadataStorage(cfg, logger),
|
||||
repo: storage,
|
||||
}
|
||||
|
||||
r := oreg.GetRegistry()
|
||||
if cfg.Repo.Disk.Path == "" {
|
||||
if cfg.Repo.Backend == "cs3" {
|
||||
if _, err := r.GetService("com.owncloud.storage.metadata"); err != nil {
|
||||
logger.Error().Err(err).Msg("index: storage-metadata service not present")
|
||||
return nil, err
|
||||
@@ -113,40 +119,41 @@ func configFromSvc(cfg *config.Config) (*idxcfg.Config, error) {
|
||||
}
|
||||
}(cfg)
|
||||
|
||||
if (config.Repo{}) != cfg.Repo {
|
||||
if (config.Disk{}) != cfg.Repo.Disk {
|
||||
c.Repo = idxcfg.Repo{
|
||||
Disk: idxcfg.Disk{
|
||||
Path: cfg.Repo.Disk.Path,
|
||||
},
|
||||
}
|
||||
switch cfg.Repo.Backend {
|
||||
case "disk":
|
||||
c.Repo = idxcfg.Repo{
|
||||
Backend: cfg.Repo.Backend,
|
||||
Disk: idxcfg.Disk{
|
||||
Path: cfg.Repo.Disk.Path,
|
||||
},
|
||||
}
|
||||
case "cs3":
|
||||
c.Repo = idxcfg.Repo{
|
||||
Backend: cfg.Repo.Backend,
|
||||
CS3: idxcfg.CS3{
|
||||
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
|
||||
DataURL: cfg.Repo.CS3.DataURL,
|
||||
DataPrefix: cfg.Repo.CS3.DataPrefix,
|
||||
JWTSecret: cfg.Repo.CS3.JWTSecret,
|
||||
},
|
||||
}
|
||||
default:
|
||||
return nil, errors.New("index backend " + cfg.Repo.Backend + " is not supported")
|
||||
}
|
||||
|
||||
if (config.CS3{}) != cfg.Repo.CS3 {
|
||||
c.Repo = idxcfg.Repo{
|
||||
CS3: idxcfg.CS3{
|
||||
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
|
||||
DataURL: cfg.Repo.CS3.DataURL,
|
||||
DataPrefix: cfg.Repo.CS3.DataPrefix,
|
||||
JWTSecret: cfg.Repo.CS3.JWTSecret,
|
||||
},
|
||||
}
|
||||
if (config.Index{}) != cfg.Index {
|
||||
c.Index = idxcfg.Index{
|
||||
UID: idxcfg.Bound{
|
||||
Lower: cfg.Index.UID.Lower,
|
||||
},
|
||||
GID: idxcfg.Bound{
|
||||
Lower: cfg.Index.GID.Lower,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if (config.Index{}) != cfg.Index {
|
||||
c.Index = idxcfg.Index{
|
||||
UID: idxcfg.Bound{
|
||||
Lower: cfg.Index.UID.Lower,
|
||||
},
|
||||
GID: idxcfg.Bound{
|
||||
Lower: cfg.Index.GID.Lower,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
if (config.ServiceUser{}) != cfg.ServiceUser {
|
||||
c.ServiceUser = cfg.ServiceUser
|
||||
}
|
||||
if (config.ServiceUser{}) != cfg.ServiceUser {
|
||||
c.ServiceUser = cfg.ServiceUser
|
||||
}
|
||||
|
||||
return c, nil
|
||||
@@ -417,17 +424,19 @@ func (s Service) createDefaultGroups(withDemoGroups bool) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func createMetadataStorage(cfg *config.Config, logger log.Logger) storage.Repo {
|
||||
// for now we detect the used storage implementation based on which storage is configured
|
||||
// the config with defaults needs to be checked last
|
||||
if cfg.Repo.Disk.Path != "" {
|
||||
return storage.NewDiskRepo(cfg, logger)
|
||||
func createMetadataStorage(cfg *config.Config, logger log.Logger) (storage.Repo, error) {
|
||||
switch cfg.Repo.Backend {
|
||||
case "disk":
|
||||
return storage.NewDiskRepo(cfg, logger), nil
|
||||
case "cs3":
|
||||
repo, err := storage.NewCS3Repo(cfg)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "cs3 backend was configured but failed to start")
|
||||
}
|
||||
return repo, nil
|
||||
default:
|
||||
return nil, errors.New("backend type " + cfg.Repo.Backend + " is not supported")
|
||||
}
|
||||
repo, err := storage.NewCS3Repo(cfg)
|
||||
if err != nil {
|
||||
logger.Fatal().Err(err).Msg("cs3 storage was configured but failed to start")
|
||||
}
|
||||
return repo
|
||||
}
|
||||
|
||||
// Service implements the AccountsServiceHandler interface
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
Enhancement: Add user setting capability
|
||||
|
||||
We've added a capability to communicate the existance of a user settings service to clients.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2655
|
||||
https://github.com/owncloud/web/issues/5926
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Broaden bufbuild/Buf usage
|
||||
|
||||
We've switched the usage of bufbuild/Buf from a protoc replacement only to
|
||||
also using it to confige the outputs and pinning dependencies.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2630
|
||||
https://github.com/owncloud/ocis/pull/2616
|
||||
@@ -0,0 +1,7 @@
|
||||
Change: Configurable default quota
|
||||
|
||||
When creating a new space a (configurable) default quota will be used (instead the hardcoded one).
|
||||
One can set the EnvVar `GRAPH_SPACES_DEFAULT_QUOTA` to configure it
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2621
|
||||
https://jira.owncloud.com/browse/OCIS-2070
|
||||
@@ -0,0 +1,13 @@
|
||||
Change: New default data paths and easier configuration of the data path
|
||||
|
||||
We've changed the default data path for our release artifacts:
|
||||
- oCIS docker images will now store all data in `/var/lib/ocis` instead in `/var/tmp/ocis`
|
||||
- binary releases will now store all data in `~/.ocis` instead of `/var/tmp/ocis`
|
||||
|
||||
Also if you're a developer and you run oCIS from source, it will store all data in `~/.ocis` from now on.
|
||||
|
||||
You can now easily change the data path for all extensions by setting the environment variable `OCIS_BASE_DATA_PATH`.
|
||||
|
||||
If you want to package oCIS, you also can set the default data path at compile time, eg. by passing `-X "github.com/owncloud/ocis/ocis-pkg/config/defaults.BaseDataPathType=path" -X "github.com/owncloud/ocis/ocis-pkg/config/defaults.BaseDataPathValue=/var/lib/ocis"` to your go build step.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2590
|
||||
@@ -0,0 +1,7 @@
|
||||
Security: Don't expose services by default
|
||||
|
||||
We've changed the bind behaviour for all non public facing services. Before this PR
|
||||
all services would listen on all interfaces. After this PR, all services listen on
|
||||
127.0.0.1 only, except the proxy which is listening on 0.0.0.0:9200.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2612
|
||||
@@ -0,0 +1,6 @@
|
||||
Change: Split spaces webdav url and graph url in base and path
|
||||
|
||||
We've fixed the behavior for the spaces webdav url and graph explorer graph url settings, so that they respect the environment variable `OCIS_URL`. Previously oCIS admins needed to set these URLs manually to make spaces and the graph explorer work.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2660
|
||||
https://github.com/owncloud/ocis/issues/2659
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Replace fileb0x with go-embed
|
||||
|
||||
go-embed already brings the functionality we need but with less code. We decided to use it instead of 3rd party fileb0x
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1199
|
||||
https://github.com/owncloud/ocis/pull/2631
|
||||
https://github.com/owncloud/ocis/pull/2649
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Upgrade to go-micro v4.1.0
|
||||
|
||||
We've upgraded to go-micro v4.1.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2616
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Review and correct http header
|
||||
|
||||
Reviewed and corrected the necessary http headers.
|
||||
Made CORS configurable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2666
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Create parent directories for idp configuration
|
||||
|
||||
The parent directories of the identifier-registration.yaml config file might
|
||||
not exist when starting idp. Create them, when that is the case.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2667
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Lower TUS max chunk size
|
||||
|
||||
We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2584
|
||||
https://github.com/cs3org/reva/pull/2136
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: Add sharees additional info paramater config to ocs
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2637
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Add a middleware to authenticate public share requests
|
||||
|
||||
Added a new middleware to authenticate public share requests. This makes it possible to use APIs which require an authenticated context with public shares.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2536
|
||||
https://github.com/owncloud/ocis/pull/2652
|
||||
https://github.com/owncloud/ocis/issues/2479
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Report quota states
|
||||
|
||||
When listing the available spaces via the GraphAPI we now return quota states to make it easier for the clients to add visual indicators.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2628
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Start up a new machine auth provider in the storage service
|
||||
|
||||
This PR also adds the config to skip encoding user groups in reva tokens
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2528
|
||||
https://github.com/owncloud/ocis/pull/2529
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Enforce permission on update space quota
|
||||
|
||||
Added a check that only users with the `set-space-quota` permission can update the space quota.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2650
|
||||
@@ -0,0 +1,9 @@
|
||||
Enhancement: Update lico to v0.51.1
|
||||
|
||||
Updated lico to v0.51.1
|
||||
This update includes:
|
||||
* Apply LibreGraph naming treewide
|
||||
* move to go1.17
|
||||
* Update 3rd party Go dependencies
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2654
|
||||
@@ -0,0 +1,25 @@
|
||||
Enhancement: Update reva to v1.15
|
||||
|
||||
Updated reva to v1.15
|
||||
This update includes:
|
||||
* Fix [cs3org/reva#2168](https://github.com/cs3org/reva/pull/2168): Override provider if was previously registered
|
||||
* Fix [cs3org/reva#2173](https://github.com/cs3org/reva/pull/2173): Fix archiver max size reached error
|
||||
* Fix [cs3org/reva#2167](https://github.com/cs3org/reva/pull/2167): Handle nil quota in decomposedfs
|
||||
* Fix [cs3org/reva#2153](https://github.com/cs3org/reva/pull/2153): Restrict EOS project spaces sharing permissions to admins and writers
|
||||
* Fix [cs3org/reva#2179](https://github.com/cs3org/reva/pull/2179): Fix the returned permissions for webdav uploads
|
||||
* Chg [cs3org/reva#2479](https://github.com/cs3org/reva/pull/2479): Make apps able to work with public shares
|
||||
* Enh [cs3org/reva#2174](https://github.com/cs3org/reva/pull/2174): Inherit ACLs for files from parent directories
|
||||
* Enh [cs3org/reva#2152](https://github.com/cs3org/reva/pull/2152): Add a reference parameter to the getQuota request
|
||||
* Enh [cs3org/reva#2171](https://github.com/cs3org/reva/pull/2171): Add optional claim parameter to machine auth
|
||||
* Enh [cs3org/reva#2135](https://github.com/cs3org/reva/pull/2135): Nextcloud test improvements
|
||||
* Enh [cs3org/reva#2180](https://github.com/cs3org/reva/pull/2180): Remove OCDAV options namespace parameter
|
||||
* Enh [cs3org/reva#2170](https://github.com/cs3org/reva/pull/2170): Handle propfind requests for existing files
|
||||
* Enh [cs3org/reva#2165](https://github.com/cs3org/reva/pull/2165): Allow access to recycle bin for arbitrary paths outside homes
|
||||
* Enh [cs3org/reva#2189](https://github.com/cs3org/reva/pull/2189): Add user settings capability
|
||||
* Enh [cs3org/reva#2162](https://github.com/cs3org/reva/pull/2162): Implement the UpdateStorageSpace method
|
||||
* Enh [cs3org/reva#2117](https://github.com/cs3org/reva/pull/2117): Add ocs cache warmup strategy for first request from the user
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2658
|
||||
https://github.com/owncloud/ocis/pull/2536
|
||||
https://github.com/owncloud/ocis/pull/2650
|
||||
https://github.com/owncloud/ocis/pull/2680
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.4.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.4.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2681
|
||||
https://github.com/owncloud/web/releases/tag/v4.4.0
|
||||
@@ -61,6 +61,10 @@
|
||||
"endpoint": "/index.php/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/app/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/data",
|
||||
"backend": "http://localhost:9140"
|
||||
|
||||
@@ -64,6 +64,7 @@ services:
|
||||
PROXY_ACCOUNT_BACKEND_TYPE: cs3
|
||||
STORAGE_LDAP_HOSTNAME: ldap-server
|
||||
STORAGE_LDAP_PORT: 636
|
||||
STORAGE_LDAP_INSECURE: "true"
|
||||
STORAGE_LDAP_BASE_DN: "dc=owncloud,dc=com"
|
||||
STORAGE_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
@@ -78,6 +79,7 @@ services:
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
# General oCIS config
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}" # needed if Traefik is using self generated certificates
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
@@ -89,7 +91,7 @@ services:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
|
||||
@@ -63,6 +63,7 @@ services:
|
||||
# LDAP bind
|
||||
STORAGE_LDAP_HOSTNAME: openldap
|
||||
STORAGE_LDAP_PORT: 636
|
||||
STORAGE_LDAP_INSECURE: "true"
|
||||
STORAGE_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
# LDAP user settings
|
||||
@@ -119,7 +120,7 @@ services:
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/proxy-config.dist.json:/config/proxy-config.dist.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
# shared volume with oC10
|
||||
- oc10-data:/mnt/data
|
||||
labels:
|
||||
|
||||
@@ -69,7 +69,7 @@ services:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
|
||||
@@ -5,34 +5,23 @@ set -e
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin idp since we use Keycloak as a replacement
|
||||
# stop builtin IDP since we use Keycloak as a replacement
|
||||
ocis kill idp
|
||||
|
||||
echo "##################################################"
|
||||
echo "change default secrets:"
|
||||
|
||||
# REVA
|
||||
REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " Reva user UUID: $REVA_USER_UUID"
|
||||
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD $REVA_USER_UUID
|
||||
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD bc596f3c-c955-4328-80a0-60d018b4ad57 # REVA
|
||||
|
||||
echo "default secrets changed"
|
||||
echo "##################################################"
|
||||
|
||||
echo "##################################################"
|
||||
echo "delete demo users" # demo users are provided by keycloak
|
||||
echo "delete demo users" # users are provided by keycloak
|
||||
|
||||
set +e # accounts can only delete once, so it will fail the second time
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts remove $IDP_USER_UUID
|
||||
|
||||
ocis accounts remove 4c510ada-c86b-4815-8820-42cdf82c3d51
|
||||
ocis accounts remove ddc2004c-0977-11eb-9d3f-a793888cd0f8
|
||||
ocis accounts remove 932b4540-8d16-481e-8ef4-588e4b6b151c
|
||||
ocis accounts remove 058bff95-6708-4fe5-91e4-9ea3d377588b
|
||||
ocis accounts remove f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c
|
||||
# only admin, IDP and REVA user will be created because of ACCOUNTS_DEMO_USERS_AND_GROUPS=false
|
||||
ocis accounts remove 820ba2a1-3f54-4538-80a4-2d73007e30bf # IDP user
|
||||
ocis accounts remove ddc2004c-0977-11eb-9d3f-a793888cd0f8 # admin
|
||||
set -e
|
||||
|
||||
echo "##################################################"
|
||||
|
||||
@@ -64,6 +64,7 @@ services:
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}" # needed if Traefik is using self generated certificates
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
ACCOUNTS_DEMO_USERS_AND_GROUPS: false # don't generate demo users
|
||||
# change default secrets
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
@@ -72,7 +73,7 @@ services:
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
|
||||
@@ -72,7 +72,7 @@ services:
|
||||
STORAGE_USERS_DRIVER_S3NG_BUCKET: ${MINIO_BUCKET:-ocis-bucket}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
|
||||
@@ -62,7 +62,7 @@ services:
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
|
||||
@@ -67,11 +67,12 @@ services:
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
# app registry
|
||||
STORAGE_GATEWAY_GRPC_ADDR: 0.0.0.0:9142 # make the REVA gateway accessible to the app drivers
|
||||
STORAGE_APP_REGISTRY_MIMETYPES_JSON: /var/tmp/ocis/app-config/mimetypes.json
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/mimetypes.json:/var/tmp/ocis/app-config/mimetypes.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
@@ -90,6 +91,7 @@ services:
|
||||
command: storage-app-provider server
|
||||
environment:
|
||||
REVA_GATEWAY: ${REVA_GATEWAY:-ocis:9142}
|
||||
APP_PROVIDER_BASIC_GRPC_ADDR: 0.0.0.0:9164
|
||||
APP_PROVIDER_BASIC_EXTERNAL_ADDR: ocis-appdriver-collabora:9164
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
@@ -115,6 +117,7 @@ services:
|
||||
#command: storage-app-provider server
|
||||
environment:
|
||||
REVA_GATEWAY: ${REVA_GATEWAY:-ocis:9142}
|
||||
APP_PROVIDER_BASIC_GRPC_ADDR: 0.0.0.0:9164
|
||||
APP_PROVIDER_BASIC_EXTERNAL_ADDR: ocis-appdriver-onlyoffice:9164
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
@@ -142,6 +145,7 @@ services:
|
||||
#command: storage-app-provider server
|
||||
environment:
|
||||
REVA_GATEWAY: ${REVA_GATEWAY:-ocis:9142}
|
||||
APP_PROVIDER_BASIC_GRPC_ADDR: 0.0.0.0:9164
|
||||
APP_PROVIDER_BASIC_EXTERNAL_ADDR: ocis-appdriver-codimd:9164
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-change-me-please}
|
||||
|
||||
@@ -10,14 +10,10 @@ geekdocFilePath: releasing.md
|
||||
|
||||
## Requirements
|
||||
|
||||
You need a working installation of [the Go programming language](https://golang.org/) installed to build the assets for a working release.
|
||||
|
||||
You need a working installation of [the Go programming language](https://golang.org/), [the Node runtime](https://nodejs.org/) and [the Yarn package manager](https://yarnpkg.com/) installed to build the assets for a working release.
|
||||
## Releasing
|
||||
|
||||
After adding changes to the accounts package within oCIS and testing them locally, you want to update the compiled assets to the oCIS binary.
|
||||
|
||||
To achieve this, you have to run a Go command and add the results to your PR. The preferred way to do this is to run `make generate` in the root
|
||||
of the repository and then commit the resulting changes to your branch/PR.
|
||||
The accounts service doesn't have a dedicated release process. Simply commit your changes, make sure linting and unit tests pass locally and open a pull request.
|
||||
|
||||
### Package Hierarchy
|
||||
|
||||
|
||||
@@ -10,14 +10,11 @@ geekdocFilePath: releasing.md
|
||||
|
||||
## Requirements
|
||||
|
||||
You need a working installation of [the Go programming language](https://golang.org/) installed to build the assets for a working release.
|
||||
You need a working installation of [the Go programming language](https://golang.org/), [the Node runtime](https://nodejs.org/) and [the Yarn package manager](https://yarnpkg.com/) installed to build the assets for a working release.
|
||||
|
||||
## Releasing
|
||||
|
||||
After adding changes to the settings package within oCIS and testing them locally, you want to update the compiled assets to the oCIS binary.
|
||||
|
||||
To achieve this, you have to run a Go command and add the results to your PR. The preferred way to do this is to run `make generate` in the root
|
||||
of the repository and then commit the resulting changes to your branch/PR.
|
||||
The settings service doesn't have a dedicated release process. Simply commit your changes, make sure linting and unit tests pass locally and open a pull request.
|
||||
|
||||
### Package Hierarchy
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Having introduced the above, one can refer to a Drive with the following URL for
|
||||
'https://localhost:9200/graph/v1.0/Drive(1284d238-aa92-42ce-bdc4-0b0000009157!07c26b3a-9944-4f2b-ab33-b0b326fc7570")
|
||||
```
|
||||
|
||||
Udating an entity attribute:
|
||||
Updating an entity attribute:
|
||||
|
||||
```console
|
||||
curl -X PATCH 'https://localhost:9200/graph/v1.0/Drive("1284d238-aa92-42ce-bdc4-0b0000009157!07c26b3a-9944-4f2b-ab33-b0b326fc7570)' -d '{"name":"42"}' -v
|
||||
@@ -75,3 +75,104 @@ Add a description to your spaces
|
||||
```
|
||||
|
||||
This feature makes use of the internal storage layout and is completely abstracted from the end user.
|
||||
|
||||
### Quotas
|
||||
|
||||
Spaces capacity (quota) is independent of the Storage quota. As a Space admin you can set the quota for all users of a space, and as such, there are no limitations and is up to the admin to make a correct use of this.
|
||||
|
||||
It is possible to have a space quota greater than the storage quota. A Space may also have "infinite" quota, meaning a single space without quota can occupy the entirety of a disk.
|
||||
|
||||
#### Quota Enforcement
|
||||
|
||||
Creating a Space with a quota of 10 bytes:
|
||||
|
||||
`curl -k -X POST 'https://localhost:9200/graph/v1.0/drives' -u admin:admin -d '{"name":"marketing", "quota": {"total": 10}}' -v`
|
||||
|
||||
```console
|
||||
/var/tmp/ocis/storage/users
|
||||
├── blobs
|
||||
├── nodes
|
||||
│ ├── 627981c2-2a71-4adf-b680-177e245afdda
|
||||
│ ├── 9541e7c3-8fda-4b49-b697-e7e51457cf5a
|
||||
│ ├── b5692345-108d-4b80-9747-3a7e9739ad57
|
||||
│ └── root
|
||||
│ ├── 118351d7-67a4-4cdf-b495-6093d1e572ed -> ../627981c2-2a71-4adf-b680-177e245afdda
|
||||
│ └── ddc2004c-0977-11eb-9d3f-a793888cd0f8 -> ../b5692345-108d-4b80-9747-3a7e9739ad57
|
||||
├── spaces
|
||||
│ ├── personal
|
||||
│ │ └── b5692345-108d-4b80-9747-3a7e9739ad57 -> ../../nodes/b5692345-108d-4b80-9747-3a7e9739ad57
|
||||
│ ├── project
|
||||
│ │ └── 627981c2-2a71-4adf-b680-177e245afdda -> ../../nodes/627981c2-2a71-4adf-b680-177e245afdda
|
||||
│ └── share
|
||||
├── trash
|
||||
└── uploads
|
||||
```
|
||||
|
||||
Verify the new space has 10 bytes, and none of it is used:
|
||||
|
||||
```json
|
||||
{
|
||||
"driveType": "project",
|
||||
"id": "1284d238-aa92-42ce-bdc4-0b0000009157!627981c2-2a71-4adf-b680-177e245afdda",
|
||||
"lastModifiedDateTime": "2021-10-15T11:16:26.029188+02:00",
|
||||
"name": "marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"id": "ddc2004c-0977-11eb-9d3f-a793888cd0f8"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 10,
|
||||
"total": 10,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"id": "1284d238-aa92-42ce-bdc4-0b0000009157!627981c2-2a71-4adf-b680-177e245afdda",
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157!627981c2-2a71-4adf-b680-177e245afdda"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Upload a 6 bytes file:
|
||||
|
||||
`curl -k -X PUT https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157\!627981c2-2a71-4adf-b680-177e245afdda/6bytes.txt -d "012345" -u admin:admin -v`
|
||||
|
||||
Query the quota again:
|
||||
|
||||
```json
|
||||
...
|
||||
"quota": {
|
||||
"remaining": 4,
|
||||
"total": 10,
|
||||
"used": 6
|
||||
},
|
||||
...
|
||||
```
|
||||
|
||||
Now attempt to upload 5 bytes to the space:
|
||||
|
||||
`curl -k -X PUT https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157\!627981c2-2a71-4adf-b680-177e245afdda/5bytes.txt -d "01234" -u admin:admin -v`
|
||||
|
||||
The request will fail with `507 Insufficient Storage`:
|
||||
|
||||
```
|
||||
HTTP/1.1 507 Insufficient Storage
|
||||
< Access-Control-Allow-Origin: *
|
||||
< Content-Length: 0
|
||||
< Content-Security-Policy: default-src 'none';
|
||||
< Date: Fri, 15 Oct 2021 09:24:46 GMT
|
||||
< Vary: Origin
|
||||
< X-Content-Type-Options: nosniff
|
||||
< X-Download-Options: noopen
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
* Closing connection 0
|
||||
```
|
||||
|
||||
##### Considerations
|
||||
|
||||
- If a Space quota is updated to unlimited, the upper limit is the entire available space on disk
|
||||
@@ -120,7 +120,7 @@ To provide the other storage aspects we plan to implement a FUSE overlay filesys
|
||||
This is the current default storage driver. While it implements the file tree (using redis, including id based lookup), ETag propagation, trash, versions and sharing (including expiry) using the data directory layout of ownCloud 10 it has [known limitations](https://github.com/owncloud/core/issues/28095) that cannot be fixed without changing the actual layout on disk.
|
||||
|
||||
To setup it up properly in a distributed fashion, the storage-home and the storage-oc need to share the same underlying FS. Their "data" counterparts also need access to the same shared FS.
|
||||
For a simple docker-compose setup, you can create a volume which will be used by the "storage-storage-home", "storage-storage-home-data", "storage-storage-oc" and "storage-storage-oc-data" containers. Using the `owncloud/ocis` docker image, the volume would need to be hooked in the `/var/tmp/ocis` folder inside the containers.
|
||||
For a simple docker-compose setup, you can create a volume which will be used by the "storage-storage-home", "storage-storage-home-data", "storage-storage-oc" and "storage-storage-oc-data" containers. Using the `owncloud/ocis` docker image, the volume would need to be hooked in the `/var/lib/ocis` folder inside the containers.
|
||||
|
||||
- tree provided by a POSIX filesystem
|
||||
- file layout is mapped to the old ownCloud 10 layout
|
||||
|
||||
@@ -31,9 +31,7 @@ and take note of its release tag name.
|
||||
1. Create a branch `update-web-$version` in the [ocis repository](https://github.com/owncloud/ocis)
|
||||
2. Change into web package folder via `cd web`
|
||||
3. Inside `web/`, update the `Makefile` so that the WEB_ASSETS_VERSION variable references the currently released version of https://github.com/owncloud/web
|
||||
4. Inside `web/`, replace the current assets with newly released ones by running `make pull-assets`
|
||||
5. Inside `web/`, run `make generate`. The output should look something like this: `web: embed.go - YYY/MM/DD ... to write [./embed.go] from config file ...`
|
||||
6. Move to the changelog (`cd ../changelog/`) and add a changelog file to the `unreleased/` folder (You can copy an old web release changelog item as a template)
|
||||
7. Move to the repo root (`cd ..`)and update the WEB_COMMITID in the `/.drone.env` file to the commit id from the released version (unless the existing commit id is already newer)
|
||||
8. **Optional:** Test the changes locally by running `cd ocis && go run cmd/ocis/main.go server`, visiting [https://localhost:9200](https://localhost:9200) and confirming everything renders correctly
|
||||
9. Commit your changes, push them and [create a PR](https://github.com/owncloud/ocis/pulls)
|
||||
4. Move to the changelog (`cd ../changelog/`) and add a changelog file to the `unreleased/` folder (You can copy an old web release changelog item as a template)
|
||||
5. Move to the repo root (`cd ..`)and update the WEB_COMMITID in the `/.drone.env` file to the commit id from the released version (unless the existing commit id is already newer)
|
||||
6. **Optional:** Test the changes locally by running `cd ocis && go run cmd/ocis/main.go server`, visiting [https://localhost:9200](https://localhost:9200) and confirming everything renders correctly
|
||||
7. Commit your changes, push them and [create a PR](https://github.com/owncloud/ocis/pulls)
|
||||
@@ -33,11 +33,11 @@ You can find the latest official release of oCIS at [our download mirror](https:
|
||||
The latest build from the master branch can be found at [our download mirrors testing section](https://download.owncloud.com/ocis/ocis/testing/).
|
||||
|
||||
To run oCIS as binary you need to download it first and then run the following commands.
|
||||
For this example, assuming version 1.12.0 of oCIS running on a Linux AMD64 host:
|
||||
For this example, assuming version 1.13.0 of oCIS running on a Linux AMD64 host:
|
||||
|
||||
```console
|
||||
# download
|
||||
curl https://download.owncloud.com/ocis/ocis/1.12.0/ocis-1.12.0-linux-amd64 --output ocis
|
||||
curl https://download.owncloud.com/ocis/ocis/1.13.0/ocis-1.13.0-linux-amd64 --output ocis
|
||||
|
||||
# make binary executable
|
||||
chmod +x ocis
|
||||
@@ -46,7 +46,7 @@ chmod +x ocis
|
||||
./ocis server
|
||||
```
|
||||
|
||||
The default primary storage location is `/var/tmp/ocis`. You can change that value by configuration.
|
||||
The default primary storage location is `~/.ocis` or `/var/lib/ocis` depending on the packaging format and your operating system user. You can change that value by configuration.
|
||||
|
||||
{{< hint warning >}}
|
||||
oCIS by default relies on Multicast DNS (mDNS), usually via avahi-daemon. If your system has a firewall, make sure mDNS is allowed in your active zone.
|
||||
|
||||
@@ -7,6 +7,25 @@ geekdocEditPath: edit/master/docs/ocis
|
||||
geekdocFilePath: release_notes.md
|
||||
---
|
||||
|
||||
## ownCloud Infinite Scale 1.13.0 Technology Preview
|
||||
|
||||
Version 1.13.0 brings progress on the backend for the 'Spaces' feature. ownCloud Web and Infinite Scale now provide ZIP/TAR download for multiple files/folders and can integrate external file viewer/editor applications (e.g., Collabora Online, ONLYOFFICE, CodiMD, Microsoft Office Online).
|
||||
|
||||
The most prominent changes in ownCloud Infinite Scale 1.13.0 and ownCloud Web 4.3.0 comprise:
|
||||
|
||||
- Infinite Scale and Web now allow downloading multiple files or folders as archives [ocis#2509](https://github.com/owncloud/ocis/pull/2509) [cs3org/reva#2088](https://github.com/cs3org/reva/pull/2088)
|
||||
- Infinite Scale and Web can now integrate external applications like file viewers/editors via the [cs3org/wopiserver](https://github.com/cs3org/wopiserver) (e.g., Collabora Online, ONLYOFFICE, CodiMD, Microsoft Office Online). [web#5805](https://github.com/owncloud/web/pull/5805)
|
||||
- The 'Shared with me' page in ownCloud Web now clearly separates pending, declined and accepted shares. Pending shares are always displayed prominently so that users are aware and can react accordingly. [web#5814](https://github.com/owncloud/web/pull/5814)
|
||||
- Legacy URLs (e.g., from the address bar, public links) from ownCloud Classic are now properly resolved after migrating to Infinite Scale and Web [cs3org/reva#1089](https://github.com/cs3org/reva/pull/1989)
|
||||
- A capability for the Favorites feature has been added [ocis#2599](https://github.com/owncloud/ocis/pull/2599)
|
||||
|
||||
You can also read the full [ownCloud Infinite Scale changelog](https://github.com/owncloud/ocis/releases/tag/v1.13.0) and [ownCloud Web changelog](https://github.com/owncloud/web/releases/tag/v4.3.0) for further details on what has changed.
|
||||
|
||||
### Breaking changes
|
||||
{{< hint warning >}}
|
||||
We are currently in a Tech Preview state and breaking changes may occur at any time. For more information see our [release roadmap]({{< ref "./release_roadmap" >}})
|
||||
{{< /hint >}}
|
||||
|
||||
## ownCloud Infinite Scale 1.12.0 Technology Preview
|
||||
|
||||
Version 1.12.0 is a maintenance release with the foundations for the 'Spaces' feature and for viewer/editor application integrations. The Infinite Scale backend has been further hardened by fixing known issues, improving error handling and stabilizing existing features. Apart from bugfixing, ownCloud Web 4.2.0 has received a number of usability and design improvements for sharing and the file list.
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
glauthcfg "github.com/glauth/glauth/pkg/config"
|
||||
glauthcfg "github.com/glauth/glauth/v2/pkg/config"
|
||||
"github.com/oklog/run"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/glauth/pkg/config"
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"path"
|
||||
|
||||
"github.com/owncloud/ocis/glauth/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/config/defaults"
|
||||
"github.com/owncloud/ocis/ocis-pkg/flags"
|
||||
pkgos "github.com/owncloud/ocis/ocis-pkg/os"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ func HealthWithConfig(cfg *config.Config) []cli.Flag {
|
||||
return []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9129"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9129"),
|
||||
Usage: "Address to debug endpoint",
|
||||
EnvVars: []string{"GLAUTH_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -98,7 +98,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9129"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9129"),
|
||||
Usage: "Address to bind debug server",
|
||||
EnvVars: []string{"GLAUTH_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -132,7 +132,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "ldap-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Ldap.Addr, "0.0.0.0:9125"),
|
||||
Value: flags.OverrideDefaultString(cfg.Ldap.Addr, "127.0.0.1:9125"),
|
||||
Usage: "Address to bind ldap server",
|
||||
EnvVars: []string{"GLAUTH_LDAP_ADDR"},
|
||||
Destination: &cfg.Ldap.Addr,
|
||||
@@ -147,28 +147,28 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "ldaps-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Addr, "0.0.0.0:9126"),
|
||||
Usage: "Address to bind ldap server",
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Addr, "127.0.0.1:9126"),
|
||||
Usage: "Address to bind ldaps server",
|
||||
EnvVars: []string{"GLAUTH_LDAPS_ADDR"},
|
||||
Destination: &cfg.Ldaps.Addr,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "ldaps-enabled",
|
||||
Value: flags.OverrideDefaultBool(cfg.Ldaps.Enabled, true),
|
||||
Usage: "Enable ldap server",
|
||||
Usage: "Enable ldaps server",
|
||||
EnvVars: []string{"GLAUTH_LDAPS_ENABLED"},
|
||||
Destination: &cfg.Ldaps.Enabled,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "ldaps-cert",
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Cert, path.Join(pkgos.MustUserConfigDir("ocis", "ldap"), "ldap.crt")),
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Cert, path.Join(defaults.BaseDataPath(), "ldap", "ldap.crt")),
|
||||
Usage: "path to ldaps certificate in PEM format",
|
||||
EnvVars: []string{"GLAUTH_LDAPS_CERT"},
|
||||
Destination: &cfg.Ldaps.Cert,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "ldaps-key",
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Key, path.Join(pkgos.MustUserConfigDir("ocis", "ldap"), "ldap.key")),
|
||||
Value: flags.OverrideDefaultString(cfg.Ldaps.Key, path.Join(defaults.BaseDataPath(), "ldap", "ldap.key")),
|
||||
Usage: "path to ldaps key in PEM format",
|
||||
EnvVars: []string{"GLAUTH_LDAPS_KEY"},
|
||||
Destination: &cfg.Ldaps.Key,
|
||||
|
||||
@@ -3,8 +3,8 @@ package glauth
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/glauth/glauth/pkg/config"
|
||||
"github.com/glauth/glauth/pkg/handler"
|
||||
"github.com/glauth/glauth/v2/pkg/config"
|
||||
"github.com/glauth/glauth/v2/pkg/handler"
|
||||
"github.com/nmcclain/ldap"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
@@ -102,10 +102,15 @@ func (h chainHandler) Delete(boundDN string, deleteDN string, conn net.Conn) (re
|
||||
}
|
||||
|
||||
// FindUser with the given username. Called by the ldap backend to authenticate the bind. Optional
|
||||
func (h chainHandler) FindUser(userName string) (bool, config.User, error) {
|
||||
func (h chainHandler) FindUser(userName string, searchByUPN bool) (bool, config.User, error) {
|
||||
return false, config.User{}, nil
|
||||
}
|
||||
|
||||
// FindGroup is not yet supported for the chain backend
|
||||
func (h chainHandler) FindGroup(groupName string) (bool, config.Group, error) {
|
||||
return false, config.Group{}, nil
|
||||
}
|
||||
|
||||
// NewChainHandler implements a chain backend with two backends
|
||||
func NewChainHandler(log log.Logger, bh handler.Handler, fh handler.Handler) handler.Handler {
|
||||
return chainHandler{
|
||||
|
||||
@@ -8,15 +8,15 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/glauth/glauth/pkg/config"
|
||||
"github.com/glauth/glauth/pkg/handler"
|
||||
"github.com/glauth/glauth/pkg/stats"
|
||||
"github.com/glauth/glauth/v2/pkg/config"
|
||||
"github.com/glauth/glauth/v2/pkg/handler"
|
||||
"github.com/glauth/glauth/v2/pkg/stats"
|
||||
ber "github.com/nmcclain/asn1-ber"
|
||||
"github.com/nmcclain/ldap"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"go-micro.dev/v4/metadata"
|
||||
)
|
||||
|
||||
type queryType string
|
||||
@@ -527,10 +527,15 @@ func (h ocisHandler) Delete(boundDN string, deleteDN string, conn net.Conn) (res
|
||||
}
|
||||
|
||||
// FindUser with the given username
|
||||
func (h ocisHandler) FindUser(userName string) (found bool, user config.User, err error) {
|
||||
func (h ocisHandler) FindUser(userName string, searchByUPN bool) (found bool, user config.User, err error) {
|
||||
return false, config.User{}, nil
|
||||
}
|
||||
|
||||
// FindGroup with the given groupname
|
||||
func (h ocisHandler) FindGroup(groupName string) (found bool, user config.Group, err error) {
|
||||
return false, config.Group{}, nil
|
||||
}
|
||||
|
||||
// NewOCISHandler implements a glauth backend with ocis-accounts as the datasource
|
||||
func NewOCISHandler(opts ...Option) handler.Handler {
|
||||
options := newOptions(opts...)
|
||||
|
||||
@@ -3,7 +3,7 @@ package glauth
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/glauth/glauth/pkg/config"
|
||||
"github.com/glauth/glauth/v2/pkg/config"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/GeertJohan/yubigo"
|
||||
"github.com/glauth/glauth/pkg/config"
|
||||
"github.com/glauth/glauth/pkg/handler"
|
||||
"github.com/glauth/glauth/v2/pkg/config"
|
||||
"github.com/glauth/glauth/v2/pkg/handler"
|
||||
"github.com/go-logr/logr"
|
||||
"github.com/nmcclain/ldap"
|
||||
"github.com/owncloud/ocis/glauth/pkg/mlogr"
|
||||
|
||||
@@ -5,58 +5,58 @@ go 1.17
|
||||
require (
|
||||
github.com/CiscoM31/godata v1.0.4
|
||||
github.com/GeertJohan/yubigo v0.0.0-20190917122436-175bc097e60e
|
||||
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/logger/zerolog/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/registry/etcd/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/registry/kubernetes/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/registry/mdns/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/registry/nats/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/server/grpc/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/server/http/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/wrapper/breaker/gobreaker/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/wrapper/monitoring/prometheus/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/plugins/wrapper/trace/opencensus/v3 v3.0.0-20210812172626-c7195aae9817
|
||||
github.com/asim/go-micro/v3 v3.6.1-0.20210924081004-8c39b1e1204d
|
||||
github.com/blevesearch/bleve/v2 v2.1.0
|
||||
github.com/coreos/go-oidc/v3 v3.0.0
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20211007101428-6d142794ec11
|
||||
github.com/cs3org/reva v1.14.0
|
||||
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/logger/zerolog/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/registry/etcd/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/registry/kubernetes/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/registry/mdns/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/registry/nats/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/server/grpc/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/server/http/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/wrapper/breaker/gobreaker/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/wrapper/monitoring/prometheus/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/asim/go-micro/plugins/wrapper/trace/opencensus/v3 v3.0.0-20211012122208-f63e46a7d1e9
|
||||
github.com/blevesearch/bleve/v2 v2.2.1
|
||||
github.com/coreos/go-oidc/v3 v3.1.0
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20211018122138-391b29bd7803
|
||||
github.com/cs3org/reva v1.15.0
|
||||
github.com/disintegration/imaging v1.6.2
|
||||
github.com/glauth/glauth v1.1.3-0.20210729125545-b9aecdfcac31
|
||||
github.com/glauth/glauth/v2 v2.0.0-20211021011345-ef3151c28733
|
||||
github.com/go-chi/chi/v5 v5.0.4
|
||||
github.com/go-chi/cors v1.2.0
|
||||
github.com/go-chi/render v1.0.1
|
||||
github.com/go-logr/logr v0.4.0
|
||||
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
|
||||
github.com/gofrs/uuid v4.0.0+incompatible
|
||||
github.com/golang-jwt/jwt/v4 v4.0.0
|
||||
github.com/gofrs/uuid v4.1.0+incompatible
|
||||
github.com/golang-jwt/jwt/v4 v4.1.0
|
||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
|
||||
github.com/golang/protobuf v1.5.2
|
||||
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
|
||||
github.com/gorilla/mux v1.8.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.6.0
|
||||
github.com/iancoleman/strcase v0.2.0
|
||||
github.com/justinas/alice v1.2.0
|
||||
github.com/libregraph/lico v0.34.1-0.20210803054646-b584e0372224
|
||||
github.com/mennanov/fieldmask-utils v0.4.0
|
||||
github.com/libregraph/lico v0.51.1
|
||||
github.com/mennanov/fieldmask-utils v0.5.0
|
||||
github.com/mitchellh/mapstructure v1.4.2
|
||||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
|
||||
github.com/nmcclain/asn1-ber v0.0.0-20170104154839-2661553a0484
|
||||
github.com/nmcclain/ldap v0.0.0-20210720162743-7f8d1e44eeba
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/onsi/ginkgo v1.16.4
|
||||
github.com/onsi/ginkgo v1.16.5
|
||||
github.com/onsi/gomega v1.16.0
|
||||
github.com/owncloud/open-graph-api-go v0.0.0-20210511151655-57894f7d46fb
|
||||
github.com/owncloud/open-graph-api-go v0.0.0-20211018134924-bea0e2a6ec3e
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/prometheus/client_golang v1.11.0
|
||||
github.com/rs/zerolog v1.25.0
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
github.com/spf13/cobra v1.2.1
|
||||
github.com/spf13/viper v1.8.1
|
||||
github.com/spf13/viper v1.9.0
|
||||
github.com/stretchr/testify v1.7.0
|
||||
github.com/thejerf/suture/v4 v4.0.1
|
||||
github.com/urfave/cli/v2 v2.3.0
|
||||
github.com/yaegashi/msgraph.go v0.1.4
|
||||
go-micro.dev/v4 v4.2.1
|
||||
go.opencensus.io v0.23.0
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.25.0
|
||||
go.opentelemetry.io/otel v1.0.1
|
||||
@@ -64,12 +64,10 @@ require (
|
||||
go.opentelemetry.io/otel/sdk v1.0.1
|
||||
go.opentelemetry.io/otel/trace v1.0.1
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
|
||||
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
|
||||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
|
||||
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
|
||||
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84
|
||||
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
|
||||
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
|
||||
google.golang.org/genproto v0.0.0-20211019152133-63b7e35f4404
|
||||
google.golang.org/grpc v1.41.0
|
||||
google.golang.org/grpc/examples v0.0.0-20210802225658-edb9b3bc2266 // indirect
|
||||
google.golang.org/protobuf v1.27.1
|
||||
gotest.tools/v3 v3.0.3
|
||||
stash.kopano.io/kgol/rndm v1.1.1
|
||||
@@ -81,40 +79,40 @@ require (
|
||||
github.com/Masterminds/goutils v1.1.1 // indirect
|
||||
github.com/Masterminds/semver v1.5.0 // indirect
|
||||
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
|
||||
github.com/Microsoft/go-winio v0.5.0 // indirect
|
||||
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
|
||||
github.com/ReneKroon/ttlcache/v2 v2.8.1 // indirect
|
||||
github.com/RoaringBitmap/roaring v0.7.3 // indirect
|
||||
github.com/Microsoft/go-winio v0.5.1 // indirect
|
||||
github.com/ProtonMail/go-crypto v0.0.0-20210920160938-87db9fbc61c7 // indirect
|
||||
github.com/ReneKroon/ttlcache/v2 v2.9.0 // indirect
|
||||
github.com/RoaringBitmap/roaring v0.9.4 // indirect
|
||||
github.com/acomagu/bufpipe v1.0.3 // indirect
|
||||
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
|
||||
github.com/aws/aws-sdk-go v1.40.46 // indirect
|
||||
github.com/aws/aws-sdk-go v1.41.9 // indirect
|
||||
github.com/beevik/etree v1.1.0 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/bitly/go-simplejson v0.5.0 // indirect
|
||||
github.com/bits-and-blooms/bitset v1.2.0 // indirect
|
||||
github.com/bits-and-blooms/bitset v1.2.1 // indirect
|
||||
github.com/blevesearch/bleve_index_api v1.0.1 // indirect
|
||||
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
||||
github.com/blevesearch/mmap-go v1.0.2 // indirect
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.0.1 // indirect
|
||||
github.com/blevesearch/mmap-go v1.0.3 // indirect
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.1.0 // indirect
|
||||
github.com/blevesearch/segment v0.9.0 // indirect
|
||||
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
||||
github.com/blevesearch/upsidedown_store_api v1.0.1 // indirect
|
||||
github.com/blevesearch/vellum v1.0.5 // indirect
|
||||
github.com/blevesearch/zapx/v11 v11.2.2 // indirect
|
||||
github.com/blevesearch/zapx/v12 v12.2.2 // indirect
|
||||
github.com/blevesearch/zapx/v13 v13.2.2 // indirect
|
||||
github.com/blevesearch/zapx/v14 v14.2.2 // indirect
|
||||
github.com/blevesearch/zapx/v15 v15.2.2 // indirect
|
||||
github.com/blevesearch/vellum v1.0.7 // indirect
|
||||
github.com/blevesearch/zapx/v11 v11.3.1 // indirect
|
||||
github.com/blevesearch/zapx/v12 v12.3.1 // indirect
|
||||
github.com/blevesearch/zapx/v13 v13.3.1 // indirect
|
||||
github.com/blevesearch/zapx/v14 v14.3.1 // indirect
|
||||
github.com/blevesearch/zapx/v15 v15.3.1 // indirect
|
||||
github.com/bluele/gcache v0.0.2 // indirect
|
||||
github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40 // indirect
|
||||
github.com/bmizerany/pat v0.0.0-20210406213842-e4b6760bdd6f // indirect
|
||||
github.com/boombuler/barcode v1.0.1 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.1.1 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
||||
github.com/coreos/go-oidc v2.2.1+incompatible // indirect
|
||||
github.com/coreos/go-semver v0.3.0 // indirect
|
||||
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
|
||||
github.com/crewjam/httperr v0.2.0 // indirect
|
||||
github.com/crewjam/saml v0.4.3 // indirect
|
||||
github.com/crewjam/saml v0.4.5 // indirect
|
||||
github.com/cubewise-code/go-mime v0.0.0-20200519001935-8c5762b177d8 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/deckarep/golang-set v1.7.1 // indirect
|
||||
@@ -123,94 +121,99 @@ require (
|
||||
github.com/dustin/go-humanize v1.0.0 // indirect
|
||||
github.com/emirpasic/gods v1.12.0 // indirect
|
||||
github.com/eternnoir/gncp v0.0.0-20170707042257-c70df2d0cd68 // indirect
|
||||
github.com/fatih/color v1.9.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.4.9 // indirect
|
||||
github.com/fatih/color v1.13.0 // indirect
|
||||
github.com/fsnotify/fsnotify v1.5.1 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.0 // indirect
|
||||
github.com/gdexlab/go-render v1.0.1 // indirect
|
||||
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
|
||||
github.com/go-asn1-ber/asn1-ber v1.5.3 // indirect
|
||||
github.com/go-git/gcfg v1.5.0 // indirect
|
||||
github.com/go-git/go-billy/v5 v5.3.1 // indirect
|
||||
github.com/go-git/go-git/v5 v5.4.2 // indirect
|
||||
github.com/go-kit/log v0.1.0 // indirect
|
||||
github.com/go-kit/log v0.2.0 // indirect
|
||||
github.com/go-ldap/ldap/v3 v3.4.1 // indirect
|
||||
github.com/go-logfmt/logfmt v0.5.0 // indirect
|
||||
github.com/go-logfmt/logfmt v0.5.1 // indirect
|
||||
github.com/go-sql-driver/mysql v1.6.0 // indirect
|
||||
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/golang/snappy v0.0.1 // indirect
|
||||
github.com/golang/snappy v0.0.4 // indirect
|
||||
github.com/gomodule/redigo v1.8.5 // indirect
|
||||
github.com/google/go-cmp v0.5.6 // indirect
|
||||
github.com/google/go-querystring v1.1.0 // indirect
|
||||
github.com/google/uuid v1.3.0 // indirect
|
||||
github.com/gorilla/schema v1.1.0 // indirect
|
||||
github.com/gorilla/schema v1.2.0 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||
github.com/hashicorp/go-hclog v0.16.2 // indirect
|
||||
github.com/hashicorp/go-hclog v1.0.0 // indirect
|
||||
github.com/hashicorp/go-plugin v1.4.3 // indirect
|
||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
|
||||
github.com/hashicorp/yamux v0.0.0-20210826001029-26ff87cf9493 // indirect
|
||||
github.com/huandu/xstrings v1.3.2 // indirect
|
||||
github.com/imdario/mergo v0.3.12 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||
github.com/jonboulle/clockwork v0.2.1 // indirect
|
||||
github.com/json-iterator/go v1.1.11 // indirect
|
||||
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
|
||||
github.com/klauspost/cpuid v1.3.1 // indirect
|
||||
github.com/longsleep/go-metrics v0.0.0-20191013204616-cddea569b0ea // indirect
|
||||
github.com/jonboulle/clockwork v0.2.2 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/kevinburke/ssh_config v1.1.0 // indirect
|
||||
github.com/klauspost/compress v1.13.6 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
|
||||
github.com/longsleep/go-metrics v1.0.0 // indirect
|
||||
github.com/magiconair/properties v1.8.5 // indirect
|
||||
github.com/mattermost/xml-roundtrip-validator v0.0.0-20201213122252-bcd7e1b9601e // indirect
|
||||
github.com/mattn/go-colorable v0.1.8 // indirect
|
||||
github.com/mattn/go-isatty v0.0.12 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.9 // indirect
|
||||
github.com/mattn/go-sqlite3 v1.14.8 // indirect
|
||||
github.com/mattermost/xml-roundtrip-validator v0.1.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.11 // indirect
|
||||
github.com/mattn/go-isatty v0.0.14 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.13 // indirect
|
||||
github.com/mattn/go-sqlite3 v1.14.9 // indirect
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
||||
github.com/mendsley/gojwk v0.0.0-20141217222730-4d5ec6e58103 // indirect
|
||||
github.com/miekg/dns v1.1.43 // indirect
|
||||
github.com/mileusna/useragent v1.0.2 // indirect
|
||||
github.com/minio/md5-simd v1.1.0 // indirect
|
||||
github.com/minio/minio-go/v7 v7.0.14 // indirect
|
||||
github.com/minio/sha256-simd v0.1.1 // indirect
|
||||
github.com/minio/md5-simd v1.1.2 // indirect
|
||||
github.com/minio/minio-go/v7 v7.0.15 // indirect
|
||||
github.com/minio/sha256-simd v1.0.0 // indirect
|
||||
github.com/mitchellh/copystructure v1.2.0 // indirect
|
||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
||||
github.com/mitchellh/hashstructure v1.1.0 // indirect
|
||||
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.1 // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/mschoch/smat v0.2.0 // indirect
|
||||
github.com/nats-io/jwt v1.1.0 // indirect
|
||||
github.com/nats-io/nats.go v1.10.0 // indirect
|
||||
github.com/nats-io/nkeys v0.1.4 // indirect
|
||||
github.com/nats-io/jwt v1.2.2 // indirect
|
||||
github.com/nats-io/nats.go v1.13.0 // indirect
|
||||
github.com/nats-io/nkeys v0.3.0 // indirect
|
||||
github.com/nats-io/nuid v1.0.1 // indirect
|
||||
github.com/nxadm/tail v1.4.8 // indirect
|
||||
github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 // indirect
|
||||
github.com/orcaman/concurrent-map v0.0.0-20210501183033-44dafcb38ecc // indirect
|
||||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
|
||||
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
||||
github.com/pelletier/go-toml v1.9.3 // indirect
|
||||
github.com/pkg/xattr v0.4.3 // indirect
|
||||
github.com/pelletier/go-toml v1.9.4 // indirect
|
||||
github.com/pkg/xattr v0.4.4 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/pquerna/cachecontrol v0.1.0 // indirect
|
||||
github.com/pquerna/otp v1.3.0 // indirect
|
||||
github.com/prometheus/alertmanager v0.23.0 // indirect
|
||||
github.com/prometheus/client_model v0.2.0 // indirect
|
||||
github.com/prometheus/common v0.28.0 // indirect
|
||||
github.com/prometheus/procfs v0.6.0 // indirect
|
||||
github.com/prometheus/statsd_exporter v0.21.0 // indirect
|
||||
github.com/rickb777/date v1.12.4 // indirect
|
||||
github.com/rickb777/plural v1.2.0 // indirect
|
||||
github.com/prometheus/common v0.32.0 // indirect
|
||||
github.com/prometheus/procfs v0.7.3 // indirect
|
||||
github.com/prometheus/statsd_exporter v0.22.2 // indirect
|
||||
github.com/rickb777/date v1.16.1 // indirect
|
||||
github.com/rickb777/plural v1.4.1 // indirect
|
||||
github.com/rivo/uniseg v0.2.0 // indirect
|
||||
github.com/rs/cors v1.8.0 // indirect
|
||||
github.com/rs/xid v1.3.0 // indirect
|
||||
github.com/russellhaering/goxmldsig v1.1.0 // indirect
|
||||
github.com/russross/blackfriday/v2 v2.0.1 // indirect
|
||||
github.com/russellhaering/goxmldsig v1.1.1 // indirect
|
||||
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
||||
github.com/satori/go.uuid v1.2.0 // indirect
|
||||
github.com/sciencemesh/meshdirectory-web v1.0.4 // indirect
|
||||
github.com/sergi/go-diff v1.1.0 // indirect
|
||||
github.com/sergi/go-diff v1.2.0 // indirect
|
||||
github.com/sethvargo/go-password v0.2.0 // indirect
|
||||
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
|
||||
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
|
||||
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect
|
||||
github.com/sony/gobreaker v0.4.1 // indirect
|
||||
github.com/spf13/afero v1.6.0 // indirect
|
||||
github.com/spf13/cast v1.3.1 // indirect
|
||||
github.com/spf13/cast v1.4.1 // indirect
|
||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/steveyen/gtreap v0.1.0 // indirect
|
||||
@@ -218,28 +221,29 @@ require (
|
||||
github.com/subosito/gotenv v1.2.0 // indirect
|
||||
github.com/tus/tusd v1.6.0 // indirect
|
||||
github.com/wk8/go-ordered-map v0.2.0 // indirect
|
||||
github.com/xanzy/ssh-agent v0.3.0 // indirect
|
||||
go.etcd.io/bbolt v1.3.5 // indirect
|
||||
go.etcd.io/etcd/api/v3 v3.5.0 // indirect
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect
|
||||
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
|
||||
go.uber.org/atomic v1.7.0 // indirect
|
||||
go.uber.org/multierr v1.6.0 // indirect
|
||||
go.uber.org/zap v1.17.0 // indirect
|
||||
github.com/xanzy/ssh-agent v0.3.1 // indirect
|
||||
go.etcd.io/bbolt v1.3.6 // indirect
|
||||
go.etcd.io/etcd/api/v3 v3.5.1 // indirect
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
|
||||
go.etcd.io/etcd/client/v3 v3.5.1 // indirect
|
||||
go.uber.org/atomic v1.9.0 // indirect
|
||||
go.uber.org/multierr v1.7.0 // indirect
|
||||
go.uber.org/zap v1.19.1 // indirect
|
||||
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
|
||||
golang.org/x/sys v0.0.0-20210921065528-437939a70204 // indirect
|
||||
golang.org/x/text v0.3.6 // indirect
|
||||
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
|
||||
golang.org/x/tools v0.1.5 // indirect
|
||||
golang.org/x/sys v0.0.0-20211020064051-0ec99a608a1b // indirect
|
||||
golang.org/x/text v0.3.7 // indirect
|
||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
|
||||
golang.org/x/tools v0.1.7 // indirect
|
||||
google.golang.org/appengine v1.6.7 // indirect
|
||||
gopkg.in/ini.v1 v1.62.0 // indirect
|
||||
gopkg.in/ini.v1 v1.63.2 // indirect
|
||||
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
||||
stash.kopano.io/kgol/kcc-go/v5 v5.0.1 // indirect
|
||||
stash.kopano.io/kgol/oidc-go v0.3.1 // indirect
|
||||
stash.kopano.io/kgol/oidc-go v0.3.2 // indirect
|
||||
)
|
||||
|
||||
// this is a transitive replace. See https://github.com/libregraph/lico/blob/master/go.mod#L38
|
||||
|
||||
@@ -22,11 +22,10 @@ docs-generate: config-docs-generate
|
||||
include ../.make/generate.mk
|
||||
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate: pull-assets # CI runs ci-node-generate automatically before this target
|
||||
@go generate ./...
|
||||
ci-go-generate: # CI runs ci-node-generate automatically before this target
|
||||
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate:
|
||||
ci-node-generate: pull-assets
|
||||
|
||||
.PHONY: pull-assets
|
||||
pull-assets:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package graphexplorer
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed assets/*
|
||||
var Assets embed.FS
|
||||
@@ -1,37 +0,0 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
|
||||
//go:generate make -C ../.. embed.yml
|
||||
|
||||
// assets gets initialized by New and provides the handler.
|
||||
type assets struct {
|
||||
logger log.Logger
|
||||
config *config.Config
|
||||
}
|
||||
|
||||
// Open just implements the HTTP filesystem interface.
|
||||
func (a assets) Open(original string) (http.File, error) {
|
||||
return FS.OpenFile(
|
||||
CTX,
|
||||
original,
|
||||
os.O_RDONLY,
|
||||
0644,
|
||||
)
|
||||
}
|
||||
|
||||
// New returns a new http filesystem to serve assets.
|
||||
func New(opts ...Option) http.FileSystem {
|
||||
options := newOptions(opts...)
|
||||
|
||||
return assets{
|
||||
logger: options.Logger,
|
||||
config: options.Config,
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
// Fake the import to make the dep tree happy.
|
||||
_ "golang.org/x/net/context"
|
||||
|
||||
// Fake the import to make the dep tree happy.
|
||||
_ "golang.org/x/net/webdav"
|
||||
)
|
||||
@@ -1,499 +0,0 @@
|
||||
// Code generated by fileb0x at "2020-01-28 11:42:09.475012908 +0100 CET m=+0.233285271" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(ae45a1fc619355ab448dd606f793c866.3ac67e8f72e8fe6c33092b02c88c0c1a)
|
||||
|
||||
package assets
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"golang.org/x/net/webdav"
|
||||
)
|
||||
|
||||
var (
|
||||
// CTX is a context for webdav vfs
|
||||
CTX = context.Background()
|
||||
|
||||
// FS is a virtual memory file system
|
||||
FS = webdav.NewMemFS()
|
||||
|
||||
// Handler is used to server files through a http handler
|
||||
Handler *webdav.Handler
|
||||
|
||||
// HTTP is the http file system
|
||||
HTTP http.FileSystem = new(HTTPFS)
|
||||
)
|
||||
|
||||
// HTTPFS implements http.FileSystem
|
||||
type HTTPFS struct {
|
||||
// Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
|
||||
Prefix string
|
||||
}
|
||||
|
||||
// FileDistExplorerJs is "dist/explorer.js"
|
||||
var FileDistExplorerJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x79\x7f\x1b\x37\x96\x30\x0a\x7f\x95\x52\x3d\x79\x99\xc2\x10\xe6\x48\xe9\x6d\x86\x34\x46\xed\x78\x49\xd4\xb1\x2d\x47\x92\xb3\x34\xc3\xd1\x53\x22\x41\xa9\x22\x0a\x60\x50\xa0\x64\x59\xac\xef\xfe\xfe\xb0\x2f\x85\x22\x29\xc7\xd3\x73\x73\x7f\x37\x7f\xc4\x22\x0a\x3b\x0e\xce\x39\x38\xeb\xde\x7c\x45\xa6\xbc\xa2\xa4\x00\x0f\xf9\xaa\xc6\x59\xcd\x59\x35\xe5\xf9\xe8\xb6\x64\x19\x46\xf9\x8a\xcc\xf0\xbc\x22\x78\x96\xef\x21\x7e\xbf\xc4\x74\x9e\xdd\x55\x64\x46\xef\x0e\xd5\x3f\xc3\x54\x8d\xcb\x05\xbd\x28\x17\x87\xea\x9f\x64\x8d\x1a\x2f\xe6\x87\xe2\x7f\xc3\x87\x66\x64\xa6\x90\xf1\x02\x43\x0e\x1e\x18\xe6\x2b\x46\x32\x5c\x70\xf4\x80\x3f\x2c\x29\xe3\xf5\xf0\xa1\x69\x20\x1f\xe8\x5f\xc0\xfd\xd9\x88\x79\x92\x0d\xf3\xec\xf5\xd4\xbf\x90\x25\x2b\x89\x39\xf4\x7a\xa9\x2f\x3f\x52\x76\x8d\xd9\x37\x72\x0d\xa7\x53\xba\xc4\xbd\x9e\xa8\x9c\x55\xa4\xe6\x25\x99\x6e\xa8\x02\x29\x22\xeb\xf5\x2d\xad\x66\xd9\xfe\x1e\x42\xb8\xd7\xc3\xeb\x35\x83\x15\xa2\x23\x7f\xbb\xab\x79\xb1\x47\x01\xbf\x62\xf4\x2e\x23\xf8\x2e\x7b\xc9\x18\x65\x45\x7e\xf2\xe1\x1f\xa7\xd9\x94\xae\x16\xb3\x8c\x50\x9e\xcd\x2b\x32\xcb\x4a\x72\xaf\x37\x35\x9b\x52\xc2\xf1\x07\x9e\x15\x7a\x59\x72\x05\x50\x7f\x05\x39\x68\x0a\x20\xcf\x6e\x89\x1e\x18\xa5\x7c\x58\x35\xf2\xe7\x14\x3d\x54\xf5\x2b\x3d\xf8\xd0\xce\x02\x9b\xdd\xce\x4d\x51\x8e\xcc\x06\xe0\xa6\x81\x33\xd1\xec\x19\x63\xe5\xfd\x50\xfe\x7f\xa0\x7f\xad\xd7\xed\x2e\x32\xdc\xeb\xe5\x64\x75\x73\x81\x99\xd7\xc9\x60\x81\xc9\x25\xbf\x6a\xd4\x34\x4a\x78\x25\x7a\x3c\xbe\xf8\x15\x4f\x79\x62\x1a\x19\x59\x2d\x16\x7b\x62\xcb\x72\x2a\xeb\x84\xd3\x99\xa3\x07\x2c\x76\x49\xb7\x7f\xc0\x02\x2e\x3c\x00\xaa\x0b\xf0\xc0\xd9\xbd\xe9\xac\x1c\x94\xcb\xe5\xe2\xbe\xe0\x57\x55\x0d\x4b\x76\xb9\xba\xc1\x84\xd7\xa0\x99\x96\x7c\x7a\xe5\x0d\x3a\x1f\x78\xbd\x0e\x30\xc2\x30\x28\x69\x24\x90\xdd\x20\xd1\xf5\x73\xd1\x34\x35\xf1\x12\x61\x58\x37\x0d\x5c\xc8\xf3\x1e\x9c\x9f\xe3\x0f\x1c\x93\x59\xed\xef\x94\x00\xee\x39\x65\x85\x84\xd9\xac\x22\x19\x07\x7c\x70\x55\xd6\xc7\x77\xe4\x1d\xa3\x4b\xcc\xf8\x7d\x41\x40\xaf\x57\xe0\x31\x99\x20\x3e\x26\x13\xe0\xd6\xc6\xc4\xda\xae\xaa\x7a\x30\xa5\xa4\xe6\x6c\x35\xe5\x94\x21\xdc\xe0\xc1\x92\x51\x4e\xc5\x26\x21\xb1\x79\x08\x21\x7e\xa8\x57\x32\x65\xb8\xe4\xb8\xe0\x60\x58\x30\xaf\x1a\x77\x7f\x43\x01\x78\x0c\x34\xf0\x1e\x3d\xbc\x27\xf5\xea\xa2\x9e\xb2\x6a\x29\xc6\x93\xd0\xe8\x16\x4a\xc0\x83\x9d\x09\x16\xcb\x26\x83\x69\xb9\x58\xc8\xad\x05\x50\xce\x4b\xee\x58\x8d\xb0\x3c\x68\x8e\x64\x07\xae\x12\xc4\x87\x06\x16\xfa\x79\xa6\xea\x66\x74\x3a\x5d\x31\x86\x67\xd9\x6c\xc5\x2a\x72\x99\xad\x82\x29\x0c\x7f\x21\x59\x96\xf7\xf1\xe0\xa6\x5c\x16\xe1\x2e\xea\x4d\xe7\xfd\x83\x7e\x0e\x64\x1d\x4e\x4f\xb9\xe8\xa3\x00\x0d\x18\xfc\x4a\x2b\x52\xe4\xb2\x39\x18\xe6\x39\x18\xc9\x09\x92\xf2\x46\x2c\x5e\xfe\x93\x27\x56\x9b\xab\x75\xd4\xbc\x9c\x5e\x23\xae\xfe\x55\x45\x37\xb8\xae\xcb\x4b\xd1\x58\xff\xd5\xe8\x09\x2c\x0a\x0c\x09\x80\xb8\x29\x64\x0f\xc0\x83\xc5\x4b\xff\x66\x0c\x18\x9e\xad\xa6\x38\xbd\x0a\x2c\x8e\x74\x5a\xf2\x82\xfb\xc8\xe5\x7e\x90\x98\xe2\x21\xd7\xdb\x3c\xe4\xa0\x81\xe3\x09\x90\xa0\xb9\x42\x0f\xa7\xfe\xbe\x79\x48\xc6\x03\x1f\x6c\xe0\x67\x41\x6b\x3c\x43\x7b\x07\x6a\x6d\xe7\xcb\x92\x61\xc2\x25\xf0\x04\x25\xb5\x5f\xe4\xcf\x44\x7f\xc0\xbd\x5e\xa1\x3e\xda\x63\xbb\xc0\x08\xab\x29\xe1\x91\x5e\x9c\x07\x78\x03\xbf\x9e\x37\x47\x59\x1f\x72\xb4\x77\x30\x12\x38\xd1\x9b\xa4\xfa\x46\x90\x3f\x2d\xc8\x82\x9f\x35\xa4\xa8\x35\x0b\x58\xa1\xc4\xb4\x47\xc1\xf2\xf7\x7f\xdf\xf2\x47\xe6\x22\x97\xe8\xc9\x01\xac\x11\x3b\x64\x1a\xbc\x87\xfb\x23\x32\x02\x64\xc0\xf0\x0d\xbd\xc5\xfa\x86\x10\xd4\xef\x97\x4f\xeb\x5e\x8f\x8d\xcb\xc9\x7a\x2d\x7b\xa8\xe6\xc5\x74\xe0\xb0\x72\x41\x01\xb8\x19\x18\x1c\x53\x50\xe0\xdd\x30\x84\x50\x80\x92\xc4\xd6\x8b\x25\x60\x84\xd7\xeb\x22\xc2\x5f\xdb\xa1\xe8\x32\x6e\xa2\xa1\x0a\x0c\xc7\xd1\x87\x09\x00\x62\x9e\x33\x83\xf8\x8b\x0a\x00\xb1\x72\xbd\xea\x4a\xaf\x79\x24\x57\x37\x52\xe7\xb5\x40\xd5\xb8\x9c\x88\x66\x57\x03\x83\xeb\x8b\x05\x00\xd5\xbc\xf0\xd6\xb7\xf0\xc1\x41\xaf\x75\xd1\x5a\x28\x78\x70\xeb\x1c\x4f\x46\x0a\xda\xa3\x39\x8e\x56\xdb\x57\x8c\x91\xbd\x65\x97\xc5\xca\x2c\x17\x0c\xf1\x60\xb9\xaa\xaf\x8a\x15\x68\x9a\x6a\x5e\x70\x8f\x1c\x27\xfb\x29\x30\x68\x1a\xe8\xc3\x74\x39\x9b\x21\x9f\x1c\x08\x08\xc6\xeb\x35\x46\x08\xb1\xc1\xcb\x37\xef\xce\x7e\x06\xf6\x26\xc8\x9f\x62\x5f\xc4\x57\x79\xae\x06\x8f\x5d\x55\xb5\x46\x9b\x78\x54\xdf\x55\x62\x7f\x0c\xd9\x03\x0f\xd3\xb2\xc6\x8e\x3e\x0f\x39\x92\x48\xbb\xc0\x60\x24\xbf\x68\x42\x39\x14\xf3\xd7\xd0\xbd\x5e\xbb\xfa\x96\xa1\xe1\xc1\x86\x9b\x91\xc5\x74\xfc\x1b\x67\xca\xfd\xca\x05\x80\xb2\x5e\xb2\xd3\xf3\x72\x36\x7b\x27\x6f\x8c\xbd\xad\xa3\x42\xcf\x11\xc4\x37\x67\x4c\x26\xcd\x05\xc3\xe5\xf5\x68\x86\xe7\xe5\x6a\xc1\x87\x2d\xfe\x67\x45\x18\x9e\xd2\x4b\x52\x7d\xc4\xb3\x8c\xe3\x92\xcd\xe8\x1d\x11\x28\xbe\x9f\x67\xe5\x6c\x26\x0a\x69\xe6\xa3\xbb\x41\x0e\x34\x3a\x2e\x12\x97\x75\xbd\x4e\x95\xa2\xf1\x04\x00\x75\xf4\x5c\x70\x93\x6e\x11\x86\xa2\x85\xa7\xac\xee\x72\x70\xd0\xea\xb8\x52\x68\x46\x02\x92\xd9\x8b\x41\x45\x66\xf8\xc3\xf1\x5c\x1c\xd7\x93\x83\x3d\x84\x48\xLine truncated
|
||||
|
||||
// FileDistExplorerJsMap is "dist/explorer.js.map"
|
||||
var FileDistExplorerJsMap = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x7d\x7b\xdb\x36\xd2\x28\x0e\x7f\x15\xc4\xf7\x7d\x22\x39\x91\xa5\x24\x3d\xbb\xfb\x1c\xa7\x6e\xe3\x4d\xd3\xae\xf7\x34\x71\x9f\xc4\xdd\x9e\xbd\x6d\x5f\x36\x44\x42\x12\x62\x8a\xe0\x12\x94\x6d\x35\xf1\x77\xff\x5d\x18\xbc\xbf\x90\xa2\x12\xb7\xfb\x72\x25\x7f\xb4\x16\x01\x0c\x06\x83\xc1\x60\x30\x18\xcc\x7c\xd8\xb9\x26\x35\xa7\xac\xdc\xd9\xff\x6a\xb4\x33\xa3\x05\xd9\xd9\xdf\x21\xb7\x55\xc1\x6a\x52\x8f\xdf\xf3\x9d\xd1\x0e\x67\xab\x3a\x23\x7c\x67\xff\x74\x67\x3c\x9e\x94\x2c\x27\x17\x4b\x96\xaf\x0a\xc2\x27\xf5\xed\x7b\x3e\x59\x35\xb4\x98\xd4\x8c\x35\xb2\x7a\x7b\x1d\xca\xbf\x5f\x95\x59\x43\x59\xb9\xb9\xe6\x61\x5d\xe3\xf5\xe6\x6a\xc7\xd3\xf7\x24\xdb\xd8\x71\x53\xaf\x5f\xe2\x26\x5b\x6c\xaa\x47\xea\x9a\xd5\xfd\x40\xfe\x5c\xf2\xd5\x94\x67\x35\xad\xc4\x78\x5e\x89\x86\x1d\x4d\xde\x39\x75\x3b\xaa\x1d\x4f\x39\xa9\xaf\x49\x17\x24\xbe\x5e\x4e\x59\x31\xa9\x6f\x15\xc8\x69\x67\xed\x5e\x95\x24\x89\x58\xaf\xba\xaa\x7b\x06\x88\xe2\x69\x41\x36\xc1\x2d\x19\xab\x36\xd5\xa9\x68\xd5\x05\xe7\xb8\x4f\x67\x16\xa3\xc9\xbb\x0c\x17\xb8\xde\xb6\xd5\xab\x65\xd5\xac\x7b\x35\x52\xac\xf7\x2e\x5b\x10\xf1\xb5\x8b\x5c\x0e\x7c\x60\xe8\x6d\xe0\x43\x83\x1f\xe9\x55\x8f\xaa\x3f\xd5\x6c\x49\x79\x57\x45\x35\x6f\xb4\x21\x35\x6e\x3a\x59\xf5\xa8\x2c\x49\xdd\x9f\x6f\xb8\xae\x79\xc2\xde\x12\xbe\x2a\xba\x16\xce\xf1\xaa\xe9\x09\x9a\x55\x12\x4f\x3e\x59\x92\x7a\x4e\x5e\xe3\x8d\x3c\x44\x73\x52\x36\xb4\xe9\x12\x19\x01\xd0\xc3\xa2\xe8\x37\x73\x50\x7b\x53\xff\x52\x6a\x18\xa9\x30\x25\x79\x0f\x99\x20\x9a\xf4\x14\x0d\xaa\x76\xaf\xe1\xd5\x64\xf6\x92\xad\xca\xce\xca\x76\x78\x2f\x59\x59\x92\xac\x11\x7f\xf7\x5b\x33\x96\x8c\xab\xa2\xa1\x19\xe6\xfd\xb0\xe2\x0b\x5c\xf7\x81\xdb\x55\xf1\x05\x2e\xe7\xab\x02\xd7\x93\x8c\xd5\xc4\xff\x35\x26\xfc\x0f\x1b\x1b\x2d\x97\xac\x0c\x7f\xf7\x68\x58\x15\xb8\x99\xb1\x7a\xb9\x37\xad\xd9\x0d\x27\x75\x7b\x49\x0f\x60\xb8\xa4\x4b\x2c\x66\x3b\xf9\xed\xb3\x01\x4c\xfa\x63\xd2\x7f\x58\xbd\x10\x0c\x19\xeb\x7b\x56\x5f\xfd\x95\xd1\x72\x5b\x49\x3c\x53\xed\xfa\xd5\x56\xb2\x6f\xeb\x4e\x6a\xb6\xdc\x2c\x36\x1d\x5e\xef\x14\x41\x86\x77\x5b\xab\x19\xd2\x0a\xb2\x86\x3f\x7b\xcc\xd5\xa2\x69\x2a\xff\x97\xd7\x88\xd7\xd9\x04\x57\xd5\x04\x67\x64\x4f\xc8\x23\x1e\x95\xf0\x8c\x55\x84\xef\xe5\x14\x17\x6c\xae\x7e\x45\x95\x44\xd3\x18\xe6\xaa\x59\x08\xe1\x9a\x01\x03\xc0\xcf\xa8\x4e\xc3\xae\x48\x19\xc3\x9b\x62\x87\xbc\x06\x5e\x45\xf7\xb4\x86\xb9\xf7\x9e\x93\x9c\xba\x3b\x92\xae\x55\xb0\xec\x82\x37\x35\x2d\xe7\x31\xd8\x82\x65\xb8\xa0\xbf\x02\x3e\x7b\x0b\x52\x54\xa4\x8e\x2b\xcd\x6b\x5c\x2d\xf6\xc4\x84\xd3\x2c\x46\x42\x95\x36\xf5\x2a\x6b\x56\x75\x5c\x5e\x13\x5e\xb1\x92\x93\xbd\x05\x2e\xf3\x22\x05\xff\x1f\x2b\x52\xaf\xf7\xea\x95\xd8\x2f\xc7\x6d\xdd\x2c\x28\x6f\x58\xbd\x9e\x2c\xc4\xa4\xe1\xfa\xe7\x14\x7d\x7f\x10\xa8\xbc\x52\x04\x79\xc9\x96\x15\x2b\x89\x23\xbc\x0d\xc6\xa4\x24\x35\xcd\xf6\x96\x84\x73\x3c\x27\x6a\x26\xc7\x59\x6b\x03\xd3\xb7\xfc\x7f\x62\x1e\xaa\x8e\xd6\x33\x3c\x15\xbd\x99\x0a\x31\x01\x70\x4d\xf1\x1e\x27\x05\xc9\x1a\x92\x8f\x73\x5a\x93\xac\xa1\xd7\x31\x0d\x52\x9c\xb7\x19\xfb\x04\xd7\xd9\x9f\xfd\xdb\x15\x6c\xce\x56\x4d\x47\xfd\x0c\x97\xb8\x5e\xab\xff\x75\xd4\x3b\xac\xe8\x4b\x5c\x14\xdf\x51\x5e\x15\x78\xfd\x97\x16\xa6\x0b\x68\xbe\x57\xe1\x92\x14\x1d\x50\x81\x89\x6a\x76\x63\xfe\xe8\x3f\x9f\x7b\xd0\xa4\x8b\x12\xfe\x3a\xbb\xa6\xe4\x86\xc4\xeb\x6c\x89\x69\xb9\x97\xb1\x62\xb5\x2c\xdd\xbf\x3b\xe0\x2e\x49\xb3\x60\xf9\xde\x14\xe7\x73\xd2\x51\xad\x26\xff\x58\x11\xde\xec\xc9\xf5\xcd\x3b\x6b\xaa\xb5\xc6\x1b\xdc\xac\xf8\xde\x14\xd7\xa9\x6f\x1d\x10\xe6\xa4\x69\x68\x39\x17\x95\xeb\x86\xe4\x40\x1a\x9a\x90\x6f\xb0\x86\x70\x43\x74\x05\xf1\xa1\xb5\x32\xc7\xcb\xaa\x20\x7b\x19\x6e\xc8\x9c\x41\xed\xe8\xcb\xc6\xf9\x05\x5d\x66\xaf\xa0\xe5\x95\xf3\xe7\xde\xb4\xe9\xa2\x2f\xa7\x39\x11\x24\x50\xff\xef\x9c\xe1\x6a\x2c\x77\x0a\xbf\x88\x35\x1b\x00\x65\x9c\x8f\xf9\x82\x2e\xc7\xe5\x9c\x37\xeb\x96\xe6\x6d\x2b\xa3\x9c\xcf\x70\x16\x4b\x94\x0d\xad\x7a\x75\xd9\xc2\x5a\xdd\x3d\xb6\x34\xea\xd5\x61\xd7\xfa\xeb\xee\xb5\xab\x65\xaf\xae\x37\x2d\xe7\xee\xee\xfb\x8a\xc7\xfb\x81\xd2\x6b\x40\xed\xec\xd6\x8d\x44\x9f\x35\xf2\xf9\x10\x7a\x0d\xa1\x5d\x66\x75\x23\xd0\xde\xae\x67\xb7\xdb\x0a\xc0\x4d\xe8\x6c\x0b\xaf\xdf\xea\xdc\xb8\x55\x6c\x58\xa8\x1b\xdb\x7f\xd2\xc2\x09\x65\x70\x37\x12\x9b\x5a\xf7\x63\xf5\x4f\xd8\x1a\x36\xb0\xf0\x27\x40\xec\x87\x6a\x2f\xed\x6b\x03\x72\xbd\x60\xf4\x42\x67\xa3\x16\xbb\x41\x60\x79\x3a\xeb\xe6\xba\x6a\x77\x4c\x57\x14\x3c\x28\x3e\x9c\x1b\x1b\xf7\x4b\x56\x36\xa4\x6c\x76\xf6\x4f\x77\xce\x76\x56\x9c\x20\x71\x02\xc9\x9a\xb3\x9d\xe7\x67\xe5\x64\x82\x5e\x82\xc1\xe0\xaf\xef\xd0\x04\xbd\x61\x39\x41\x0b\x7c\x4d\xd0\xbc\x60\x53\x5c\xa0\x4c\x34\xbd\x6d\x10\xb9\xad\x18\x27\x39\xc2\x1c\x9d\xed\xc8\xb2\xb3\x1d\x74\x2d\x94\x65\x71\x38\x05\x38\xbf\x10\x94\xb3\x72\xd0\xa0\x1b\x5c\x36\xa8\x61\x88\x96\x59\xb1\xca\x09\x6a\x16\x04\xdd\x2c\x58\x41\x90\x38\x05\x8e\xf3\x71\xc3\x51\xb3\xa0\xea\x3f\x62\xe0\xb4\x00\xd9\x8c\x56\x25\x6d\x10\x67\xe8\x86\x0c\x8a\x02\xbd\x5f\xf1\x06\xcd\xf0\x15\x01\xf0\x02\x8a\xc2\xca\x47\x01\xcd\x58\x8d\x4a\x76\x33\x3Line truncated
|
||||
|
||||
// FileDistExplorerV1710Js is "dist/explorer_v1.7.10.js"
|
||||
var FileDistExplorerV1710Js = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x79\x7f\x1b\x37\x96\x30\x0a\x7f\x95\x52\x3d\x79\x99\xc2\x10\xe6\x48\xe9\x6d\x86\x34\x46\xed\x78\x49\xd4\xb1\x2d\x47\x92\xb3\x34\xc3\xd1\x53\x22\x41\xa9\x22\x0a\x60\x50\xa0\x64\x59\xac\xef\xfe\xfe\xb0\x2f\x85\x22\x29\xc7\xd3\x73\x73\x7f\x37\x7f\xc4\x22\x0a\x3b\x0e\xce\x39\x38\xeb\xde\x7c\x45\xa6\xbc\xa2\xa4\x00\x0f\xf9\xaa\xc6\x59\xcd\x59\x35\xe5\xf9\xe8\xb6\x64\x19\x46\xf9\x8a\xcc\xf0\xbc\x22\x78\x96\xef\x21\x7e\xbf\xc4\x74\x9e\xdd\x55\x64\x46\xef\x0e\xd5\x3f\xc3\x54\x8d\xcb\x05\xbd\x28\x17\x87\xea\x9f\x64\x8d\x1a\x2f\xe6\x87\xe2\x7f\xc3\x87\x66\x64\xa6\x90\xf1\x02\x43\x0e\x1e\x18\xe6\x2b\x46\x32\x5c\x70\xf4\x80\x3f\x2c\x29\xe3\xf5\xf0\xa1\x69\x20\x1f\xe8\x5f\xc0\xfd\xd9\x88\x79\x92\x0d\xf3\xec\xf5\xd4\xbf\x90\x25\x2b\x89\x39\xf4\x7a\xa9\x2f\x3f\x52\x76\x8d\xd9\x37\x72\x0d\xa7\x53\xba\xc4\xbd\x9e\xa8\x9c\x55\xa4\xe6\x25\x99\x6e\xa8\x02\x29\x22\xeb\xf5\x2d\xad\x66\xd9\xfe\x1e\x42\xb8\xd7\xc3\xeb\x35\x83\x15\xa2\x23\x7f\xbb\xab\x79\xb1\x47\x01\xbf\x62\xf4\x2e\x23\xf8\x2e\x7b\xc9\x18\x65\x45\x7e\xf2\xe1\x1f\xa7\xd9\x94\xae\x16\xb3\x8c\x50\x9e\xcd\x2b\x32\xcb\x4a\x72\xaf\x37\x35\x9b\x52\xc2\xf1\x07\x9e\x15\x7a\x59\x72\x05\x50\x7f\x05\x39\x68\x0a\x20\xcf\x6e\x89\x1e\x18\xa5\x7c\x58\x35\xf2\xe7\x14\x3d\x54\xf5\x2b\x3d\xf8\xd0\xce\x02\x9b\xdd\xce\x4d\x51\x8e\xcc\x06\xe0\xa6\x81\x33\xd1\xec\x19\x63\xe5\xfd\x50\xfe\x7f\xa0\x7f\xad\xd7\xed\x2e\x32\xdc\xeb\xe5\x64\x75\x73\x81\x99\xd7\xc9\x60\x81\xc9\x25\xbf\x6a\xd4\x34\x4a\x78\x25\x7a\x3c\xbe\xf8\x15\x4f\x79\x62\x1a\x19\x59\x2d\x16\x7b\x62\xcb\x72\x2a\xeb\x84\xd3\x99\xa3\x07\x2c\x76\x49\xb7\x7f\xc0\x02\x2e\x3c\x00\xaa\x0b\xf0\xc0\xd9\xbd\xe9\xac\x1c\x94\xcb\xe5\xe2\xbe\xe0\x57\x55\x0d\x4b\x76\xb9\xba\xc1\x84\xd7\xa0\x99\x96\x7c\x7a\xe5\x0d\x3a\x1f\x78\xbd\x0e\x30\xc2\x30\x28\x69\x24\x90\xdd\x20\xd1\xf5\x73\xd1\x34\x35\xf1\x12\x61\x58\x37\x0d\x5c\xc8\xf3\x1e\x9c\x9f\xe3\x0f\x1c\x93\x59\xed\xef\x94\x00\xee\x39\x65\x85\x84\xd9\xac\x22\x19\x07\x7c\x70\x55\xd6\xc7\x77\xe4\x1d\xa3\x4b\xcc\xf8\x7d\x41\x40\xaf\x57\xe0\x31\x99\x20\x3e\x26\x13\xe0\xd6\xc6\xc4\xda\xae\xaa\x7a\x30\xa5\xa4\xe6\x6c\x35\xe5\x94\x21\xdc\xe0\xc1\x92\x51\x4e\xc5\x26\x21\xb1\x79\x08\x21\x7e\xa8\x57\x32\x65\xb8\xe4\xb8\xe0\x60\x58\x30\xaf\x1a\x77\x7f\x43\x01\x78\x0c\x34\xf0\x1e\x3d\xbc\x27\xf5\xea\xa2\x9e\xb2\x6a\x29\xc6\x93\xd0\xe8\x16\x4a\xc0\x83\x9d\x09\x16\xcb\x26\x83\x69\xb9\x58\xc8\xad\x05\x50\xce\x4b\xee\x58\x8d\xb0\x3c\x68\x8e\x64\x07\xae\x12\xc4\x87\x06\x16\xfa\x79\xa6\xea\x66\x74\x3a\x5d\x31\x86\x67\xd9\x6c\xc5\x2a\x72\x99\xad\x82\x29\x0c\x7f\x21\x59\x96\xf7\xf1\xe0\xa6\x5c\x16\xe1\x2e\xea\x4d\xe7\xfd\x83\x7e\x0e\x64\x1d\x4e\x4f\xb9\xe8\xa3\x00\x0d\x18\xfc\x4a\x2b\x52\xe4\xb2\x39\x18\xe6\x39\x18\xc9\x09\x92\xf2\x46\x2c\x5e\xfe\x93\x27\x56\x9b\xab\x75\xd4\xbc\x9c\x5e\x23\xae\xfe\x55\x45\x37\xb8\xae\xcb\x4b\xd1\x58\xff\xd5\xe8\x09\x2c\x0a\x0c\x09\x80\xb8\x29\x64\x0f\xc0\x83\xc5\x4b\xff\x66\x0c\x18\x9e\xad\xa6\x38\xbd\x0a\x2c\x8e\x74\x5a\xf2\x82\xfb\xc8\xe5\x7e\x90\x98\xe2\x21\xd7\xdb\x3c\xe4\xa0\x81\xe3\x09\x90\xa0\xb9\x42\x0f\xa7\xfe\xbe\x79\x48\xc6\x03\x1f\x6c\xe0\x67\x41\x6b\x3c\x43\x7b\x07\x6a\x6d\xe7\xcb\x92\x61\xc2\x25\xf0\x04\x25\xb5\x5f\xe4\xcf\x44\x7f\xc0\xbd\x5e\xa1\x3e\xda\x63\xbb\xc0\x08\xab\x29\xe1\x91\x5e\x9c\x07\x78\x03\xbf\x9e\x37\x47\x59\x1f\x72\xb4\x77\x30\x12\x38\xd1\x9b\xa4\xfa\x46\x90\x3f\x2d\xc8\x82\x9f\x35\xa4\xa8\x35\x0b\x58\xa1\xc4\xb4\x47\xc1\xf2\xf7\x7f\xdf\xf2\x47\xe6\x22\x97\xe8\xc9\x01\xac\x11\x3b\x64\x1a\xbc\x87\xfb\x23\x32\x02\x64\xc0\xf0\x0d\xbd\xc5\xfa\x86\x10\xd4\xef\x97\x4f\xeb\x5e\x8f\x8d\xcb\xc9\x7a\x2d\x7b\xa8\xe6\xc5\x74\xe0\xb0\x72\x41\x01\xb8\x19\x18\x1c\x53\x50\xe0\xdd\x30\x84\x50\x80\x92\xc4\xd6\x8b\x25\x60\x84\xd7\xeb\x22\xc2\x5f\xdb\xa1\xe8\x32\x6e\xa2\xa1\x0a\x0c\xc7\xd1\x87\x09\x00\x62\x9e\x33\x83\xf8\x8b\x0a\x00\xb1\x72\xbd\xea\x4a\xaf\x79\x24\x57\x37\x52\xe7\xb5\x40\xd5\xb8\x9c\x88\x66\x57\x03\x83\xeb\x8b\x05\x00\xd5\xbc\xf0\xd6\xb7\xf0\xc1\x41\xaf\x75\xd1\x5a\x28\x78\x70\xeb\x1c\x4f\x46\x0a\xda\xa3\x39\x8e\x56\xdb\x57\x8c\x91\xbd\x65\x97\xc5\xca\x2c\x17\x0c\xf1\x60\xb9\xaa\xaf\x8a\x15\x68\x9a\x6a\x5e\x70\x8f\x1c\x27\xfb\x29\x30\x68\x1a\xe8\xc3\x74\x39\x9b\x21\x9f\x1c\x08\x08\xc6\xeb\x35\x46\x08\xb1\xc1\xcb\x37\xef\xce\x7e\x06\xf6\x26\xc8\x9f\x62\x5f\xc4\x57\x79\xae\x06\x8f\x5d\x55\xb5\x46\x9b\x78\x54\xdf\x55\x62\x7f\x0c\xd9\x03\x0f\xd3\xb2\xc6\x8e\x3e\x0f\x39\x92\x48\xbb\xc0\x60\x24\xbf\x68\x42\x39\x14\xf3\xd7\xd0\xbd\x5e\xbb\xfa\x96\xa1\xe1\xc1\x86\x9b\x91\xc5\x74\xfc\x1b\x67\xca\xfd\xca\x05\x80\xb2\x5e\xb2\xd3\xf3\x72\x36\x7b\x27\x6f\x8c\xbd\xad\xa3\x42\xcf\x11\xc4\x37\x67\x4c\x26\xcd\x05\xc3\xe5\xf5\x68\x86\xe7\xe5\x6a\xc1\x87\x2d\xfe\x67\x45\x18\x9e\xd2\x4b\x52\x7d\xc4\xb3\x8c\xe3\x92\xcd\xe8\x1d\x11\x28\xbe\x9f\x67\xe5\x6c\x26\x0a\x69\xe6\xa3\xbb\x41\x0e\x34\x3a\x2e\x12\x97\x75\xbd\x4e\x95\xa2\xf1\x04\x00\x75\xf4\x5c\x70\x93\x6e\x11\x86\xa2\x85\xa7\xac\xee\x72\x70\xd0\xea\xb8\x52\x68\x46\x02\x92\xd9\x8b\x41\x45\x66\xf8\xc3\xf1\x5c\x1c\xd7\x93\x83\x3d\x84\Line truncated
|
||||
|
||||
// FileIndexHTML is "index.html"
|
||||
var FileIndexHTML = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x55\x51\x6f\xdb\x36\x10\x7e\xcf\xaf\xb8\xfa\xa9\x05\x2a\x32\x4e\xd3\x0d\x18\x64\x0f\x59\x96\x14\x05\x96\xa5\x69\xb3\x0e\xdd\xcb\x40\x93\x27\xeb\x54\x8a\xa7\xf1\xa8\x3a\xee\xaf\x1f\x24\x45\xe9\x14\xd8\xce\x1e\x06\xcc\x2f\xe6\x49\x1f\xbf\xfb\xee\x3b\x91\x97\x3f\xcb\x32\x38\xe7\x66\x1b\x69\x5d\x26\x78\x6e\x5f\xc0\x15\xd9\xc8\xc2\x45\x82\x73\x8e\x0d\x47\x93\x88\x83\x02\x38\xf3\x1e\xde\x77\x28\x81\xf7\x28\x18\xbf\xa0\x53\x00\xbf\x90\xc5\x20\xe8\xa0\x0d\x0e\x23\xa4\x12\xe1\xea\xed\xed\xf8\x58\x01\x7c\x40\x1c\x23\xa0\xd0\x03\x9a\xc8\x15\xda\x04\x91\x39\x41\xc1\x11\xfc\xc3\xfb\x82\x63\x7d\x9f\x30\xcb\x96\x47\xf9\xb3\x9f\xaf\xcf\x6f\x3f\xbd\xbb\x80\x32\xd5\x7e\x79\x94\x0f\x7f\x00\x00\x79\x89\xc6\x0d\xcb\x3e\xec\x0a\x79\x13\x4d\x53\x02\xde\x35\x9e\x23\x46\x70\xd8\x60\x70\x02\x1c\xe0\xec\xfc\x02\xd0\x51\xe2\xd8\xf3\x4e\x76\x5d\xb5\x92\x60\xd5\x65\xb7\xbe\x45\x07\x82\x8d\x89\x98\xd0\x6f\xa7\x58\xb1\x91\x9a\x04\x12\xed\x62\x56\xa6\xd4\xc8\x0f\x5a\x5b\x17\x2a\x51\xd6\x73\xeb\x0a\x6f\x22\x2a\xcb\xb5\x36\x95\xb9\xd3\x9e\x56\xa2\x8d\x45\x3d\x57\x27\xea\xb8\x5b\xa9\x4a\x66\xcb\x5c\x0f\x34\xcb\xa3\x89\x88\x12\xbd\x67\x55\xc9\xde\x84\x81\x1d\xfe\x59\xb3\x6b\x3d\x8a\xee\xd1\x95\x68\x47\x92\x86\x40\x19\xef\x0f\xf1\x5f\x9a\x55\x24\x3b\x61\xf7\x14\x3e\x43\x44\xbf\x98\x49\xda\x7a\x94\x12\x31\xcd\xa0\x8c\x58\x7c\x2b\x4f\x92\x49\x64\x4f\x94\x94\x26\x62\xc3\x14\x12\x07\x4f\x61\x28\xb3\xa0\x4e\x4b\xd1\x33\x6b\x2e\x0a\xb2\x98\xb5\x94\x0d\x0f\xb2\x4a\xf4\x5c\x9d\xaa\x63\x6d\x65\x04\xa9\x9a\x82\xb2\x22\xb3\xff\x57\x85\xe5\xba\xe1\x80\x21\xc9\x2e\x41\xbb\xba\xfc\x5f\x08\xa8\x26\x2e\x1c\x68\x15\x5c\xfd\x7e\x09\x4f\x77\xea\xe1\xf5\xd4\xab\xcd\x66\xa3\xea\xf1\x04\xf7\xfa\xea\x4d\xd1\x57\xbf\x6a\x83\xf3\xdd\xe7\xf8\xfa\x7b\x75\xaa\x37\x28\x29\xc3\x36\x72\x83\x26\x68\x87\x85\x69\x7d\xea\xb0\x59\x6d\x28\x8c\xc6\xfc\x68\x1a\xfa\x88\x51\x88\xc3\x62\xae\x8e\x9f\xf2\xa9\xdb\xde\xdd\x0c\x64\x51\x99\xcf\xa6\x36\xf4\x15\x9d\x0a\xd8\x13\x77\x0e\x4c\x35\x74\x70\xd3\x26\xce\x28\x50\x1a\xf2\x7e\x31\xf1\xa0\x3f\x87\x3e\x17\x89\x56\xdb\x56\x12\xd7\x7d\x4f\x41\x3f\x36\xb6\xe6\x1a\x43\x82\x4a\xf6\x9f\xeb\xc9\x31\x1b\xf0\xba\xa6\x70\xbf\xcc\x36\x94\xca\xcc\xb3\x35\x1e\xe5\xc9\x3e\x56\x37\x2d\xc6\x9d\x77\xc8\x43\xdc\xfd\xa6\xf7\x09\x3b\x54\xd5\x5f\xdd\xc6\xbe\x79\xc3\x32\x7b\xa5\x4e\xd4\x7c\x4c\x38\xd9\x4d\x21\xe1\x3a\x52\xda\x2e\x66\x52\x9a\x93\xd7\xdf\x65\xe5\x66\x7d\xba\x96\xbb\xf5\xe5\x1f\xe5\xb5\x5c\x5c\x98\xda\x5d\x7f\x7a\xf3\x53\x31\x7f\x75\xb9\xbd\x69\xe9\x76\xe3\xcf\x6e\xd6\x77\x1f\x3f\xfc\xba\x4e\xa7\x8b\x29\x57\xf7\xd5\x08\x47\x5a\x53\x58\xcc\x4c\xe0\xb0\xad\xb9\x3d\x50\xa0\xf5\x84\x21\xbd\x75\x2f\x41\x2c\x37\x28\x2f\x21\xa2\xa3\x88\x36\xfd\x16\xfd\x7e\x8f\x05\x6d\xc4\x24\x8f\xbc\xdb\x09\xb5\x1c\x0a\x5a\x1f\x74\xf9\x1d\xfb\x6d\x41\xde\x3f\x97\x17\xfd\x2c\x61\xdf\xcd\xa1\x55\xe4\x8d\x60\xfc\xb7\x9d\xb6\x1c\xb1\x3b\xaa\x43\x45\x5a\x4a\xaa\x0f\xb6\x77\x2f\xd1\x57\x0e\xdd\x3d\x3f\xdc\xcc\xf7\xc1\x93\x55\x4e\x18\x64\x2b\x09\xeb\x91\x62\x88\x94\x44\xbb\x4b\x4b\xae\xbf\x0d\xc1\x7c\xc5\x6e\xfb\x4f\x8d\xa6\xa1\x6c\x1c\x85\xcb\x5c\x4f\xc2\x3d\xa5\xf4\x29\x47\xd0\x0e\xe5\xb9\x1e\x92\xe4\xba\x9f\xc3\x7f\x07\x00\x00\xff\xff\x5e\x3c\x85\xbf\x3d\x08\x00\x00")
|
||||
|
||||
// FileNodeModulesCoreJsClientShimMinJs is "node_modules/core-js/client/shim.min.js"
|
||||
var FileNodeModulesCoreJsClientShimMinJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\xbd\xd9\x96\xe3\xb6\xb6\x20\xf8\x7e\xbf\x42\x62\xdd\xc3\x0b\x84\xb6\x18\x24\x63\xa6\x84\x54\xa5\xd3\x91\x79\x32\xed\x1c\x8e\x23\xed\x3c\x3e\x3a\xba\xb1\x18\x14\x18\x82\x53\x01\xca\x24\x18\x83\x83\xba\xcb\xd5\xdd\xd5\xe3\x5a\xfd\x01\xfd\xd2\xf5\xda\x4f\xfd\x0f\xf7\x4f\xca\xfd\x23\xbd\x30\x70\xd2\x14\x99\xa7\xba\xed\x5c\x21\x12\x04\x36\x41\x60\x03\x7b\xc0\x1e\xf6\xf7\xf6\xfe\xa9\xb3\xd7\x89\x92\x94\xf6\x7f\xc9\x3a\xbe\x73\xe4\x9c\xc8\x82\x99\x10\x8b\x2c\xd8\xdf\xbf\x66\x62\x96\x5f\x39\x51\x72\xb3\xff\xdb\x3c\x61\x69\x12\x7d\xde\x37\x95\x65\xb5\xef\x59\x44\x79\x46\x03\x55\x3f\xd8\xdf\x97\xcf\x9d\x1b\x26\xfa\x73\xfd\xc0\x49\xd2\x6b\x59\xef\xdf\xff\xaf\x8e\xef\x7a\xa7\x9d\x6f\x29\x67\x59\xe7\x43\x9e\xcd\x3e\x87\x29\xbd\xfd\xa7\xce\xde\xfe\x3f\x75\xe3\x9c\x47\x82\x25\x1c\x51\x60\xf0\x46\xe0\x47\x2b\xcf\x68\x27\x13\x29\x8b\x84\x35\xa8\x1f\xa7\xf8\xf1\x36\x4c\x3b\x94\x3c\x2e\x07\x65\x61\xe7\xf2\xf2\x8e\x5e\x2d\xc2\xe8\xf3\x65\x4a\x7f\xcd\x59\x4a\x2f\x2f\x91\xc0\x8f\x2c\x46\x74\x2c\x26\x38\xa5\x22\x4f\x79\x47\x5e\x3b\xf4\x7e\x91\xa4\x22\x1b\x48\x20\x9c\xc8\x22\xf2\xc8\x02\x01\xf3\xa0\xeb\x81\x79\x18\x3c\x2e\x97\x03\xd3\x28\x95\x8d\xa2\x70\x3e\x47\xbc\x6c\x0b\x1c\xea\xeb\x0d\xaf\xc6\xc0\x9d\x39\xe9\xba\x75\xad\xe5\x86\x5a\xce\x0d\x49\x37\xb5\x76\x22\x42\x37\x96\x4f\x49\x35\x08\x02\x38\xa4\xf8\x71\x53\xad\x44\x3e\xc4\x45\xf1\xfe\xea\x17\x1a\x09\x67\x4a\x63\xc6\xe9\x87\x34\x59\xd0\x54\x3c\xa8\x86\x8f\x51\xc2\x63\x76\x9d\xa7\xe1\xd5\x9c\xaa\xaf\xe6\xf9\x0d\x35\x77\x2e\x5c\x53\x11\xa4\x4b\xbc\xdc\xd8\x07\xde\xe8\x83\x9e\x08\x4e\x84\x6d\x0b\xe7\xf2\x92\x66\x6f\x93\x69\x3e\xa7\xa3\x6a\x56\xae\xa9\xf8\x96\xc6\x61\x3e\x17\x08\x3f\x9a\xe1\x14\x63\x6b\xaa\xcb\xac\xc9\x32\x68\x56\xd5\xad\xcf\xf5\x80\x35\x1a\x54\x33\xb1\x71\x4c\x10\x07\x2b\xb4\x80\x63\xe0\x9b\x7b\x9c\xb4\x46\xad\x02\x6b\x86\x67\x91\x26\x22\x11\x0f\x0b\xea\xcc\xc2\xec\xfd\x1d\x2f\x07\x4a\xcf\xb8\x6c\xb0\x19\xea\x82\x58\xd6\xa6\x07\x68\x53\xe5\x8c\x78\xfe\x21\x5e\xa2\xf1\xea\xfc\xc9\xf1\xbb\x25\x29\xf2\x31\x5c\xcb\x9f\x63\x0c\x0f\x24\x45\x9e\x87\x61\x2a\x7f\x7d\x0c\x97\xf2\xf7\x14\xc3\x15\xb1\xaa\xbe\x5a\x70\xb1\x86\x0a\x6a\x4d\x00\x83\x04\x72\x88\x88\xb0\x2f\x9c\x97\x10\xab\xdf\x57\x10\xaa\xdf\x0f\x90\xa9\xdf\x6f\x60\x4e\xe2\xd1\x6d\x20\xaf\x2f\x46\xb7\x63\x3e\x29\x0a\x24\x7f\xc8\xe3\x12\x07\x48\x17\x3c\x2e\xf1\xf8\x6a\x02\x33\x12\x8f\xae\x83\x6b\x5d\xe7\xda\xd4\x81\x05\x99\x8d\xaf\x64\x89\xfc\x91\x25\x83\x38\x49\x11\xed\x30\xde\x89\x6d\x1b\xa5\x84\x63\x48\x71\x42\x10\x62\xa4\x1b\xd9\xf6\xdc\xb6\xe7\x63\x3a\xe9\x12\xf2\x46\xe0\xd1\x3c\x48\xf1\x98\x4e\x20\x27\x99\x6d\xb3\xd1\x25\x4a\xe0\x16\x07\xa1\x6d\x5b\xe5\x37\x59\x84\xc8\xcf\x4c\xe2\x4e\x32\xba\x44\x2f\x4d\xa9\x9a\x12\x48\x70\x90\xc0\xdc\xb6\xa7\x68\x0e\x14\x12\x90\x5f\xf1\x23\x86\x99\x82\x9f\xd8\xf6\x03\x9a\x01\x85\x1c\x43\x68\xdb\x8b\xb2\x10\xc9\x2b\x92\xe0\xe5\xe0\xd6\x91\xfb\x16\xb9\x86\x0b\xe7\x25\xf1\xe0\xc2\x79\x45\x7c\xb8\x70\x2e\xc8\x21\x5c\x38\x1f\xc8\x29\x5c\x38\xdf\x10\xef\x18\x2e\x9c\x4f\xe4\x40\x3e\xf9\x91\x1c\xcb\x47\x3f\x10\xcf\x3f\x05\x51\xae\x67\x72\xb1\x84\x8d\x33\x40\x52\x74\x88\x07\x75\xbd\xe6\x6a\x61\x31\xea\x52\x24\x30\x16\xb3\x34\xb9\xeb\x7c\x7c\x58\xd0\xf3\x34\x4d\x52\x24\x7a\x56\x87\x65\x1d\x9e\x88\x4e\xc8\x3b\x89\xc2\xcc\xae\x85\x07\xd5\x0a\x68\xbf\x4c\xbf\x2a\x25\xf5\x5b\xac\x9c\xeb\x75\x3e\xb5\xba\xe5\xd0\xdd\x31\x3e\x4d\xee\x6c\x5b\xff\x3a\x6f\x43\x31\x23\x44\xfe\x1d\xe9\x92\x60\x53\xa3\x8c\xce\x63\xdb\x96\x7f\x9b\x0d\xe4\x7d\x50\x4e\x03\xb2\xca\x6e\xcd\x58\x66\x61\x84\x07\x16\xcf\x6f\xae\x68\x5a\xcf\x1a\xb3\x6d\xc4\x48\x8a\x57\xbb\xbd\x79\x58\x44\xfa\x60\x16\x65\xb7\x2b\x10\x5e\x46\xa1\x88\x66\xa8\x5a\xa9\x5d\x77\xb9\xf6\xfd\x9b\x01\xe9\xfa\x96\x1e\xbf\xba\x37\x62\xc4\xf3\xf9\xbc\x4b\x88\x08\x36\x60\xd8\xea\xe0\xb6\x66\xf2\x0c\x23\xeb\xee\x73\x66\x61\x60\x24\x45\x07\x07\x18\x12\xb5\x5a\x9d\x8b\x87\x9b\xab\x64\x0e\x39\xd9\x84\xb3\x03\xb4\xab\x7f\x8a\x0a\x15\x85\x22\x4c\x24\xb7\xed\x44\xdf\xe6\xa3\x24\x60\x18\x59\x1a\xb2\x63\xf5\x04\xc6\x4b\xec\x64\x42\xa2\x2b\x5d\xef\x63\xfd\x8a\x6e\x8a\x0e\x30\xaa\x9e\x57\xef\x39\xe9\x92\xcd\x34\xe0\x71\xa9\xb6\xcc\x47\xb9\xd1\x6f\x68\xb6\x5c\x62\x27\x5c\xe2\xcd\xc3\x22\xc7\xc1\xd3\xc3\x70\xe6\x62\xc8\xe5\x70\x78\x18\xa2\xcd\xaf\x1a\x70\x27\x26\x29\x3a\xc6\xa3\x8d\x8f\xeb\xed\x7f\x03\x95\x4a\xd5\x82\x61\x48\x60\xe0\x24\x47\x1c\xba\x2e\x06\x86\x52\x0c\x09\xae\x51\xa6\x13\x99\xca\x06\x6d\x28\x7e\x5c\xb2\x18\x59\xd7\x54\x58\x8c\x77\xd2\xa2\xb0\x32\x73\xb9\xb6\xec\xac\xe7\x51\x44\xb3\x2c\x49\xf5\xd2\xcb\xf2\x85\x1c\x50\x3a\xad\x97\x9e\x75\x1b\xce\x73\xaa\x5a\xdb\x36\x12\x72\xff\x4b\x1d\x55\x86\x61\x17\xe2\xf8\x07\x12\x63\xe4\xda\x71\x6e\x18\xdf\xb2\x1d\x98\x0f\x70\x87\x62\xc4\x90\xdc\x17\xe0\xcc\x75\x4f\xbc\xb3\x33\xff\xe8\xf0\xe4\xd0\x3d\x3b\xf3\x70\xe0\xee\x7a\x89\xbf\x6d\xa3\x69\x91\x38\x05\x1a\x7f\xe1\x12\x92\x43\x57\x61\x74\xb5\x2b\x88\x9d\x3b\x56\xa7\x6c\xb0\x63\xcb\x6a\xf6\xfb\xc4\xac\xa6\x56\xf7\x15\x92\xac\xb6\x28\x17\x8c\x13\xab\x12\x86\x3c\x48Line truncated
|
||||
|
||||
// FileNodeModulesHellojsDistHelloAllJs is "node_modules/hellojs/dist/hello.all.js"
|
||||
var FileNodeModulesHellojsDistHelloAllJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\xbd\x79\x77\xdb\x46\xb6\x38\xf8\x37\xf9\x29\xca\xce\x1b\x93\xb4\x28\x50\x72\x96\x7e\x43\xb5\xa2\x56\x6c\x39\x51\xb7\x1d\xfb\x67\xc9\xaf\xfb\x1d\x59\xd1\x2b\x12\x45\xb2\x2c\x10\x85\x00\xa0\x96\xb6\xf4\xdd\xe7\xd4\x5d\x6a\x01\x41\xd9\x4e\xf7\x9b\x73\x66\xf2\x87\x23\x02\x85\x5a\x6f\xdd\x7d\x19\x3d\x7d\x24\x16\x2a\xcb\xcc\xc7\x4a\x5c\xed\x26\xbb\xdf\x25\x7f\x12\x77\xa2\x3f\x1d\x88\x67\x3b\xbb\xcf\xb6\x9f\xed\xec\xfe\x49\x1c\xe6\x69\xa9\xae\xc5\x0b\x93\x56\x26\x17\x77\xe2\xf5\xf1\xa9\x58\xd4\x75\x51\x8d\x47\x23\x99\xc2\xd3\x64\x6a\x96\x23\xe8\x27\xf9\x58\x8d\x5e\x1d\x3f\x3f\xfa\xf5\xe4\x48\x3c\x1d\x75\x47\x23\x71\x74\xf2\xbd\x78\x33\xf9\xa8\xa6\x75\x32\x2d\x95\xac\x55\x57\xcf\x44\xff\x51\xf4\x68\x20\x3e\x75\xbb\x9d\xd1\x48\x9c\x2c\xf4\x72\x48\xcd\x05\x35\xb7\xcf\x0f\x45\xb5\xd0\x4b\x31\x33\x65\xdc\x57\x7f\x30\x14\xba\x16\x32\x4d\x2b\x21\x45\x51\x9a\xda\xd4\xb7\x85\x12\xb5\x11\x52\xe4\xea\x5a\x18\x68\xdd\xed\x44\x5f\x89\x7d\xd1\x9f\xad\xf2\x69\xad\x4d\xde\xc7\xb1\x3b\xfc\x5b\xbc\xb4\x4f\xee\xed\xa3\x52\xd5\xab\x32\x17\xae\xa5\xa1\xa6\x1d\xbb\x00\x59\xce\x57\x4b\x95\xd7\x55\x92\xa9\x7c\x5e\x2f\xc4\xa3\x7d\xb1\x6b\x1b\x74\x3a\x9d\x4e\xbd\x28\xcd\x35\x8c\x7f\x54\x96\xa6\xec\xf7\xe2\xe1\xf5\xb2\xc8\x94\xfd\x58\xc2\x88\x26\xcf\x6e\x85\x9c\x4e\x55\x51\x57\xc2\xe4\x4a\x14\xb2\x94\x4b\x55\xab\x32\xe9\x0d\xf6\x6c\x87\x30\x9d\xce\xcb\xc4\x2f\x70\x5f\x18\x78\x43\x73\xb4\x43\xbd\xec\x43\xe3\xfb\xbd\x6e\xb7\x73\x3f\xb0\x3f\xba\xf7\xdd\xc6\x09\x5c\xaa\xdb\x2a\xda\x7f\xfb\x00\x66\x1d\xfc\x16\xfb\xc1\x9a\x87\xe2\x72\x28\x4a\x5c\x58\x29\xf6\xc5\xd9\xb9\x1d\xc4\x1e\x44\xff\x52\xe8\x5c\x18\x5a\xb3\xed\xb4\x4c\x16\xb2\x7a\x73\x9d\xbf\x2d\x4d\xa1\xca\xfa\x36\x99\xca\x2c\x83\x2e\x06\x03\xd8\x97\x32\x29\x56\xd5\xa2\x7f\x89\x13\x0d\xf6\xb8\xdc\xeb\xda\x89\xfb\xf9\x9e\x9d\x27\x3a\x4f\xd5\xcd\x9b\x19\x4e\xf7\xb0\x2c\xe5\xad\x5f\x3f\xbf\x84\xc1\x37\xbc\x0b\x97\x51\xf1\x29\xdb\x79\x5f\xc9\x52\x7c\x14\xfb\x62\x67\x4f\x7c\x14\x7f\x16\xf5\x42\xf3\x21\xee\x89\x8f\x5b\x5b\xc1\x82\xec\xab\xb3\x8f\xe7\x62\x7f\x7f\x5f\x54\x7c\xb8\x34\xe5\x8f\x74\x32\xf1\x42\xb6\x77\x5b\x56\x32\x33\xe5\x91\x9c\x2e\xda\x57\x42\x2f\x5b\x57\x42\xef\xc2\x95\xcc\x56\xf9\xe8\xe9\x10\x26\x7d\x58\xce\x9f\x8e\x68\x61\x3c\x5b\x98\xea\x95\xd1\xa9\xd8\x11\x77\x77\xc2\x3d\xca\x57\x59\x46\x0b\xf0\xc0\x79\x7a\x5b\x28\x04\x50\x7f\x20\x76\x73\x6a\xb1\x4f\x00\x03\x7d\xc2\x4b\xfb\x3c\x53\xb9\xd8\x17\x35\x43\xfc\x8f\x3f\xfe\x28\x76\xf6\x78\xf0\xdb\x42\x99\x99\x9d\xa7\x78\xb4\xbf\x2f\x7a\x3c\xe1\xde\x97\x8f\x8a\x4b\x12\xfb\x62\xed\x6e\xfd\xb8\x2f\x9e\x89\x03\xff\xfc\x6c\xf7\x5c\x8c\x69\x99\x7b\xe1\xb1\x6a\x3c\x56\x2d\xfe\x6c\x27\xbb\x27\x74\x74\x9c\xda\x02\x6c\xcd\xe7\x38\x5b\xe5\x08\xa0\x34\xf0\x50\xd4\x67\xfa\x7c\x28\xf4\x50\xd4\x83\xd6\xc3\xb5\x0d\xdb\x8e\x57\x67\xb5\x2a\x37\x9c\x2e\xbc\x6b\x3f\x5c\x78\xd5\x38\x5b\x77\xb2\x74\xae\x76\x51\xd2\x5d\x3b\x00\x55\x02\x0a\x8f\xc1\xae\x64\x46\xb3\xf6\x4b\x6d\x2e\xce\x02\x03\xee\xd7\x50\xf8\xf6\xbc\x15\x12\xef\xe5\x95\xcc\x82\x85\x5b\x04\xe2\x96\x2e\xc3\x75\xbf\x2d\x4d\xba\x42\x6c\x59\xd5\xaa\xa8\x84\x99\x89\xa3\xe7\xaf\x0f\xb7\x9f\xfd\xf0\x6c\x28\x8e\x52\x0d\xaf\xbe\x1f\x8a\xdd\xef\x93\xef\x92\xef\x92\xdd\xff\xdb\x7e\xf5\x4e\xcd\x54\xa9\xf2\xa9\x1a\x03\xf9\x18\x8f\x46\xaa\xfa\x3e\x99\xeb\x7a\xb1\x9a\x24\xda\x8c\xbe\xb9\xf1\xcd\x5b\xf7\x72\x29\x0b\xdc\x95\x96\x17\xff\x0b\xdb\x48\x9b\xf2\x85\x3b\xb9\xf7\xf0\x96\x59\x50\xb1\x9f\x97\xf2\x36\x5c\x1c\x3d\x72\xf4\xef\x25\x53\xa1\xe8\x35\xaf\x98\x7e\x46\xf8\x99\x30\x33\x0e\x49\x48\xdc\xef\x4c\x6d\x4e\xea\x52\xe7\x73\xc2\xc4\x03\xc0\x05\xbd\x33\xa4\x8a\x38\xc8\x79\x0f\xe7\x49\x13\x3d\x55\x55\x0d\x74\x36\x33\x53\x20\x4f\x89\xac\x2a\x3d\xcf\xbb\xc1\x25\xbf\xd6\x79\x6a\xae\xb1\x2f\xec\xaa\x27\x9e\x3c\x11\xd1\xdb\x84\xbf\x5f\x6b\xf6\xa8\xd1\x80\x06\xc0\x3d\x68\x7f\x17\xae\x78\x55\x12\x22\x5b\x1b\x47\xac\xca\xac\x7d\x2d\xbc\xad\xc9\x44\xe7\x29\xee\xbf\x7b\xe4\x37\xcb\xbe\x74\x27\xf1\xfa\xc5\xaf\xf0\xff\xb7\x26\xbb\x9d\xe9\x2c\x13\xc7\x47\xff\x39\x14\xa9\x51\x95\xc8\x4d\x2d\xaa\x55\x51\x98\xb2\x16\xb9\xac\xf5\x95\x6a\x0c\xd0\xd9\xd0\x79\xb8\x8c\x49\x88\xb8\x71\xe3\x00\x59\x7f\x31\xf2\xec\x6d\x1a\x64\x5b\x5c\x2f\x64\x2d\x74\x25\xea\xf2\x56\xe7\x73\xcb\x0c\x4d\x94\x98\x98\x55\x9e\xda\xa7\x76\xfa\x16\x1c\xe4\x24\x53\x3d\x8f\x82\x1d\x03\xf4\xdc\x31\x40\xfe\xd6\x24\x55\xa6\xa7\x8a\xe9\x80\x25\xad\x12\x41\xca\xa1\xe4\xa1\xd8\x75\x74\xe2\x02\xc9\x0e\xe3\x4b\x78\xf6\x22\x5c\x3c\x2d\x8b\xa0\x16\x9a\x27\xb2\x28\xb2\x5b\xa4\x61\x3a\xaf\x6a\x99\x4f\xed\x9e\x3c\x17\x07\xb8\x2f\x63\x31\xb1\x37\x0f\x0f\x7d\x28\x66\xc9\xd4\xe4\x53\x59\xf7\x9b\xf3\x18\x0c\x3c\x17\xd4\x79\x1e\x71\x4c\x30\x8c\x7b\x60\x5b\xbd\x88\xde\xdb\xfd\x7d\xde\x8f\xee\xf0\x8b\x00\x9e\x9e\x3e\xed\x8a\xa7\xe2\x2f\xcc\xe6\x76\x05\xfc\xfe\xc5\xfe\xfc\xeb\x89\xdd\x58\x29\xa6\x99\x56\x79\x2d\x2a\x9d\x2a\xf1\x57\x79\x25\xab\x69\xa9\x8b\x5a\x9c\xbc\xf8\x1b\x80\xe1\x52\x5e\xda\xf3\x78\x73\xb8\xaa\x17\xcf\x44\x66\xe6\x3a\xaf\x84\xcc\x53\x51\xad\x26\x95\xfa\x7d\x65\xbfLine truncated
|
||||
|
||||
// FileNodeModulesMomentMinMomentWithLocalesMinJs is "node_modules/moment/min/moment-with-locales.min.js"
|
||||
var FileNodeModulesMomentMinMomentWithLocalesMinJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\x0b\x77\xdb\xb6\xb2\x28\xfc\x57\x64\x7c\x8d\x0e\x11\x41\x32\x25\x3b\x76\x4c\x1b\x9b\x2b\x8d\xe3\x3c\x6a\x25\x69\xed\x34\x4d\x64\x6d\x2d\xd8\x84\x6c\x36\x12\xe9\x12\x50\x1c\xc7\xd4\xf9\xed\xdf\xc2\x00\x20\x41\x89\xb2\x9d\xb6\x77\xdf\x9e\x7b\xd2\xac\x5a\x78\x0c\x06\x83\x01\x30\x18\x3c\x66\xb8\x36\x9e\x25\x67\x32\x4e\x13\x8f\x13\x86\x6f\x50\x7a\xfa\x3b\x3f\x93\x88\x52\x79\x7d\xc9\xd3\x71\x83\x7f\xb9\x4c\x33\x29\x9a\x4d\x34\x4b\x22\x3e\x8e\x13\x1e\xa1\x35\x9b\x39\x4d\xa3\xd9\x84\x87\xfa\xa7\x63\x40\x29\xf3\x70\x80\x2c\xda\x12\x93\x2e\xdd\x6c\xea\xdf\x0e\x9b\x46\xa1\x0e\x7a\x0c\x07\xbc\x33\x4d\xa7\x3c\x91\xaa\xf0\xdc\x93\x17\xb1\x20\x05\x61\xf8\x06\xcd\x04\x6f\x08\x99\xc5\x67\x12\xed\x7e\x66\x59\x83\x93\x64\xd7\xe6\x37\x26\x1e\xbe\xc9\xb8\x9c\x65\x49\x83\x77\xd8\xe5\xe5\xe4\xda\x4b\x66\x93\x09\x61\xd9\xf9\x4c\xe1\x14\x78\x5e\xc0\x8e\x3c\x5e\x02\x37\xe2\x44\x48\x96\x9c\x29\xea\x9e\x64\x19\xbb\xce\x73\x34\xd0\x0c\xd0\xf1\x21\xa2\x94\xbe\x81\x84\xce\x65\x96\xca\x54\x35\xa5\x23\xd3\x23\x99\xc5\xc9\x79\xe7\x8c\x4d\x26\x1e\x77\xb0\xc7\x0e\x76\x45\xc2\x1a\xe5\xcd\x66\x81\x52\x23\xfa\x56\x9c\xa9\x83\xf3\x73\x1a\x47\x0d\x9f\x52\xca\xcb\xfc\x69\x99\x8f\x92\xd9\xf4\x94\x67\x4e\xe7\x39\x0d\x7a\x0d\x79\xdf\x5a\xfb\x6c\x15\xbf\xf6\x99\x74\xb1\xab\xe8\xb7\xe2\xee\xeb\x21\xa7\xfa\x53\x12\x41\x07\xc3\xdd\x71\x9a\x79\x92\xfa\xbb\x72\x8f\x77\x26\x3c\x39\x97\x17\xbb\xad\x96\xc4\xa2\x73\x39\x13\x17\x1e\xf3\xf8\x40\x0e\x89\xc4\x78\xd7\x50\x24\x4a\x64\x17\x1a\x99\xc9\x58\xa2\xe2\x82\x89\x37\x57\xc9\xdb\x2c\xbd\xe4\x99\xbc\x36\xb4\x10\xe6\x50\x73\xa8\x11\x28\x12\x80\xa2\x46\x9c\x34\x18\xbe\xf0\x18\x91\xb8\xd9\x84\xaa\x29\x1b\xc8\x61\x51\xb9\xca\x42\xb6\x75\x08\x60\x8a\xc6\x52\x56\x04\x31\x01\xc0\xcf\x6c\x32\xe3\x6f\xc6\x06\xce\xc4\x28\xb3\x21\x4c\x9c\x2e\x3d\x53\xa4\x10\x49\x44\xd9\xf1\xcc\x26\x91\x35\x1f\x77\x66\xf2\xcc\x73\x48\xff\xb0\x30\xec\x28\xe5\x9d\xd1\xe5\x18\x6a\x1a\x5d\x8e\xe9\x0d\x9f\x5e\xca\xeb\x60\xad\x4b\x66\xc9\x4c\xf0\xe8\x38\xfd\xc4\x13\x11\x0c\x86\x26\xfe\x32\xb9\x9c\x49\x15\x4d\x3f\xf3\x6c\x3c\x49\xaf\x82\x76\x8f\x9c\x5d\xb0\x4c\x1c\xf2\xb1\x7c\xf3\x99\x67\x81\x4f\x14\x62\x0d\xb8\xd6\x25\x71\xf2\x99\x4d\xe2\xa8\x9f\x26\xf2\x22\x80\xc9\x66\x52\x0e\xd2\x6c\xca\x00\x64\x26\x78\xf6\x52\x27\x32\xc9\x23\x28\x25\x52\xf5\x73\xc9\x32\xc1\x23\x35\x62\xde\xb2\x4c\x02\x1d\x53\x9e\xc5\x51\xcc\xa7\x1a\x57\x36\x3e\xeb\x3d\xee\xf5\x14\xec\x15\xe7\x9f\x22\x76\xdd\x8f\xc5\x94\xc9\xb3\x8b\x60\xad\x3b\xc7\x04\x5a\x55\x36\xff\x5a\x35\x3f\x1e\x7b\x45\xd3\x63\xf1\xab\xaa\x56\x0f\x2d\x46\x15\x7b\x88\xa4\x89\xee\x75\xd6\x59\xa8\xbf\x14\x34\x4b\x93\x77\x8e\x89\xa0\x6b\xb1\x78\xcd\x5e\x2b\x56\x46\x9d\x73\x2e\x8f\xe3\x29\xf7\x30\x6e\x36\x59\xc7\xb2\x6b\xcf\x6f\x36\xd7\x58\x07\xb8\x0c\x21\x97\x3d\x6e\xc2\x7b\xdd\x1a\x48\x5a\x68\x19\xa4\x15\x3c\x76\x0b\x69\x96\x42\xca\x02\x4f\x9b\x4d\x6f\x8d\x75\x2c\xef\xf2\xbc\x0c\x37\x9b\x12\xef\xc6\x63\x45\xb4\x16\x9b\xcd\xa6\x27\xa8\x68\x36\x95\xf0\x60\x9d\x4a\xdf\xda\x44\x77\x6c\x98\xd9\xd7\x6c\x16\x12\x87\x75\x4e\xe3\xf3\x17\xe9\x2c\xc3\x44\x33\xc7\x4c\xb1\x58\x1c\x64\xe9\x57\x9e\x34\x9b\x0b\x09\x1e\xc7\xd8\x4e\xd3\xdd\xb2\x53\xa8\x98\x17\xb2\xda\xa6\x95\x5d\x39\x56\x7d\xa0\x7b\xed\xcc\x7b\xcd\x5e\x17\x93\xcd\x74\x48\x78\xe8\x7d\xf0\x18\x26\x1c\x07\xea\x77\x91\x21\x74\xcd\x27\x6c\x9e\x50\x10\xde\xce\xec\x17\xe9\x94\x87\x75\x89\x81\xdb\xf7\x76\xea\x33\xd3\x36\x58\x86\xd4\xc8\x61\x86\x1d\xff\xfa\xd7\xbf\x7c\x22\xa8\xbf\x2b\xf6\xe4\xae\x68\xb5\x70\x3c\xf6\x04\xc8\x89\x66\x93\xeb\xd1\x05\x2b\x17\x1b\x88\x21\x11\x84\x59\x06\xac\xf9\xa6\x19\x6b\xdd\x39\x2c\x5f\x11\x9d\x98\xf5\xce\x48\xa4\x98\x6b\xf9\x67\xf9\xf0\xa9\x22\x1a\x49\xa2\xfa\x32\xf5\x98\xe2\xd8\x93\x3e\x14\xd4\x24\xe2\x3c\xf7\xf8\x52\x2a\xad\x01\x24\xba\xb8\x2d\x00\x20\x26\x71\x6c\x12\x95\x38\x1a\x8d\x4d\xe2\xc4\x24\x4e\x28\x44\x74\xa2\x1e\x4b\x26\x47\x47\x68\x99\xac\x61\xe4\xd7\xa9\x01\x90\x5f\xa7\xd4\x24\x98\xda\xc5\xbb\xe3\xa7\x05\xc9\xef\x8e\x9f\xd2\x22\x51\x03\xa4\xe3\xb1\xe0\x16\xbf\x8e\xd0\x32\x59\xc3\x5c\x5a\x72\x2f\xc7\x54\x8d\x01\x4b\x6f\x7a\xc6\x26\xdc\x12\x0d\x11\x5a\x26\x13\x7f\x2f\x32\x9d\x88\xcb\x45\xc6\x26\xed\xca\x56\x0b\xa7\x5e\x42\xd9\x40\xd0\x68\x20\x87\x43\xc0\x33\x10\x43\x9a\x14\x23\x90\xcf\xf5\xd8\x58\xeb\x96\xdd\x74\xa9\x86\xcd\x27\xdd\xe9\x4a\xc6\x5c\xc4\xa2\x33\x8a\x68\xc2\xaf\x60\x41\xf4\xcc\xa8\xed\x8c\xa2\xb0\x2a\x3e\x02\x35\xb6\x35\xbc\x99\x03\x9e\xaa\x72\x09\x81\x02\xc3\x64\xad\xab\x26\x60\xb3\xe9\x31\x35\xc0\x27\x9d\xd9\xa5\x1a\xed\x6f\x80\x2b\x66\x90\x2a\xba\x9c\x15\x61\x7f\xd5\xb2\x7d\x99\xe7\x85\x62\x52\x50\xb7\x30\x56\x4a\x34\xc7\x2e\x9a\x3d\x3f\xec\x33\x79\xd1\x39\xe3\xb1\x5a\xc7\xf3\xdc\x0f\x20\x3e\x9e\xa4\x69\x56\x59\xd8\xcf\xcb\x59\xdc\xe2\x44\xf1\xda\xe0\xf0\xd7\xa0\x1d\xb1\x38\x88\x93\x58\x2a\xc5\xaf\xd9\xf4\x24\x3d\x86\x6e\x74\xea\xcd\xf4\x6a\xa7\x91\x08\x92\x50\xa8\x68\x1a\x27\x9e\xd5\x0b\x88\x9d\x93\x98\x44\x3a\x97\x9d\x8a\x22\xb7\x5d\xe6\x66\xd4\x07\xb5\x42\x4f\xdb\x04\xa6\xad\x27\x9b\x4d\xd5\xbb\xLine truncated
|
||||
|
||||
// FileNodeModulesSystemjsDistSystemSrcJs is "node_modules/systemjs/dist/system.src.js"
|
||||
var FileNodeModulesSystemjsDistSystemSrcJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xfb\x77\x1b\x37\xb2\x20\xfc\xbb\xfe\x0a\xc8\x99\x75\x93\x36\x45\xda\xce\x63\x32\x54\x18\xc7\x71\x9c\x7b\x33\x9f\xed\x64\x6d\x67\xef\xee\x91\x14\xdf\x56\x37\x48\xb6\xd5\xec\xee\x69\x34\x25\x6b\x2c\xed\xdf\xfe\x1d\x54\x15\x80\x02\x1a\x4d\xc9\x8e\xe7\x7e\x8f\xb3\x39\x67\xc6\x22\x1a\x28\xbc\x0a\x85\x42\x3d\x67\xf7\xf6\xc4\x3d\xf1\xfa\x52\x75\x72\xf3\xf7\xd7\xe2\xfc\xc1\xf4\xe1\xdf\xa6\x5f\xfd\x75\x4f\xdc\x9b\xed\x8d\x96\xdb\x2a\xeb\x8a\xba\x1a\x8d\xc5\x87\x3d\xf3\x43\x9c\xd6\x75\xa7\xba\x36\x6d\x74\xf1\x6c\x26\x96\x6d\xbd\x11\xeb\xae\x6b\xd4\x7c\x36\x5b\x15\xaa\x9b\xae\x8a\x6e\xbd\x3d\x9d\x66\xf5\x66\xf6\xbf\xd2\xe5\xb2\x94\xb3\x87\x0f\xbe\xfd\xf6\xdb\xaf\x1f\x30\x90\xab\xb2\x3e\x4d\x4b\x0f\xf0\xef\xaf\x9e\xff\x56\x97\x97\xcb\xa2\x2c\x47\xdb\xb6\x9c\x88\xd3\x54\xc9\xdf\x5f\x3d\xd7\x95\x84\x28\x96\x62\xd4\x5d\x36\xb2\x5e\x8a\x6d\x5b\x8a\xfd\x85\x48\x54\xd7\x16\xd5\x2a\x19\xef\x09\x21\x44\xb7\x6e\xeb\x0b\x51\xc9\x0b\xf1\xe6\xb2\x91\xcf\xda\xb6\x6e\x47\xc9\xef\xaf\x9e\x8b\xcd\x56\x75\xe2\x54\x8a\x54\x98\xfa\x87\x7b\x42\x9c\xa7\xad\xd8\x88\x85\x78\x0d\x65\xba\xbf\xf1\xb4\x95\x4d\x99\x66\x72\x34\xfb\xe3\x58\xdd\xbf\x3a\x56\xf7\xff\x32\x5b\x4d\xc4\x9d\x3b\xec\xcb\xf1\xb1\x2e\x4a\x66\xc9\x78\xba\x49\xbb\x6c\x3d\x9a\xfd\x31\x3a\xfa\x63\x7e\x3c\x7b\xfc\xc5\xc9\xfd\xf9\xf8\xf1\xe8\xf1\xfc\x78\x76\x3c\x1b\x3d\x9e\xeb\xe2\x1f\xa0\xfc\xde\x78\xf4\x78\xee\xfd\x1e\x3f\xfe\x61\xfc\x78\x64\x1b\x52\x85\xe3\x5c\x7f\x19\x8f\x1f\x8f\x8e\xfe\xc0\xd2\xe3\xc7\x47\x7f\xe8\x3f\x1e\x8f\xbe\x38\x3a\x56\xc7\xaf\xf5\x9f\x33\x18\xbe\x5e\x8d\xfd\x4d\x38\xf3\x57\x69\xb5\x32\x53\xff\xa5\x3a\x4f\xcb\x22\xd7\xab\x2a\x96\x75\xbb\x49\x3b\x37\xf1\xa6\xad\xbb\x3a\xab\x4b\xb1\x10\x9b\xa3\x87\x27\xe2\xea\x4a\xdc\xb9\x63\x3e\x6e\x95\x6c\xab\x74\x23\xe1\xe3\xa3\xe0\x63\x93\x2a\x75\x51\xb7\x39\x7c\xfc\x32\xf8\xb8\xae\x55\x07\x1f\xbe\x8a\x7c\xb0\x20\xbf\x0e\x41\xd6\x2d\xb6\xfa\xa6\xd7\x57\xb7\xb6\xad\xfe\x1a\x7c\x54\x32\x6d\xb3\x35\x7c\xfa\x36\xec\x2d\x55\xf8\xe1\x6f\xec\x83\x5e\x30\xc2\x27\xb1\xbf\x58\x88\x6d\x95\xcb\x65\x51\xc9\x1c\xb1\x0b\x5b\xea\x0a\x62\x61\xf0\x4e\x14\x95\xea\xd2\x2a\xd3\x28\xc7\x70\x53\x3c\xb6\x15\xe6\xb0\xea\x1c\x6f\x0d\xca\x1e\x5a\x98\xcb\x32\x5d\x89\x85\xd8\xb7\x6b\x7e\xf7\xae\xd8\x87\x95\xd2\x7f\x98\xc5\xc6\xfa\x7a\x90\x50\x5f\x7f\xb2\xd3\xd7\x3f\x70\xba\xb8\xdf\xc2\x4d\x5e\x77\x37\xc5\x5f\x7d\x08\x06\xc0\xd1\x83\x13\x98\xf2\x9d\xd9\x1d\x03\x80\x2d\xed\xc8\xfe\xfd\x58\x8c\x46\x30\x81\x29\x0c\xef\xea\x0a\xc1\x9b\x21\x8e\x61\x20\x50\xc4\x9a\xdc\x99\xdd\x11\x73\x7d\x46\xc4\x7d\xe1\x7d\x9b\xaa\xb2\xc8\xe4\xe8\xc1\x24\x28\x2e\x53\xd5\xfd\x52\xe5\xf2\xfd\xaf\xcb\x91\x1e\x91\xb8\x2f\x1e\xea\xff\x33\x15\xc6\x62\xee\xb7\xa0\xb5\x9c\xcd\x44\x5e\x77\x42\xc9\xd5\x46\x56\x9d\x12\xad\xdc\xd4\xe7\x69\x69\xd7\xb9\xde\x76\xcd\x56\x23\xd2\xd1\x09\x36\xb0\x3d\xba\x63\x3d\x3a\x9e\x1e\x4f\x1f\x8f\x8e\x67\x57\x7f\x19\x8f\xef\xcf\xe0\x6c\xd3\x8a\xb0\x23\x3e\x1b\x1d\x4f\x6d\x1d\x4d\x00\x66\xd1\x5a\x1a\xd6\x5f\x34\x8c\xd9\x74\x1a\xaf\xf1\xf8\xe8\x8f\xe3\xd9\xc9\x3d\x0d\xc3\x12\xb9\x51\x63\x10\xce\x6c\x57\x23\x16\xb0\x39\xd3\xa9\x05\xa2\xff\xc3\xf9\x4c\x9b\xba\x19\xd1\x0a\xe8\xff\x64\xa9\x64\xa4\xd2\x56\xad\x47\x8d\xad\x76\x3d\xf6\x57\x40\x2c\x4c\xc5\x77\x75\x51\x8d\x3c\x82\xf6\xc7\xf1\x6c\x36\xf1\x50\x05\x47\x73\x87\xef\xad\x8f\x5b\x6e\x02\x74\x74\x71\xbb\xea\xb6\x33\x03\x60\xe7\xdd\xe2\x93\xc3\x72\x61\x08\x85\xfd\x76\x68\xd1\xd2\x52\x17\x42\x01\xfc\x6d\xbe\x33\xd2\xe4\xa1\x26\x7e\xbf\xb6\xa3\xb4\x87\xcd\xe2\xbb\x23\x78\x08\x98\x7e\xeb\x86\xd7\x7b\x7b\x80\x5d\x59\x5d\x9d\xcb\xb6\xd3\xc7\x59\x89\xae\xd6\x9d\x89\x99\x48\xcb\x8b\xf4\x52\xed\x79\x8b\xd9\xc7\x2c\x77\x2d\x1c\x6a\x68\xdd\xba\x50\xd3\xba\x2d\x56\x45\x25\x16\x38\xdb\xc7\x6e\x0c\xf7\xc5\xc8\xfe\x0d\xe7\xf2\x8e\x3e\x6b\x50\x8b\x7e\xea\xa5\x67\xe7\x0a\x3e\xcd\x89\x90\x01\xec\x75\x2b\x97\x7a\x20\x31\x90\x77\xef\x0a\x73\x7e\xdd\xb4\x17\xe2\xce\xb2\x28\xe5\xbc\x07\x7b\x64\xd7\xd4\xf6\x6d\x4b\x34\x54\xb3\x23\x6e\x64\xf3\x3b\x70\x5a\xa9\xdc\xc0\xb9\xf3\x43\x30\x5e\x77\xa2\xc5\x7d\x43\xb0\xee\x03\x6d\xb6\xb3\x60\xbb\xc2\x37\x04\xbe\xb1\xad\xe6\xbb\x8c\xed\x1c\x9a\x70\x0c\xc1\x95\x41\xd4\x32\x58\x65\xcb\x08\x16\xc7\x44\x84\x85\x28\x6c\xb0\x97\xe0\xf7\xb6\xda\x7e\xb3\xa4\xd7\x51\x5d\xec\x03\x2f\x1d\x9c\xdf\xf5\x1e\xb2\x37\x53\x7e\x6d\x2c\xf8\x45\x71\xb8\x77\x3d\x36\xec\x8c\x92\xe5\x12\xf8\x19\x7b\x27\x25\xe2\x31\x96\xce\x05\xf1\x49\x87\x8c\x75\x7a\xfb\xd6\x31\x4f\x74\xe5\x15\xea\x3f\xea\xf6\x4c\xb6\x62\x21\x08\xe8\x45\x51\xe5\xf5\x85\xde\x78\x0e\xf6\xee\x5d\xb1\xa3\x53\xf7\xb5\xd8\xe8\x05\x79\x9d\xb5\x45\xd3\xa9\xa0\xda\xa1\xed\xf3\xc7\xb6\xbe\x50\x91\x4e\x07\xc1\xe6\x75\xb6\xd5\xd4\x7b\x10\xe2\x7f\x00\x00\xe5\x20\x36\x6d\x9d\x49\x15\x0e\x81\x81\xa4\x0a\xd3\xa6\x4c\x3b\xcd\xe6\x44\x6a\xee\xef\x87\x95\x2c\xef\x76\x51\x54\x33\x3c\xb2\x40\x36\xcc\xca\x4e\xb3\xba\x52\x75\x29\x91\x7c\x84\xa5\x62\x21\x3e\x88\x54\x29\xd9\x76\x73\xc1\x79\xe4\x6b\x71\x7d\x48\xc4\xe4\x97\x67\xdf\x0a\xb5\x6d\xf4\x2a\x9a\xc9\xe1\x9d\xLine truncated
|
||||
|
||||
// FileNodeModulesZoneJsDistZoneJs is "node_modules/zone.js/dist/zone.js"
|
||||
var FileNodeModulesZoneJsDistZoneJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x7b\x7f\xdb\xc6\xb1\x30\x8e\xff\xfd\xf8\x55\xac\xf3\x9c\x8f\x49\xc5\x08\x99\xa4\xed\x39\xa7\x52\xd9\x1c\x45\x92\x13\x35\xb6\xe4\x23\xc9\x71\x1b\x55\x3f\x66\x49\x2c\x49\x58\x20\x96\xc1\x02\x92\x95\xd8\xef\xfd\xf7\xd9\xd9\xfb\x0d\x84\x64\xa7\xed\x37\x4f\xf5\x87\x4d\x00\xbb\xb3\xb7\xd9\xd9\x99\xd9\xb9\x8c\x3f\xfd\xf4\xd1\xa7\xe8\x7f\xca\x62\x4e\x2a\x46\x1e\x7d\x8a\x0e\xe8\xe6\xae\x2e\x96\xab\x06\x7d\x43\xe9\xb2\x24\xe8\xb8\x9a\x8f\xd0\x7e\x59\xa2\x33\xfe\x96\xa1\x33\xc2\x48\x7d\x43\xf2\xd1\x23\x5e\xf3\x15\x23\x88\x2e\x50\xb3\x2a\x18\x62\xb4\xad\xe7\x04\xcd\x69\x4e\x50\xc1\xd0\x92\xde\x90\xba\x22\x39\x9a\xdd\x21\x5c\xa1\x17\xc7\x17\x9f\xb1\xe6\xae\x24\x48\x36\x86\x9a\x15\x6e\xd0\x1c\x57\x68\xc6\x1b\x5e\xd0\xb6\xca\x51\x51\xa1\x66\x45\xd0\xf3\xe3\x83\xa3\x93\xf3\x23\xb4\x28\x4a\x82\x70\x83\x56\x4d\xb3\x61\xbb\xe3\x31\xae\x96\x6d\x89\xeb\x51\x41\xc7\xba\xcb\xe3\x47\xc3\x45\x5b\xcd\x9b\x82\x56\x68\xb8\x2c\xe9\x0c\x97\x19\x5a\xe0\x79\x43\xeb\xbb\x1d\xf4\xcb\xa3\xff\xd3\xdc\x6d\x08\x5d\x20\xf2\x76\x43\xeb\x86\xa1\xc9\x64\x82\x06\x74\xf6\x86\xcc\x9b\x01\x7a\xf2\x04\xc9\xcf\x6b\x9a\xb7\x25\x41\x8f\xf9\xd7\xb6\xca\xc9\xa2\xa8\x48\x3e\x40\x5f\x29\x50\xc3\x1d\xb4\xab\x61\x89\xcf\x02\x94\x6a\x1c\x80\x89\x0f\x23\xbc\xce\xd1\x57\xf2\x61\xa8\xfb\xb2\xfb\xe8\xff\x0c\x35\xb4\x9d\xbd\x47\xef\x87\x7c\xde\x32\x64\xf5\x7f\x07\xfd\x82\x06\x2d\x23\x88\x35\x75\x31\x6f\x06\x7b\x8f\x1e\xf1\x25\x42\xd6\x1a\xa1\x7b\x2d\x12\x82\xca\x1f\x6b\x99\xd0\xc3\xd7\x09\x7d\x3a\x7e\x74\x83\x6b\xf4\x03\xad\xc8\x7f\x7c\x81\x26\x28\x58\x35\xbe\x58\x08\x21\xc4\x4b\x3d\x7b\x75\x72\x70\x71\x7c\x7a\x82\xec\x09\xde\xd3\x9f\x37\xa4\x5e\xd0\x7a\x8d\xab\x39\x41\x13\x24\xaa\x5f\x0e\xac\xb7\x83\x2b\x51\x58\xb7\xb1\xc6\xf5\xf5\xb0\xc2\x6b\xa2\x5a\xe1\x7f\x36\x98\x27\x4f\xec\xc7\xcb\x01\xaf\x30\xb8\x4a\xbc\x16\x90\x44\x13\xef\xdd\x86\xac\xd2\x2f\x08\x66\x6d\x4d\xa0\x70\x86\x4a\x3c\x23\x65\xef\xd6\x45\xd5\x58\x07\xd4\x17\x07\xac\xdd\x15\x18\xea\x80\xcf\xf3\x40\xbe\x2f\x16\x6a\x8e\x2f\xc5\xfb\x2b\xbb\x1f\xcd\xaa\xa6\xb7\xa8\x22\xb7\xe8\xa8\xae\x69\x2d\xaa\x22\x5c\xd6\x04\xe7\x77\xa8\xa4\x38\x27\xf9\x68\xe0\x34\xa1\x16\x12\x4d\xd0\xf8\xd3\x4f\xd1\xff\xcc\x4b\xcc\x18\xfa\x74\xec\xa1\xb2\x6e\x42\xbf\xe5\x95\x86\x1b\x5c\x93\xaa\xc9\xd0\xcf\xb4\x22\xe7\x1b\x32\xb7\x4b\x8a\x0e\x15\x6c\x34\xdd\xd4\x74\x43\xea\xa6\x20\x0c\x4d\x50\xd5\x96\xe5\x5e\xac\x10\x80\x42\x13\x24\x7e\xc4\x8a\xf0\x69\x42\x13\xdd\x18\xfa\x4a\xff\x1c\xc1\xa7\x77\xef\xf8\x86\xe7\x3f\xf3\x01\xda\x45\x83\x3f\xd5\x94\x36\x7f\x1e\x44\x5b\xb3\xbb\xa4\x01\x3e\x79\x62\x20\x5a\x25\xde\xbd\x43\xbf\xbc\x8f\x41\xe1\x85\x0f\x49\x49\x96\xb8\x21\x68\xe2\x14\xe0\x7f\x7c\x21\x7e\xb0\x8a\x48\x22\xe1\x8c\x97\x93\x2d\xeb\xd9\x85\x69\x4d\xac\x69\xfe\xbd\xfe\xc5\x61\x8f\x30\x63\xa4\x6e\xf8\xcf\x97\xb8\x99\xaf\x48\x8e\x26\x28\xbe\x74\x3e\xfe\xbc\xac\xe9\xba\x60\x1c\x33\x39\xa9\xdc\x40\x6d\x26\xd0\x6a\xff\x16\xd7\x44\x7f\xf7\x81\x24\x51\x6d\xf4\x86\xa1\x15\x66\x28\x27\x0d\x99\x37\x24\x17\x14\xc7\x07\x88\x7e\x1c\xde\x16\x55\x4e\x6f\xdf\x49\x6a\x31\x92\x1f\x7e\x44\x03\xf4\x34\x68\x89\xff\x0d\x38\xd4\x19\x21\x15\xe2\x34\xee\xb6\x2e\x9a\x86\x54\xa3\xbf\x57\xc9\xf2\x2f\x28\x6b\x50\x59\x5c\x93\xf2\x0e\xcd\x31\x27\xc3\x05\x13\xbd\xc1\x48\x75\x63\x43\xcb\xbb\x45\x51\x96\x48\x03\x17\x3b\x24\xdd\x0b\xbc\x68\x88\xd8\x2e\x7c\xa4\xc3\x97\x12\x40\x51\x2d\x35\x50\xbc\x29\x78\x53\x15\x6d\x50\x45\xe6\x84\x31\x5c\xdf\xa1\xdb\x15\xa9\x60\x29\x79\xb5\x82\xa9\x9d\x98\x6e\xe8\x78\x81\xee\x68\x8b\xd6\x2d\x1f\x05\xc5\x39\xa2\x15\xc9\x50\x4e\x11\xa3\x68\x46\x16\xb4\x26\xf0\x9a\x37\x2c\xc1\x8e\x76\x06\x3b\x2e\x8a\x1a\x3c\xb1\x70\xf7\x14\x4e\xcb\x91\x38\xcf\x5e\x0a\x14\xbf\x1b\xfe\x00\xe0\x3f\xe1\xdb\xe5\x93\xcc\x5b\xec\x25\x69\x76\x3b\x10\x0a\x49\x1a\xf2\xb3\xa0\x21\x30\x37\xf3\xb6\x0e\xb7\x30\xff\xbb\x5d\xf1\xd3\x65\x08\x5d\x16\xf8\x1e\x03\xc7\xff\x24\x38\xab\x64\x08\xed\x7d\xf0\xa6\x26\x4d\x5b\x8b\x99\xf6\xe6\x22\x73\x1e\x49\xd5\xae\x49\x8d\x67\x25\xd9\x45\x4d\xdd\x12\xf7\xeb\x9c\x56\x8b\x62\xd9\x5a\xdf\xcd\x4c\xee\xf4\x9c\x4a\x39\x05\x0f\x99\x4d\x39\x88\xa9\x04\xc1\x01\x3e\xab\xf1\x9a\x8c\xfe\x75\x86\x75\x81\xd9\xf5\x47\x18\x1a\x07\xf3\xeb\x0f\x08\x50\x72\x3a\xe5\xfb\x65\x0a\x44\xce\x21\x90\xe2\xe8\x5d\x54\x31\x42\x29\x49\xe2\x68\x85\xd9\xe9\x6d\xa5\xe7\x02\x38\x86\x34\x4d\x94\xf4\x70\xdf\x39\x75\x05\x79\xdd\xe5\x3b\x1e\x59\x1c\x87\xee\xaf\x3b\xec\x92\xd3\xab\x05\x1a\x3e\x56\xa4\x7a\x3a\xe5\xa3\x98\xe6\x05\xe3\x83\x9d\x2a\x28\x51\xca\xac\xb8\xaa\x13\x71\x5a\x02\x61\xde\x55\x35\xc2\x5d\x04\x3c\x86\x2a\xbf\x13\x7e\x57\xe7\x02\xb4\xc7\xa7\xae\xd2\xac\xb9\x40\x8a\x29\xde\x14\xb1\x7a\x21\xf7\xa4\x5a\xc9\x50\xa2\xbd\x7b\x92\x2c\x7e\x46\x37\x94\x33\xf2\x19\xfa\x44\x50\x89\x0f\xc0\x4a\xfb\x18\xfe\x67\x6e\x33\x67\x54\x7c\xd6\x3f\x78\x4c\xe1\xc2\xff\x6a\xfb\x4c\xf7\x7d\xb4\x24\x8d\xb3\xd1\xae\xc9\x9d\xdf\x51\xeb\xdc\x80\x8e\x2e\x09\x50\xbb\xd7\x45\xb3\x82\xe2\x7b\xc1\x8e\xe4\xa5\x77\xba\xc8\xbe\xcd\xd9\x5d\x5e\x93\xbb\xab\xbd\x18\x4a\x85\x5d\x55\xed\xf6\xe9\xb2\xa4\Line truncated
|
||||
|
||||
// FileSrcCustomCSS is "src/custom.css"
|
||||
var FileSrcCustomCSS = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x95\x51\x6f\xdb\x36\x10\xc7\xdf\xfd\x29\x6e\x08\x06\xb4\x41\x69\xcb\x4d\xb2\x38\x0a\x36\xa0\x48\x83\x75\x40\x83\x04\x4d\xba\x97\x61\x28\x28\xf1\x24\x5d\x43\xf1\x04\xf2\x64\x3b\x1d\xf6\xdd\x07\x5a\x92\x63\x3b\xf1\x06\x64\xb5\x9f\x24\x1d\x7f\x77\xbc\xff\x9f\xc7\xc9\x21\xa8\xef\xfa\x1b\x4d\x26\x00\x17\xdc\x3c\x78\x2a\x2b\x81\x57\xf9\x6b\xb8\xa2\xdc\x73\xe0\x42\xe0\x82\x7d\xc3\x5e\x0b\xb1\x1b\x03\xbc\xb3\x16\x3e\xc5\xa8\x00\x9f\x30\xa0\x9f\xa3\x19\x03\x7c\xa4\x1c\x5d\x40\x03\xad\x33\xe8\x41\x2a\x84\xab\xdf\xee\x86\xd7\x63\x80\x5b\xc4\xe1\x09\xc8\xad\x02\x1a\xcf\x5f\x31\x17\xf0\xcc\x02\x05\x7b\xb0\xeb\xef\x05\xfb\xba\x4b\x18\x2b\xfb\xbe\x7b\x3d\x9c\x8c\xc6\x3a\xc7\x2f\x68\x48\xd8\xc3\x5f\x23\x00\x80\x8c\x97\x2a\x54\xda\xf0\x22\x05\xc7\x0e\xe1\x07\xaa\x1b\xf6\xa2\x9d\x9c\xaf\x02\x1a\x0e\x14\x0b\x4a\xc1\xa3\xd5\x42\x73\x3c\x1f\xfd\x3d\x1a\x1d\x78\x0c\x0d\xbb\x80\x6a\x4e\xb8\x40\xaf\xac\xce\xd0\x86\x9e\x5a\x6b\x5f\x92\x53\xc2\x4d\x0a\xd3\xa4\x59\xae\x96\x8c\xeb\xa0\x6e\x68\xce\xa2\x2c\xb9\xfb\xb4\xe0\xbc\x1d\xe2\xb9\x15\x4b\x0e\xbb\x12\x3a\xfe\xd7\xc0\xee\xf7\x15\xfa\x0d\x3c\x26\xab\x50\x1b\xf4\x7d\xce\x7e\x71\x85\x51\x95\x14\x4e\x92\x79\x75\xde\x6f\xca\x1b\xf4\x29\x4c\x9b\x25\x04\xb6\x64\xe0\x20\xcf\xf3\xae\x88\xd8\x81\x98\xff\x4b\xad\xfd\xfd\x9a\xf1\xb8\x4b\x9d\x05\xb6\xad\xe0\x26\x49\x65\x2c\xc2\xf5\x26\x30\xb3\x2d\xae\x81\x4a\x6a\x58\x81\xc9\xcd\x75\xfc\xda\x41\x73\xb6\xec\x53\x20\x57\xa1\xa7\xbe\x9d\x99\xce\xef\x4b\xcf\xad\x33\x6a\xf7\x73\xdc\x75\xe9\x75\x53\xa9\x39\xfa\x40\xec\x54\x40\x1b\x7d\x72\xa0\xae\xa5\x5a\x97\x6a\x28\x34\x56\x3f\x6c\xf4\x4a\x37\xa4\x70\xd9\x58\xf6\xe8\x21\x6b\x45\xd8\x0d\x3a\x90\x53\x0b\x32\x52\xc5\x34\x24\xa4\xed\x5a\x89\xdb\x86\x9c\x43\xaf\x72\xf2\xb9\xc5\xc1\x0d\x4f\xaa\x5b\x54\x24\xdb\xa6\xd8\x4d\x38\xce\xfb\x3a\x55\x8d\xae\xfd\x45\xa7\xba\x90\x28\xda\xbf\x05\x75\x45\x76\x91\xff\xa1\x40\xc1\x4e\x54\xa0\x6f\x98\xc2\x2c\x1a\x69\xa3\xb1\xbe\xcc\xf4\xab\xe4\x4d\xfc\x8f\x67\xaf\x37\xc2\x17\xbd\x23\x4e\x93\x64\xb7\xeb\xfd\x8e\xce\xb7\x9c\x33\x4d\x92\x1f\x7b\xb7\x6b\x63\xc8\x95\xca\xf7\x96\x1a\x32\xf6\xcf\xc9\xf0\xbc\x72\xf6\xfa\x69\x58\xd5\xf9\xfd\x78\xf7\xb5\xc5\x62\x60\x45\x8d\x2b\x91\xe6\x0a\xa5\x62\x73\xdb\xe9\xbb\x25\xd9\x66\xdf\x3b\x4c\x2f\xe0\x6c\x5d\x8c\xe0\x52\x94\xb6\x54\xba\x14\x72\x74\x82\xfe\x79\xf0\xf8\xd7\xcb\xbb\x9d\xce\x8f\x0b\xd5\x59\x7a\x3b\xe9\x53\xdd\x0f\x92\x24\x29\x4c\xb1\x07\x7c\x73\x7d\xfb\x7f\xc8\xb3\xe3\xe9\xdb\x7d\xe4\x77\x77\x17\x1f\x5e\x8c\xce\x70\x96\x45\xcd\x9f\x45\xbf\xbf\xfc\x78\x79\x77\xf9\x62\xb6\x9e\x26\xc9\x5e\xf6\xcd\xe7\x97\xf7\xe3\xe4\x22\x49\x4e\x2e\xfa\x83\xa9\x74\x2b\xac\x42\x5b\x96\x18\x24\x22\x23\x4b\x91\x60\x0d\x41\x3c\xbb\xb2\xe7\x6c\xf9\xdc\xc5\x5b\xa3\x3b\xda\xa3\xc9\x21\xcf\xd1\x7b\x32\x08\xf5\xa2\x88\x33\xbf\xa0\x25\x1a\xb5\x20\xa9\x54\xbd\x28\x56\x40\x68\x6d\x8f\xee\x71\xbd\xc7\xa6\x49\xd2\x2c\x77\x4f\xfb\xe4\x10\x0a\xcf\x4e\x0c\xb3\x87\x08\x8c\x73\x5c\x3b\xb4\x1f\x38\x48\xbf\xfe\x9b\x22\x67\x70\x99\xc2\x51\x6c\x52\xd2\xab\x6b\xd0\x8a\xfe\x4c\x7b\x07\x57\x24\x5d\xcf\xd1\x5b\xfd\x30\xa6\xa0\xe6\x14\x28\x5b\xcf\xa2\x35\xf2\xec\xac\xeb\xfa\x56\x33\xb6\xee\x99\x61\x3c\x6f\xdd\x34\xb1\xc2\x48\xe5\x06\xdd\x53\xe4\xd9\x80\x0c\xa8\x7d\x5e\x01\xb9\xa6\x95\x3f\xe4\xa1\xc1\x9f\xbb\x37\x7f\x0e\x73\xa9\x3b\xc4\x29\x9c\x0e\xc7\xaf\xd6\x4b\x35\x4c\x8e\xa3\xb7\xbb\x87\x7d\x73\x52\xf4\xa5\xbc\x27\x6d\xb9\xdc\x57\xc3\xe1\xf3\x37\xe1\xdb\xc7\xbb\xeb\xb8\xc8\x8f\x8a\xd3\x0e\x17\xaf\xae\xed\x49\x71\x90\x24\x3f\xe5\x66\xb6\xad\xda\x3f\x01\x00\x00\xff\xff\x08\x1f\xf6\x65\x29\x09\x00\x00")
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "dist/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "src/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/systemjs/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/systemjs/dist/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/moment/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/moment/min/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/hellojs/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/hellojs/dist/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/core-js/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/core-js/client/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/zone.js/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = FS.Mkdir(CTX, "node_modules/zone.js/dist/", 0777)
|
||||
if err != nil && err != os.ErrExist {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
var f webdav.File
|
||||
|
||||
var rb *bytes.Reader
|
||||
var r *gzip.Reader
|
||||
|
||||
rb = bytes.NewReader(FileDistExplorerJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "dist/explorer.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileDistExplorerJsMap)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "dist/explorer.js.map", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileDistExplorerV1710Js)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "dist/explorer_v1.7.10.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileIndexHTML)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "index.html", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileNodeModulesCoreJsClientShimMinJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "node_modules/core-js/client/shim.min.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileNodeModulesHellojsDistHelloAllJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "node_modules/hellojs/dist/hello.all.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileNodeModulesMomentMinMomentWithLocalesMinJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "node_modules/moment/min/moment-with-locales.min.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileNodeModulesSystemjsDistSystemSrcJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "node_modules/systemjs/dist/system.src.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileNodeModulesZoneJsDistZoneJs)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "node_modules/zone.js/dist/zone.js", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
rb = bytes.NewReader(FileSrcCustomCSS)
|
||||
r, err = gzip.NewReader(rb)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = r.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err = FS.OpenFile(CTX, "src/custom.css", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
_, err = io.Copy(f, r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Handler = &webdav.Handler{
|
||||
FileSystem: FS,
|
||||
LockSystem: webdav.NewMemLS(),
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Open a file
|
||||
func (hfs *HTTPFS) Open(path string) (http.File, error) {
|
||||
path = hfs.Prefix + path
|
||||
|
||||
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return f, nil
|
||||
}
|
||||
|
||||
// ReadFile is adapTed from ioutil
|
||||
func ReadFile(path string) ([]byte, error) {
|
||||
f, err := FS.OpenFile(CTX, path, os.O_RDONLY, 0644)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
buf := bytes.NewBuffer(make([]byte, 0, bytes.MinRead))
|
||||
|
||||
// If the buffer overflows, we will get bytes.ErrTooLarge.
|
||||
// Return that as an error. Any other panic remains.
|
||||
defer func() {
|
||||
e := recover()
|
||||
if e == nil {
|
||||
return
|
||||
}
|
||||
if panicErr, ok := e.(error); ok && panicErr == bytes.ErrTooLarge {
|
||||
err = panicErr
|
||||
} else {
|
||||
panic(e)
|
||||
}
|
||||
}()
|
||||
_, err = buf.ReadFrom(f)
|
||||
return buf.Bytes(), err
|
||||
}
|
||||
|
||||
// WriteFile is adapTed from ioutil
|
||||
func WriteFile(filename string, data []byte, perm os.FileMode) error {
|
||||
f, err := FS.OpenFile(CTX, filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
n, err := f.Write(data)
|
||||
if err == nil && n < len(data) {
|
||||
err = io.ErrShortWrite
|
||||
}
|
||||
if err1 := f.Close(); err == nil {
|
||||
err = err1
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// WalkDirs looks for files in the given dir and returns a list of files in it
|
||||
// usage for all files in the b0x: WalkDirs("", false)
|
||||
func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error) {
|
||||
f, err := FS.OpenFile(CTX, name, os.O_RDONLY, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fileInfos, err := f.Readdir(0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for _, info := range fileInfos {
|
||||
filename := path.Join(name, info.Name())
|
||||
|
||||
if includeDirsInList || !info.IsDir() {
|
||||
files = append(files, filename)
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
files, err = WalkDirs(filename, includeDirsInList, files...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return files, nil
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
pkg: "assets"
|
||||
dest: "."
|
||||
output: "embed.go"
|
||||
fmt: true
|
||||
noprefix: true
|
||||
|
||||
compression:
|
||||
compress: true
|
||||
|
||||
custom:
|
||||
- files:
|
||||
- "../../assets/"
|
||||
base: "../../assets/"
|
||||
prefix: ""
|
||||
...
|
||||
@@ -1,10 +1,20 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
graphexplorer "github.com/owncloud/ocis/graph-explorer"
|
||||
"github.com/owncloud/ocis/graph-explorer/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/assetsfs"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
|
||||
// New returns a new http filesystem to serve assets.
|
||||
func New(opts ...Option) http.FileSystem {
|
||||
options := newOptions(opts...)
|
||||
return assetsfs.New(graphexplorer.Assets, "", options.Logger)
|
||||
}
|
||||
|
||||
// Option defines a single option function.
|
||||
type Option func(o *Options)
|
||||
|
||||
|
||||
@@ -42,9 +42,10 @@ type Tracing struct {
|
||||
|
||||
// GraphExplorer defines the available graph-explorer configuration.
|
||||
type GraphExplorer struct {
|
||||
ClientID string
|
||||
Issuer string
|
||||
GraphURL string
|
||||
ClientID string
|
||||
Issuer string
|
||||
GraphURLBase string
|
||||
GraphURLPath string
|
||||
}
|
||||
|
||||
// Config combines all available configuration parts.
|
||||
|
||||
@@ -35,7 +35,7 @@ func HealthWithConfig(cfg *config.Config) []cli.Flag {
|
||||
return []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9136"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9136"),
|
||||
Usage: "Address to debug endpoint",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -88,7 +88,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9136"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9136"),
|
||||
Usage: "Address to bind debug server",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -114,7 +114,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "http-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "0.0.0.0:9135"),
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "127.0.0.1:9135"),
|
||||
Usage: "Address to bind http server",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_HTTP_ADDR"},
|
||||
Destination: &cfg.HTTP.Addr,
|
||||
@@ -148,11 +148,18 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
Destination: &cfg.GraphExplorer.ClientID,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "graph-url",
|
||||
Value: flags.OverrideDefaultString(cfg.GraphExplorer.GraphURL, "https://localhost:9200/graph"),
|
||||
Usage: "Set the url to the graph api service",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_GRAPH_URL"},
|
||||
Destination: &cfg.GraphExplorer.GraphURL,
|
||||
Name: "graph-url-base",
|
||||
Value: flags.OverrideDefaultString(cfg.GraphExplorer.GraphURLBase, "https://localhost:9200"),
|
||||
Usage: "Set the base url to the graph api service",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_GRAPH_URL_BASE", "OCIS_URL"},
|
||||
Destination: &cfg.GraphExplorer.GraphURLBase,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "graph-url-path",
|
||||
Value: flags.OverrideDefaultString(cfg.GraphExplorer.GraphURLPath, "/graph"),
|
||||
Usage: "Set the url path to the graph api service",
|
||||
EnvVars: []string{"GRAPH_EXPLORER_GRAPH_URL_PATH"},
|
||||
Destination: &cfg.GraphExplorer.GraphURLPath,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "extensions",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||
svc "github.com/owncloud/ocis/graph-explorer/pkg/service/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||
"go-micro.dev/v4"
|
||||
)
|
||||
|
||||
// Server initializes the http service and server.
|
||||
@@ -30,7 +30,6 @@ func Server(opts ...Option) (http.Service, error) {
|
||||
chimiddleware.RealIP,
|
||||
chimiddleware.RequestID,
|
||||
middleware.NoCache,
|
||||
middleware.Cors,
|
||||
middleware.Secure,
|
||||
middleware.Version(
|
||||
"graph-explorer",
|
||||
|
||||
@@ -61,7 +61,7 @@ func (p GraphExplorer) ConfigJs(w http.ResponseWriter, r *http.Request) {
|
||||
if _, err := io.WriteString(w, fmt.Sprintf("window.Iss = \"%v\";", p.config.GraphExplorer.Issuer)); err != nil {
|
||||
p.logger.Error().Err(err).Msg("Could not write to response writer")
|
||||
}
|
||||
if _, err := io.WriteString(w, fmt.Sprintf("window.GraphUrl = \"%v\";", p.config.GraphExplorer.GraphURL)); err != nil {
|
||||
if _, err := io.WriteString(w, fmt.Sprintf("window.GraphUrl = \"%v\";", p.config.GraphExplorer.GraphURLBase+p.config.GraphExplorer.GraphURLPath)); err != nil {
|
||||
p.logger.Error().Err(err).Msg("Could not write to response writer")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,9 @@ type TokenManager struct {
|
||||
}
|
||||
|
||||
type Spaces struct {
|
||||
WebDavBase string
|
||||
WebDavBase string
|
||||
WebDavPath string
|
||||
DefaultQuota string
|
||||
}
|
||||
|
||||
// Config combines all available configuration parts.
|
||||
|
||||
@@ -42,7 +42,7 @@ func HealthWithConfig(cfg *config.Config) []cli.Flag {
|
||||
return []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9124"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9124"),
|
||||
Usage: "Address to debug endpoint",
|
||||
EnvVars: []string{"GRAPH_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -95,7 +95,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "debug-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "0.0.0.0:9124"),
|
||||
Value: flags.OverrideDefaultString(cfg.Debug.Addr, "127.0.0.1:9124"),
|
||||
Usage: "Address to bind debug server",
|
||||
EnvVars: []string{"GRAPH_DEBUG_ADDR"},
|
||||
Destination: &cfg.Debug.Addr,
|
||||
@@ -121,7 +121,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "http-addr",
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "0.0.0.0:9120"),
|
||||
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "127.0.0.1:9120"),
|
||||
Usage: "Address to bind http server",
|
||||
EnvVars: []string{"GRAPH_HTTP_ADDR"},
|
||||
Destination: &cfg.HTTP.Addr,
|
||||
@@ -143,11 +143,26 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "spaces-webdav-base",
|
||||
Value: flags.OverrideDefaultString(cfg.Spaces.WebDavBase, "https://localhost:9200/dav/spaces/"),
|
||||
Value: flags.OverrideDefaultString(cfg.Spaces.WebDavBase, "https://localhost:9200"),
|
||||
Usage: "spaces webdav base URL to use when rendering drive WabDAV URLs",
|
||||
EnvVars: []string{"GRAPH_SPACES_WEBDAV_BASE"},
|
||||
EnvVars: []string{"GRAPH_SPACES_WEBDAV_BASE", "OCIS_URL"},
|
||||
Destination: &cfg.Spaces.WebDavBase,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "spaces-webdav-path",
|
||||
Value: flags.OverrideDefaultString(cfg.Spaces.WebDavPath, "/dav/spaces/"),
|
||||
Usage: "spaces webdav path to use when rendering drive WabDAV URLs",
|
||||
EnvVars: []string{"GRAPH_SPACES_WEBDAV_PATH"},
|
||||
Destination: &cfg.Spaces.WebDavPath,
|
||||
},
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "default-space-quota",
|
||||
Value: flags.OverrideDefaultString(cfg.Spaces.DefaultQuota, "1000000000"),
|
||||
Usage: "default quota used for all spaces if no custom quota was given",
|
||||
EnvVars: []string{"GRAPH_SPACES_DEFAULT_QUOTA"},
|
||||
Destination: &cfg.Spaces.DefaultQuota,
|
||||
},
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "jwt-secret",
|
||||
|
||||
@@ -61,7 +61,7 @@ func Auth(opts ...account.Option) func(http.Handler) http.Handler {
|
||||
errorcode.InvalidAuthenticationToken.Render(w, r, http.StatusUnauthorized, "invalid token")
|
||||
return
|
||||
}
|
||||
if ok, err := scope.VerifyScope(tokenScope, r); err != nil || !ok {
|
||||
if ok, err := scope.VerifyScope(ctx, tokenScope, r); err != nil || !ok {
|
||||
opt.Logger.Error().Err(err).Msg("verifying scope failed")
|
||||
errorcode.InvalidAuthenticationToken.Render(w, r, http.StatusUnauthorized, "verifying scope failed")
|
||||
return
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||
graphMiddleware "github.com/owncloud/ocis/graph/pkg/middleware"
|
||||
svc "github.com/owncloud/ocis/graph/pkg/service/v0"
|
||||
@@ -9,6 +8,7 @@ import (
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/http"
|
||||
"github.com/owncloud/ocis/ocis-pkg/version"
|
||||
"go-micro.dev/v4"
|
||||
)
|
||||
|
||||
// Server initializes the http service and server.
|
||||
|
||||
+130
-20
@@ -1,16 +1,20 @@
|
||||
package svc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"math"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/CiscoM31/godata"
|
||||
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
userv1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
cs3rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
@@ -23,6 +27,8 @@ import (
|
||||
sproto "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
settingsSvc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
msgraph "github.com/owncloud/open-graph-api-go"
|
||||
|
||||
merrors "go-micro.dev/v4/errors"
|
||||
)
|
||||
|
||||
// GetDrives implements the Service interface.
|
||||
@@ -54,16 +60,16 @@ func (g Graph) GetDrives(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
g.logger.Error().Err(err).Msg("error sending list storage spaces grpc request")
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, res.Status.Message)
|
||||
return
|
||||
}
|
||||
|
||||
wdu, err := url.Parse(g.config.Spaces.WebDavBase)
|
||||
wdu, err := url.Parse(g.config.Spaces.WebDavBase + g.config.Spaces.WebDavPath)
|
||||
if err != nil {
|
||||
g.logger.Error().Err(err).Msg("error parsing url")
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
files, err := formatDrives(wdu, res.StorageSpaces)
|
||||
files, err := g.formatDrives(ctx, wdu, res.StorageSpaces)
|
||||
if err != nil {
|
||||
g.logger.Error().Err(err).Msg("error encoding response as json")
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, err.Error())
|
||||
@@ -178,26 +184,18 @@ func (g Graph) CreateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
driveType = *drive.DriveType
|
||||
}
|
||||
switch driveType {
|
||||
case "":
|
||||
case "", "project":
|
||||
driveType = "project"
|
||||
case "share":
|
||||
errorcode.GeneralException.Render(w, r, http.StatusBadRequest, "drives of type share cannot be created via this api")
|
||||
}
|
||||
|
||||
var quota uint64
|
||||
if drive.Quota != nil && drive.Quota.Total != nil {
|
||||
quota = uint64(*drive.Quota.Total)
|
||||
} else {
|
||||
quota = 65536 // set default quota if no value was sent.
|
||||
default:
|
||||
errorcode.GeneralException.Render(w, r, http.StatusBadRequest, fmt.Sprintf("drives of type %s cannot be created via this api", driveType))
|
||||
return
|
||||
}
|
||||
|
||||
csr := provider.CreateStorageSpaceRequest{
|
||||
Owner: us,
|
||||
Type: driveType,
|
||||
Name: spaceName,
|
||||
Quota: &provider.Quota{
|
||||
QuotaMaxBytes: quota,
|
||||
},
|
||||
Quota: getQuota(drive.Quota, g.config.Spaces.DefaultQuota),
|
||||
}
|
||||
|
||||
resp, err := client.CreateStorageSpace(r.Context(), &csr)
|
||||
@@ -208,9 +206,10 @@ func (g Graph) CreateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if resp.GetStatus().GetCode() != v1beta11.Code_CODE_OK {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, "")
|
||||
return
|
||||
}
|
||||
|
||||
wdu, err := url.Parse(g.config.Spaces.WebDavBase)
|
||||
wdu, err := url.Parse(g.config.Spaces.WebDavBase + g.config.Spaces.WebDavPath)
|
||||
if err != nil {
|
||||
g.logger.Error().Err(err).Msg("error parsing url")
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, err.Error())
|
||||
@@ -238,7 +237,8 @@ func (g Graph) UpdateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
req, err := godata.ParseRequest(sanitized, r.URL.Query(), true)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
errorcode.GeneralException.Render(w, r, http.StatusBadRequest, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
if req.FirstSegment.Identifier.Get() == "" {
|
||||
@@ -256,6 +256,7 @@ func (g Graph) UpdateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
if len(identifierParts) != 2 {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusBadRequest, fmt.Sprintf("invalid resource id: %v", req.FirstSegment.Identifier.Get()))
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
storageID, opaqueID := identifierParts[0], identifierParts[1]
|
||||
@@ -270,15 +271,31 @@ func (g Graph) UpdateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
// Prepare the object to apply the diff from. The properties on StorageSpace will overwrite
|
||||
// the original storage space.
|
||||
StorageSpace: &provider.StorageSpace{
|
||||
Id: &storageprovider.StorageSpaceId{
|
||||
OpaqueId: req.FirstSegment.Identifier.Get(),
|
||||
},
|
||||
Root: &provider.ResourceId{
|
||||
StorageId: storageID,
|
||||
OpaqueId: opaqueID,
|
||||
},
|
||||
Name: *drive.Name,
|
||||
},
|
||||
}
|
||||
|
||||
if drive.Name != nil {
|
||||
updateSpaceRequest.StorageSpace.Name = *drive.Name
|
||||
}
|
||||
|
||||
if drive.Quota.HasTotal() {
|
||||
user := ctxpkg.ContextMustGetUser(r.Context())
|
||||
canSetSpaceQuota, err := canSetSpaceQuota(r.Context(), user)
|
||||
if err != nil {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
}
|
||||
if !canSetSpaceQuota {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusUnauthorized, "user is not allowed to set the space quota")
|
||||
return
|
||||
}
|
||||
updateSpaceRequest.StorageSpace.Quota = &storageprovider.Quota{
|
||||
QuotaMaxBytes: uint64(*drive.Quota.Total),
|
||||
}
|
||||
@@ -287,10 +304,12 @@ func (g Graph) UpdateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
resp, err := client.UpdateStorageSpace(r.Context(), updateSpaceRequest)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
if resp.GetStatus().GetCode() != v1beta11.Code_CODE_OK {
|
||||
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, "")
|
||||
return
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
@@ -399,15 +418,106 @@ func cs3StorageSpaceToDrive(baseURL *url.URL, space *storageprovider.StorageSpac
|
||||
return drive, nil
|
||||
}
|
||||
|
||||
func formatDrives(baseURL *url.URL, mds []*storageprovider.StorageSpace) ([]*msgraph.Drive, error) {
|
||||
func (g Graph) formatDrives(ctx context.Context, baseURL *url.URL, mds []*storageprovider.StorageSpace) ([]*msgraph.Drive, error) {
|
||||
responses := make([]*msgraph.Drive, 0, len(mds))
|
||||
for i := range mds {
|
||||
res, err := cs3StorageSpaceToDrive(baseURL, mds[i])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
qta, err := g.getDriveQuota(ctx, mds[i])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
res.Quota = &qta
|
||||
responses = append(responses, res)
|
||||
}
|
||||
|
||||
return responses, nil
|
||||
}
|
||||
|
||||
func (g Graph) getDriveQuota(ctx context.Context, space *storageprovider.StorageSpace) (msgraph.Quota, error) {
|
||||
client, err := g.GetClient()
|
||||
if err != nil {
|
||||
g.logger.Error().Err(err).Msg("error creating grpc client")
|
||||
return msgraph.Quota{}, err
|
||||
}
|
||||
|
||||
req := &gateway.GetQuotaRequest{
|
||||
Ref: &provider.Reference{
|
||||
ResourceId: &provider.ResourceId{
|
||||
StorageId: space.Root.StorageId,
|
||||
OpaqueId: space.Root.OpaqueId,
|
||||
},
|
||||
Path: ".",
|
||||
},
|
||||
}
|
||||
res, err := client.GetQuota(ctx, req)
|
||||
switch {
|
||||
case err != nil:
|
||||
g.logger.Error().Err(err).Msg("error sending get quota grpc request")
|
||||
return msgraph.Quota{}, err
|
||||
case res.Status.Code != cs3rpc.Code_CODE_OK:
|
||||
g.logger.Error().Err(err).Msg("error sending sending get quota grpc request")
|
||||
return msgraph.Quota{}, err
|
||||
}
|
||||
|
||||
total := int64(res.TotalBytes)
|
||||
|
||||
used := int64(res.UsedBytes)
|
||||
remaining := total - used
|
||||
qta := msgraph.Quota{
|
||||
Remaining: &remaining,
|
||||
Total: &total,
|
||||
Used: &used,
|
||||
}
|
||||
state := calculateQuotaState(total, used)
|
||||
qta.State = &state
|
||||
|
||||
return qta, nil
|
||||
}
|
||||
|
||||
func calculateQuotaState(total int64, used int64) (state string) {
|
||||
percent := (float64(used) / float64(total)) * 100
|
||||
|
||||
switch {
|
||||
case percent <= float64(75):
|
||||
return "normal"
|
||||
case percent <= float64(90):
|
||||
return "nearing"
|
||||
case percent <= float64(99):
|
||||
return "critical"
|
||||
default:
|
||||
return "exceeded"
|
||||
}
|
||||
}
|
||||
|
||||
func getQuota(quota *msgraph.Quota, defaultQuota string) *provider.Quota {
|
||||
switch {
|
||||
case quota != nil && quota.Total != nil:
|
||||
if q := *quota.Total; q >= 0 {
|
||||
return &provider.Quota{QuotaMaxBytes: uint64(q)}
|
||||
}
|
||||
fallthrough
|
||||
case defaultQuota != "":
|
||||
if q, err := strconv.ParseInt(defaultQuota, 10, 64); err == nil && q >= 0 {
|
||||
return &provider.Quota{QuotaMaxBytes: uint64(q)}
|
||||
}
|
||||
fallthrough
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func canSetSpaceQuota(ctx context.Context, user *userv1beta1.User) (bool, error) {
|
||||
settingsService := sproto.NewPermissionService("com.owncloud.api.settings", grpc.DefaultClient)
|
||||
_, err := settingsService.GetPermissionByID(ctx, &sproto.GetPermissionByIDRequest{PermissionId: settingsSvc.SetSpaceQuotaPermissionID})
|
||||
if err != nil {
|
||||
merror := merrors.FromError(err)
|
||||
if merror.Status == http.StatusText(http.StatusNotFound) {
|
||||
return false, nil
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package idp
|
||||
|
||||
import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed assets/*
|
||||
var Assets embed.FS
|
||||
+121
-123
@@ -3,128 +3,29 @@
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"homepage": ".",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@material-ui/core": "^4.8.0",
|
||||
"@material-ui/icons": "^4.5.0",
|
||||
"@svgr/webpack": "5.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
||||
"@typescript-eslint/parser": "^4.32.0",
|
||||
"axios": "^0.21.1",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "8.2.2",
|
||||
"babel-plugin-named-asset-import": "^0.3.6",
|
||||
"babel-preset-react-app": "^10.0.0",
|
||||
"camelcase": "^6.2.0",
|
||||
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
||||
"classnames": "^2.3.1",
|
||||
"css-loader": "5.2.6",
|
||||
"dotenv": "10.0.0",
|
||||
"dotenv-expand": "5.1.0",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-config-react-app": "^6.0.0",
|
||||
"eslint-loader": "4.0.2",
|
||||
"eslint-plugin-flowtype": "5.7.2",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jsx-a11y": "6.4.1",
|
||||
"eslint-plugin-react": "7.22.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"file-loader": "6.2.0",
|
||||
"fs-extra": "^9.1.0",
|
||||
"html-webpack-plugin": "4.5.2",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"jest-environment-jsdom-fourteen": "1.0.1",
|
||||
"jest-resolve": "27.2.2",
|
||||
"jest-watch-typeahead": "0.6.1",
|
||||
"kpop": "https://download.kopano.io/community/kapp:/kpop-2.2.0.tgz",
|
||||
"mini-css-extract-plugin": "1.3.9",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.4",
|
||||
"pnp-webpack-plugin": "1.6.4",
|
||||
"postcss-flexbugs-fixes": "4.1.0",
|
||||
"postcss-loader": "3.0.0",
|
||||
"postcss-normalize": "9.0.0",
|
||||
"postcss-preset-env": "6.7.0",
|
||||
"postcss-safe-parser": "5.0.2",
|
||||
"query-string": "^6.14.1",
|
||||
"react": "^17.0.1",
|
||||
"react-app-polyfill": "^2.0.0",
|
||||
"react-dev-utils": "11.0.4",
|
||||
"react-dom": "17.0.1",
|
||||
"react-intl": "^5.20.6",
|
||||
"react-loadable": "^5.3.1",
|
||||
"react-redux": "^7.2.4",
|
||||
"react-router": "^5.0.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"redux": "^4.0.5",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.2.0",
|
||||
"render-if": "^0.1.1",
|
||||
"resolve": "1.20.0",
|
||||
"resolve-url-loader": "^3.1.2",
|
||||
"sass-loader": "11.0.1",
|
||||
"semver": "7.3.4",
|
||||
"style-loader": "2.0.0",
|
||||
"terser-webpack-plugin": "4.2.3",
|
||||
"ts-pnp": "1.2.0",
|
||||
"typeface-roboto": "^1.1.13",
|
||||
"url-loader": "4.1.1",
|
||||
"webpack": "4.46.0",
|
||||
"webpack-dev-server": "^3.11.2",
|
||||
"webpack-manifest-plugin": "3.1.0",
|
||||
"workbox-webpack-plugin": "4.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node scripts/start.js",
|
||||
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||
"build": "node scripts/build.js && rm -f build/service-worker.js",
|
||||
"test": "node scripts/test.js --env=jsdom",
|
||||
"licenses": "NODE_PATH=./node_modules node ../scripts/js-license-ranger.js",
|
||||
"deduplicate": "yarn-deduplicate -s fewer yarn.lock",
|
||||
"analyze": "source-map-explorer 'build/static/js/*.js'"
|
||||
"licenses": "NODE_PATH=./node_modules node ../scripts/js-license-ranger.js",
|
||||
"start": "node scripts/start.js",
|
||||
"test": "node scripts/test.js --env=jsdom"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "7.13.10",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-plugin-i18n-text": "^1.0.0",
|
||||
"eslint-plugin-jest": "^24.2.1",
|
||||
"eslint-plugin-react": "7.22.0",
|
||||
"eslint-plugin-react-intl-format": "^1.1.6",
|
||||
"prop-types": "^15.6.2",
|
||||
"react-intl-cra": "^0.3.3",
|
||||
"react-intl-po": "^2.2.2",
|
||||
"source-map-explorer": "^2.5.2",
|
||||
"yarn-deduplicate": "^3.1.0"
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react-app"
|
||||
]
|
||||
},
|
||||
"browserslist": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
],
|
||||
"jest": {
|
||||
"roots": [
|
||||
"<rootDir>/src"
|
||||
],
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.js"
|
||||
],
|
||||
"setupFiles": [
|
||||
"react-app-polyfill/jsdom"
|
||||
],
|
||||
"setupFilesAfterEnv": [],
|
||||
"testMatch": [
|
||||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
||||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"testEnvironment": "jest-environment-jsdom-fourteen",
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"node_modules/?!(kpop)"
|
||||
],
|
||||
"modulePaths": [],
|
||||
"moduleNameMapper": {
|
||||
"^react-native$": "react-native-web",
|
||||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
||||
},
|
||||
"moduleFileExtensions": [
|
||||
"web.js",
|
||||
"js",
|
||||
@@ -137,20 +38,117 @@
|
||||
"jsx",
|
||||
"node"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^react-native$": "react-native-web",
|
||||
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
||||
},
|
||||
"modulePaths": [],
|
||||
"roots": [
|
||||
"<rootDir>/src"
|
||||
],
|
||||
"setupFiles": [
|
||||
"react-app-polyfill/jsdom"
|
||||
],
|
||||
"setupFilesAfterEnv": [],
|
||||
"testEnvironment": "jest-environment-jsdom-fourteen",
|
||||
"testMatch": [
|
||||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
||||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"node_modules/?!(kpop)"
|
||||
],
|
||||
"watchPlugins": [
|
||||
"jest-watch-typeahead/filename",
|
||||
"jest-watch-typeahead/testname"
|
||||
]
|
||||
},
|
||||
"browserslist": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
],
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react-app"
|
||||
]
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@material-ui/core": "^4.8.0",
|
||||
"@material-ui/icons": "^4.5.0",
|
||||
"axios": "^0.21.1",
|
||||
"classnames": "^2.3.1",
|
||||
"dotenv": "10.0.0",
|
||||
"dotenv-expand": "5.1.0",
|
||||
"file-loader": "6.2.0",
|
||||
"fs-extra": "^9.1.0",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"kpop": "https://download.kopano.io/community/kapp:/kpop-2.2.0.tgz",
|
||||
"query-string": "^6.14.1",
|
||||
"react": "^17.0.1",
|
||||
"react-app-polyfill": "^2.0.0",
|
||||
"react-dom": "17.0.1",
|
||||
"react-intl": "^5.20.6",
|
||||
"react-loadable": "^5.3.1",
|
||||
"react-redux": "^7.2.4",
|
||||
"react-router": "^5.0.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"redux": "^4.0.5",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.2.0",
|
||||
"render-if": "^0.1.1",
|
||||
"semver": "7.3.4",
|
||||
"typeface-roboto": "^1.1.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/runtime": "7.13.10",
|
||||
"@svgr/webpack": "5.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
||||
"@typescript-eslint/parser": "^4.32.0",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "8.2.2",
|
||||
"babel-plugin-named-asset-import": "^0.3.6",
|
||||
"babel-preset-react-app": "^10.0.0",
|
||||
"camelcase": "^6.2.0",
|
||||
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
||||
"css-loader": "5.2.6",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-config-react-app": "^6.0.0",
|
||||
"eslint-loader": "4.0.2",
|
||||
"eslint-plugin-flowtype": "5.7.2",
|
||||
"eslint-plugin-i18n-text": "^1.0.0",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jest": "^24.2.1",
|
||||
"eslint-plugin-jsx-a11y": "6.4.1",
|
||||
"eslint-plugin-react": "7.22.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-react-intl-format": "^1.1.6",
|
||||
"html-webpack-plugin": "4.5.2",
|
||||
"jest": "26.6.3",
|
||||
"jest-environment-jsdom-fourteen": "1.0.1",
|
||||
"jest-resolve": "27.2.2",
|
||||
"jest-watch-typeahead": "0.6.1",
|
||||
"mini-css-extract-plugin": "1.3.9",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.4",
|
||||
"pnp-webpack-plugin": "1.6.4",
|
||||
"postcss-flexbugs-fixes": "4.1.0",
|
||||
"postcss-loader": "3.0.0",
|
||||
"postcss-normalize": "9.0.0",
|
||||
"postcss-preset-env": "6.7.0",
|
||||
"postcss-safe-parser": "5.0.2",
|
||||
"prop-types": "^15.6.2",
|
||||
"react-dev-utils": "11.0.4",
|
||||
"react-intl-cra": "^0.3.3",
|
||||
"react-intl-po": "^2.2.2",
|
||||
"resolve": "1.20.0",
|
||||
"resolve-url-loader": "^3.1.2",
|
||||
"sass-loader": "11.0.1",
|
||||
"source-map-explorer": "^2.5.2",
|
||||
"style-loader": "2.0.0",
|
||||
"terser-webpack-plugin": "4.2.3",
|
||||
"ts-pnp": "1.2.0",
|
||||
"url-loader": "4.1.1",
|
||||
"webpack": "4.46.0",
|
||||
"webpack-dev-server": "^3.11.2",
|
||||
"webpack-manifest-plugin": "3.1.0",
|
||||
"workbox-webpack-plugin": "4.3.1",
|
||||
"yarn-deduplicate": "^3.1.0"
|
||||
}
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
package assets
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/owncloud/ocis/idp/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
)
|
||||
|
||||
//go:generate make -C ../.. embed.yml
|
||||
|
||||
// assets gets initialized by New and provides the handler.
|
||||
type assets struct {
|
||||
logger log.Logger
|
||||
config *config.Config
|
||||
}
|
||||
|
||||
// Open just implements the HTTP filesystem interface.
|
||||
func (a assets) Open(original string) (http.File, error) {
|
||||
if a.config.Asset.Path != "" {
|
||||
if stat, err := os.Stat(a.config.Asset.Path); err == nil && stat.IsDir() {
|
||||
custom := path.Join(
|
||||
a.config.Asset.Path,
|
||||
original,
|
||||
)
|
||||
|
||||
if _, err := os.Stat(custom); !os.IsNotExist(err) {
|
||||
f, err := os.Open(custom)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return f, nil
|
||||
}
|
||||
} else {
|
||||
a.logger.Warn().
|
||||
Str("path", a.config.Asset.Path).
|
||||
Msg("Assets directory doesn't exist")
|
||||
}
|
||||
}
|
||||
|
||||
return FS.OpenFile(
|
||||
CTX,
|
||||
original,
|
||||
os.O_RDONLY,
|
||||
0644,
|
||||
)
|
||||
}
|
||||
|
||||
// New returns a new http filesystem to serve assets.
|
||||
func New(opts ...Option) http.FileSystem {
|
||||
options := newOptions(opts...)
|
||||
|
||||
return assets{
|
||||
logger: options.Logger,
|
||||
config: options.Config,
|
||||
}
|
||||
}
|
||||
Loaded 100 of 281 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user