@@ -12,43 +12,6 @@ export const EXPORT_PRESET_IDS = [
1212] as const ;
1313
1414export const PRESETS : ExportFormat [ ] = [
15- {
16- formatId : 'magic' ,
17- formatName : '神人格式' ,
18- fileExtension : '.ts' ,
19- playerNameFormat : '{{name}}' ,
20- accountFormat : '{{account}}' ,
21- timeFormat : 't_{{time}}' ,
22- docSeparator : '// === MODULE: {{name}} ===' ,
23- chunkSeparator : '/** @scene {{name}} */' ,
24- messageTemplate :
25- 'const {{time}} = ({{account}}: {{name}}) => {\n return `{{content}}`;\n};' ,
26- messageSeparator : '\n' ,
27- } ,
28- {
29- formatId : 'standard' ,
30- formatName : '标准 log 格式' ,
31- fileExtension : '.txt' ,
32- playerNameFormat : '{{name}}' ,
33- accountFormat : '({{account}})' ,
34- timeFormat : '{{time}}' ,
35- docSeparator : '\n' ,
36- chunkSeparator : '' ,
37- messageTemplate : '{{name}}{{account}} {{time}}\n{{content}}' ,
38- messageSeparator : '\n\n' ,
39- } ,
40- {
41- formatId : 'markdown' ,
42- formatName : 'Markdown 格式' ,
43- fileExtension : '.md' ,
44- playerNameFormat : '**{{name}}**' ,
45- accountFormat : '`{{account}}`' ,
46- timeFormat : '*{{time}}*' ,
47- docSeparator : '# {{name}}' ,
48- chunkSeparator : '## {{name}}' ,
49- messageTemplate : '{{name}} {{account}} {{time}}\n\n> {{content}}' ,
50- messageSeparator : '\n\n---\n\n' ,
51- } ,
5215 {
5316 formatId : 'classicTrpgLog' ,
5417 formatName : '经典染色器格式' ,
@@ -85,6 +48,43 @@ export const PRESETS: ExportFormat[] = [
8548 messageTemplate : '{{name}}:{{content}}' ,
8649 messageSeparator : '\n' ,
8750 } ,
51+ {
52+ formatId : 'standard' ,
53+ formatName : '标准 log 格式' ,
54+ fileExtension : '.txt' ,
55+ playerNameFormat : '{{name}}' ,
56+ accountFormat : '({{account}})' ,
57+ timeFormat : '{{time}}' ,
58+ docSeparator : '\n' ,
59+ chunkSeparator : '' ,
60+ messageTemplate : '{{name}}{{account}} {{time}}\n{{content}}' ,
61+ messageSeparator : '\n\n' ,
62+ } ,
63+ {
64+ formatId : 'markdown' ,
65+ formatName : 'Markdown 格式' ,
66+ fileExtension : '.md' ,
67+ playerNameFormat : '**{{name}}**' ,
68+ accountFormat : '`{{account}}`' ,
69+ timeFormat : '*{{time}}*' ,
70+ docSeparator : '# {{name}}' ,
71+ chunkSeparator : '## {{name}}' ,
72+ messageTemplate : '{{name}} {{account}} {{time}}\n\n> {{content}}' ,
73+ messageSeparator : '\n\n---\n\n' ,
74+ } ,
75+ {
76+ formatId : 'magic' ,
77+ formatName : '神人格式' ,
78+ fileExtension : '.ts' ,
79+ playerNameFormat : '{{name}}' ,
80+ accountFormat : '{{account}}' ,
81+ timeFormat : 't_{{time}}' ,
82+ docSeparator : '// === MODULE: {{name}} ===' ,
83+ chunkSeparator : '/** @scene {{name}} */' ,
84+ messageTemplate :
85+ 'const {{time}} = ({{account}}: {{name}}) => {\n return `{{content}}`;\n};' ,
86+ messageSeparator : '\n' ,
87+ } ,
8888] ;
8989
9090export const useExportStore = defineStore ( 'export' , {
0 commit comments