mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-06 06:17:11 -04:00
🔧:build SSR dist and deploy
This commit is contained in:
parent
76c26901d7
commit
c59ad6aedb
465 changed files with 214127 additions and 2 deletions
59
dist/server/chunks/chunk-05626d31.js
vendored
Normal file
59
dist/server/chunks/chunk-05626d31.js
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
import { _ as _sfc_main$1 } from './chunk-2e7c6ce5.js';
|
||||
import { defineComponent, mergeProps, useSSRContext } from 'vue';
|
||||
import { ssrRenderComponent } from 'vue/server-renderer';
|
||||
import { stringify } from 'yaml';
|
||||
import JSON5 from 'json5';
|
||||
import { i as isNotThrowing } from './chunk-5697d061.js';
|
||||
import { w as withDefaultOnError } from './chunk-f1b4cc24.js';
|
||||
import './chunk-727cc0fb.js';
|
||||
import 'naive-ui';
|
||||
import './chunk-6003391e.js';
|
||||
import '@vueuse/core';
|
||||
import 'pinia';
|
||||
import './chunk-8109fd17.js';
|
||||
import '@vicons/tabler';
|
||||
import 'highlight.js/lib/core';
|
||||
import 'highlight.js/lib/languages/json';
|
||||
import 'highlight.js/lib/languages/sql';
|
||||
import 'highlight.js/lib/languages/xml';
|
||||
import 'highlight.js/lib/languages/yaml';
|
||||
import 'highlight.js/lib/languages/ini';
|
||||
import './chunk-77c5cc16.js';
|
||||
import 'lodash';
|
||||
import './chunk-4e7a6a8d.js';
|
||||
import './chunk-11f44f81.js';
|
||||
import './chunk-35c3d701.js';
|
||||
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
__name: "json-to-yaml",
|
||||
__ssrInlineRender: true,
|
||||
setup(__props) {
|
||||
const transformer = (value) => withDefaultOnError(() => stringify(JSON5.parse(value)), "");
|
||||
const rules = [
|
||||
{
|
||||
validator: (value) => value === "" || isNotThrowing(() => stringify(JSON5.parse(value))),
|
||||
message: "Provided JSON is not valid."
|
||||
}
|
||||
];
|
||||
return (_ctx, _push, _parent, _attrs) => {
|
||||
const _component_format_transformer = _sfc_main$1;
|
||||
_push(ssrRenderComponent(_component_format_transformer, mergeProps({
|
||||
"input-label": "Your JSON",
|
||||
"input-placeholder": "Paste your JSON here...",
|
||||
"output-label": "YAML from your JSON",
|
||||
"output-language": "yaml",
|
||||
"input-validation-rules": rules,
|
||||
transformer
|
||||
}, _attrs), null, _parent));
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
const _sfc_setup = _sfc_main.setup;
|
||||
_sfc_main.setup = (props, ctx) => {
|
||||
const ssrContext = useSSRContext();
|
||||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/tools/json-to-yaml-converter/json-to-yaml.vue");
|
||||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||||
};
|
||||
|
||||
export { _sfc_main as default };
|
Loading…
Add table
Add a link
Reference in a new issue