Skip to content

Commit

Permalink
ab951cc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 2, 2024
1 parent 3566f6a commit 4ef9854
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"dist/"
],
"overrides": [
{
"files": "bin/**/*.[mc]js",
"env": {
"node": true
}
},
{
"files": "dev/**/*.[mc]js",
"env": {
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog for Weavy

## v19.0.4

<time>2024-01-02</time>

* Minimum requirements for uikit-react now includes react v16 and optionally react-scripts v5.

## v19.0.3

<time>2023-12-21</time>
Expand Down
4 changes: 2 additions & 2 deletions dev/auth-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ app.post("/webhooks", (req, res) => {
res.end("OK");
});

app.get("/contextual/:id", async (req, res) => {
app.get("/api/contextual/:id", async (req, res) => {
// setup contextual app
let response = await fetch(new URL("/api/apps/init", weavyUrl), {
method: "POST",
Expand All @@ -72,7 +72,7 @@ app.get("/contextual/:id", async (req, res) => {
res.end(await response.text());
});

app.get("/token", async (req, res) => {
app.get("/api/token", async (req, res) => {
let username = currentUser; // get user from session

if ((!req.query.refresh || req.query.refresh === "false") && _tokens.find((t) => t.username === username)) {
Expand Down
2 changes: 1 addition & 1 deletion dev/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const server = createServer(esbuildDevelopmentConfig, {
static: "./demo",
proxy: (path) => {
if (path.startsWith("/api")) {
return path.replace(/^\/api/, "http://localhost:3001");
return path.replace(/^\/api/, "http://localhost:3001/api");
}
},
onSendHtml: (html) => {
Expand Down
7 changes: 5 additions & 2 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weavy/uikit-web",
"version": "19.0.3",
"version": "19.0.4",
"author": "Weavy",
"description": "Web components UI-kit for Weavy",
"homepage": "https://github.com/weavy/weavy-uikit-web",
Expand Down Expand Up @@ -32,6 +32,9 @@
"test:build": "web-test-runner --config dev/web-test-runner.config.mjs",
"test:watch": "web-test-runner --config dev/web-test-runner.config.mjs --watch"
},
"bin": {
"weavy": "./bin/weavy-cli.mjs"
},
"dependencies": {
"@codemirror/autocomplete": "^6.11.1",
"@codemirror/commands": "^6.3.2",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"exclude": [
"node_modules",
"dev/**/*.[mc]js",
"bin/**/*.[mc]js",
"**/dist/*"
]
}

0 comments on commit 4ef9854

Please sign in to comment.