Skip to content

Commit

Permalink
GH-1846 Emulate intermediate directories based on user's session deta…
Browse files Browse the repository at this point in the history
…ils (Resolve #1846)
  • Loading branch information
dzikoysk committed Nov 13, 2023
1 parent dddff15 commit dc7b943
Show file tree
Hide file tree
Showing 10 changed files with 294 additions and 25 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM openjdk:20-slim AS build
COPY . /home/reposilite-build
WORKDIR /home/reposilite-build
RUN \
apt-get update; apt-get install -y curl
rm -rf reposilite-frontend/node_modules
RUN \
apt-get update; apt-get install -y curl
RUN \
export GRADLE_OPTS="-Djdk.lang.Process.launchMechanism=vfork" && \
chmod +x gradlew && \
Expand Down
4 changes: 2 additions & 2 deletions reposilite-frontend/fake-api/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const basicAuth = (req) => {
const authorized = (req, success, failure) => {
const [login, password] = basicAuth(req)

if (login == 'name' && password == 'secret') {
if (login === 'name' && password === 'secret') {
console.log('Authorization successful for request ' + req.url)
success()
} else failure && failure()
Expand Down Expand Up @@ -66,4 +66,4 @@ module.exports = {
createFileDetails,
createDirectoryDetails,
generateDayWiseTimeSeries
}
}
6 changes: 5 additions & 1 deletion reposilite-frontend/fake-api/fake-reposilite-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ application
createdAt: Date.now(),
description: "Description",
},
permissions: [{ identifier: "access-token:manager" }],
permissions: [
{
identifier: "access-token:read"
}
],
routes: [
{
path: "/",
Expand Down
210 changes: 210 additions & 0 deletions reposilite-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion reposilite-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@
"vue3-tabs": "^0.1.13-beta.3"
},
"devDependencies": {
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vitejs/plugin-vue": "^4.4.1",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vue/compiler-sfc": "^3.3.8",
"body-parser": "^1.20.2",
"concurrently": "^8.2.2",
"eslint": "^8.53.0",
"eslint-plugin-vue": "^9.18.1",
"express": "^4.18.2",
"express-ws": "^5.0.2",
"jsdoc": "^4.0.2",
"json-server": "^0.17.4",
"nodemon": "^3.0.1",
"rollup-plugin-visualizer": "^5.9.2",
Expand Down
Loading

0 comments on commit dc7b943

Please sign in to comment.