mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
chore(deps): regular dependency updates (#4577)
This commit is contained in:
14
.github/dependabot.yml
vendored
14
.github/dependabot.yml
vendored
@@ -22,12 +22,20 @@ updates:
|
||||
- "dependency-upgrade"
|
||||
open-pull-requests-limit: 50
|
||||
|
||||
# Maintain dependencies for Npm modules
|
||||
# Maintain dependencies for NPM modules
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/ui"
|
||||
schedule:
|
||||
# Check for updates to Npm modules every week
|
||||
interval: "weekly"
|
||||
day: "sunday"
|
||||
time: "09:00"
|
||||
open-pull-requests-limit: 50
|
||||
labels:
|
||||
- "dependency-upgrade"
|
||||
open-pull-requests-limit: 50
|
||||
ignore:
|
||||
# Ignore updates of version 1.x, as we're using beta of 2.x
|
||||
- dependency-name: "vue-virtual-scroller"
|
||||
versions: ["1.x"]
|
||||
# Ignore major versions greater than 8, as it's still known to be flaky
|
||||
- dependency-name: "eslint"
|
||||
versions: [">8"]
|
||||
@@ -1,5 +1,2 @@
|
||||
public/vscode/
|
||||
public/vscode-web/
|
||||
|
||||
node/
|
||||
node_modules/
|
||||
2274
ui/package-lock.json
generated
2274
ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"name": "kestra",
|
||||
"version": "0.1.0",
|
||||
"version": "0.18.0",
|
||||
"private": true,
|
||||
"packageManager": "npm@9.8.1",
|
||||
"type": "module",
|
||||
"packageManager": "npm@9.9.3",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
"build": "vite build --emptyOutDir",
|
||||
@@ -12,17 +13,17 @@
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@kestra-io/ui-libs": "^0.0.53",
|
||||
"@kestra-io/ui-libs": "^0.0.57",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.2",
|
||||
"@vue-flow/core": "^1.39.1",
|
||||
"@vue-flow/core": "^1.39.3",
|
||||
"ansi-to-html": "^0.7.2",
|
||||
"axios": "^1.7.2",
|
||||
"axios": "^1.7.3",
|
||||
"bootstrap": "^5.3.3",
|
||||
"buffer": "^6.0.3",
|
||||
"chart.js": "^4.4.3",
|
||||
"chartjs-chart-treemap": "^2.3.1",
|
||||
"core-js": "^3.37.1",
|
||||
"core-js": "^3.38.0",
|
||||
"cronstrue": "^2.50.0",
|
||||
"dagre": "^0.8.5",
|
||||
"element-plus": "^2.7.8",
|
||||
@@ -39,20 +40,18 @@
|
||||
"moment": "^2.30.1",
|
||||
"moment-range": "4.0.2",
|
||||
"moment-timezone": "^0.5.45",
|
||||
"node-modules-polyfill": "^0.1.4",
|
||||
"nprogress": "^0.2.0",
|
||||
"pdfjs-dist": "^4.5.136",
|
||||
"posthog-js": "^1.150.1",
|
||||
"posthog-js": "^1.154.5",
|
||||
"throttle-debounce": "^5.0.2",
|
||||
"vite-plugin-eslint": "^1.8.1",
|
||||
"vue": "^3.4.34",
|
||||
"vue": "^3.4.36",
|
||||
"vue-axios": "3.5.2",
|
||||
"vue-chartjs": "^5.3.1",
|
||||
"vue-gtag": "^2.0.1",
|
||||
"vue-i18n": "^9.13.1",
|
||||
"vue-material-design-icons": "^5.3.0",
|
||||
"vue-router": "^4.4.0",
|
||||
"vue-sidebar-menu": "^5.4.0",
|
||||
"vue-router": "^4.4.3",
|
||||
"vue-sidebar-menu": "^5.4.1",
|
||||
"vue-virtual-scroller": "^2.0.0-beta.8",
|
||||
"vue3-popper": "^1.5.0",
|
||||
"vue3-runtime-template": "^1.0.2",
|
||||
@@ -62,10 +61,11 @@
|
||||
"yaml": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
||||
"@rushstack/eslint-patch": "^1.10.4",
|
||||
"@shikijs/markdown-it": "^1.6.3",
|
||||
"@typescript-eslint/parser": "^7.17.0",
|
||||
"@vitejs/plugin-vue": "^5.1.1",
|
||||
"@shikijs/markdown-it": "^1.12.1",
|
||||
"@typescript-eslint/parser": "^8.0.1",
|
||||
"@vitejs/plugin-vue": "^5.1.2",
|
||||
"@vue/eslint-config-prettier": "^9.0.0",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"decompress": "^4.2.1",
|
||||
@@ -77,13 +77,14 @@
|
||||
"prettier": "^3.3.3",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"rollup-plugin-visualizer": "^5.12.0",
|
||||
"sass": "^1.77.4",
|
||||
"sass": "^1.77.8",
|
||||
"typescript": "^5.5.4",
|
||||
"vite": "^5.3.5",
|
||||
"vitest": "^2.0.4"
|
||||
"vite-plugin-eslint": "^1.8.1",
|
||||
"vitest": "^2.0.5"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.19.0"
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.20.0"
|
||||
},
|
||||
"overrides": {
|
||||
"bootstrap": {
|
||||
|
||||
30
ui/plugins/commit.ts
Normal file
30
ui/plugins/commit.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import type {Plugin} from "vite";
|
||||
import {execSync} from "child_process";
|
||||
|
||||
const getInfo = (formats: string[]): string[] => formats.map(format => execSync(`git log -1 --format=${format}`).toString().trim());
|
||||
|
||||
const comment = (message: string, author: string, date: string): string => `
|
||||
<!--
|
||||
|
||||
Last Commit:
|
||||
|
||||
${message}
|
||||
----------
|
||||
Author: ${author}
|
||||
Date: ${date}
|
||||
|
||||
-->`;
|
||||
|
||||
export const commit = (): Plugin => {
|
||||
const [message, author, date] = getInfo(["%s", "%an", "%cd"]);
|
||||
|
||||
return {
|
||||
name: "commit",
|
||||
transformIndexHtml: {
|
||||
order: "pre",
|
||||
handler(html: string): string {
|
||||
return comment(message, author, date) + html;
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
@@ -1,29 +0,0 @@
|
||||
import type {Plugin} from "vite";
|
||||
import {execSync} from "child_process";
|
||||
|
||||
const comment = (hash: string, date: string): string => {
|
||||
return `
|
||||
<!--
|
||||
|
||||
Last Commit:
|
||||
|
||||
URL: https://github.com/kestra-io/kestra/commit/${hash}
|
||||
Date: ${date}
|
||||
|
||||
-->`;
|
||||
};
|
||||
|
||||
export const details = (): Plugin => {
|
||||
const hash: string = execSync("git rev-parse --short HEAD").toString().trim();
|
||||
const date: string = execSync("git log -1 --format=%cd").toString().trim();
|
||||
|
||||
return {
|
||||
name: "details",
|
||||
transformIndexHtml: {
|
||||
order: "pre",
|
||||
handler(html: string): string {
|
||||
return comment(hash, date) + html;
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
@@ -3,49 +3,43 @@ import mark from "markdown-it-mark";
|
||||
import meta from "markdown-it-meta";
|
||||
import anchor from "markdown-it-anchor";
|
||||
import container from "markdown-it-container";
|
||||
import {fromHighlighter} from "@shikijs/markdown-it/core"
|
||||
import {getHighlighterCore} from "shiki/core"
|
||||
import {fromHighlighter} from "@shikijs/markdown-it/core";
|
||||
import {createHighlighterCore} from "shiki/core";
|
||||
import githubDark from "shiki/themes/github-dark.mjs";
|
||||
import githubLight from "shiki/themes/github-light.mjs";
|
||||
import {linkTag} from "./markdown_plugins/link";
|
||||
|
||||
let highlighter = null;
|
||||
|
||||
async function getHighlighter() {
|
||||
if (!highlighter) {
|
||||
highlighter = createHighlighterCore({
|
||||
langs: [import("shiki/langs/yaml.mjs"), import("shiki/langs/python.mjs"), import("shiki/langs/javascript.mjs")],
|
||||
themes: [githubDark, githubLight],
|
||||
loadWasm: import("shiki/wasm"),
|
||||
});
|
||||
}
|
||||
return highlighter;
|
||||
}
|
||||
|
||||
export default class Markdown {
|
||||
static async render(markdown, options) {
|
||||
const highlighter = await getHighlighter();
|
||||
|
||||
githubDark["colors"]["editor.background"] = "var(--bs-gray-500)";
|
||||
githubLight["colors"]["editor.background"] = "var(--bs-white)";
|
||||
|
||||
const highlighter = await getHighlighterCore({
|
||||
themes: [
|
||||
githubDark,
|
||||
githubLight
|
||||
],
|
||||
langs: [
|
||||
import("shiki/langs/yaml.mjs"),
|
||||
import("shiki/langs/python.mjs"),
|
||||
import("shiki/langs/javascript.mjs")
|
||||
],
|
||||
loadWasm: import("shiki/wasm")
|
||||
})
|
||||
|
||||
options = options || {}
|
||||
options = options || {};
|
||||
|
||||
const darkTheme = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0;
|
||||
|
||||
// noinspection JSPotentiallyInvalidConstructorUsage
|
||||
let md = new markdownIt() // jshint ignore:line
|
||||
let md = new markdownIt()
|
||||
.use(mark)
|
||||
.use(meta)
|
||||
.use(anchor, {
|
||||
permalink: options.permalink ? anchor.permalink.ariaHidden({
|
||||
placement: "before"
|
||||
}) : undefined
|
||||
})
|
||||
// if more alert types are used inside the task documentation, they need to be configured here also
|
||||
.use(anchor, {permalink: options.permalink ? anchor.permalink.ariaHidden({placement: "before"}) : undefined})
|
||||
.use(container, "warning")
|
||||
.use(container, "info")
|
||||
.use(fromHighlighter(highlighter, {
|
||||
theme: darkTheme ? "github-dark" : "github-light",
|
||||
}))
|
||||
.use(fromHighlighter(highlighter, {theme: darkTheme ? "github-dark" : "github-light"}))
|
||||
.use(linkTag);
|
||||
|
||||
md.set({
|
||||
@@ -56,12 +50,10 @@ export default class Markdown {
|
||||
typographer: true,
|
||||
langPrefix: "language-",
|
||||
quotes: "“”‘’",
|
||||
})
|
||||
});
|
||||
|
||||
md.renderer.rules.table_open = () => "<table class=\"table\">\n"
|
||||
md.renderer.rules.table_open = () => "<table class=\"table\">\n";
|
||||
|
||||
return md.render(
|
||||
markdown
|
||||
);
|
||||
return md.render(markdown);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,9 +3,10 @@ import {defineConfig} from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import {visualizer} from "rollup-plugin-visualizer";
|
||||
import eslintPlugin from "vite-plugin-eslint";
|
||||
import * as sass from "sass"
|
||||
|
||||
import {filename} from "./plugins/filename"
|
||||
import {details} from "./plugins/details"
|
||||
import {commit} from "./plugins/commit"
|
||||
|
||||
export default defineConfig({
|
||||
base: "",
|
||||
@@ -22,16 +23,18 @@ export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
visualizer(),
|
||||
eslintPlugin({
|
||||
failOnWarning: true,
|
||||
failOnError: true
|
||||
}),
|
||||
eslintPlugin({failOnWarning: true, failOnError: true}),
|
||||
filename(),
|
||||
details()
|
||||
commit()
|
||||
],
|
||||
assetsInclude: ["**/*.md"],
|
||||
css: {
|
||||
devSourcemap: true
|
||||
devSourcemap: true,
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
logger: sass.Logger.silent
|
||||
},
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
|
||||
Reference in New Issue
Block a user