Skip to content

Commit a4f0522

Browse files
committed
feat(new tool): Docker Compose to Docker Run
CorentinTh#634 CorentinTh#546
1 parent 22e836b commit a4f0522

File tree

8 files changed

+201
-37
lines changed

8 files changed

+201
-37
lines changed

components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ declare module '@vue/runtime-core' {
6969
DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default']
7070
DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']
7171
DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']
72+
DockerComposeToDockerRunConverter: typeof import('./src/tools/docker-compose-to-docker-run-converter/docker-compose-to-docker-run-converter.vue')['default']
7273
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
7374
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
7475
Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default']

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"cronstrue": "^2.26.0",
5757
"crypto-js": "^4.1.1",
5858
"date-fns": "^2.29.3",
59+
"decomposerize": "^1.2.4",
5960
"dompurify": "^3.0.6",
6061
"emojilib": "^3.0.10",
6162
"figue": "^1.2.0",

pnpm-lock.yaml

Lines changed: 76 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/TextareaCopyable.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import sqlHljs from 'highlight.js/lib/languages/sql';
77
import xmlHljs from 'highlight.js/lib/languages/xml';
88
import yamlHljs from 'highlight.js/lib/languages/yaml';
99
import iniHljs from 'highlight.js/lib/languages/ini';
10+
import bashHljs from 'highlight.js/lib/languages/bash';
1011
import { useCopy } from '@/composable/copy';
1112
1213
const props = withDefaults(
@@ -30,6 +31,7 @@ hljs.registerLanguage('html', xmlHljs);
3031
hljs.registerLanguage('xml', xmlHljs);
3132
hljs.registerLanguage('yaml', yamlHljs);
3233
hljs.registerLanguage('toml', iniHljs);
34+
hljs.registerLanguage('bash', bashHljs);
3335
3436
const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(props);
3537
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare module 'decomposerize' {
2+
type Configuration = {
3+
command?: string,
4+
rm?: boolean,
5+
detach?: boolean,
6+
multiline?: boolean,
7+
'long-args'?: boolean,
8+
'arg-value-separator'?: ArgValueSeparator,
9+
};
10+
const decomposerize: (dockerComposeContent: string, configuration?: Configuration) => string;
11+
export default decomposerize;
12+
}

0 commit comments

Comments
 (0)