Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ebf02eb58f | |||
| 5baa91e3e7 | |||
| 08c47cfa03 | |||
| cb5440c8d9 | |||
| 05eaa4741a | |||
| c0d5b4697f | |||
| d742425cac |
@@ -6,7 +6,7 @@ on: [release]
|
||||
|
||||
env:
|
||||
REPO: sugarbecomer/tianshen-web
|
||||
REGISTRY: git.likedream.xyz
|
||||
REGISTRY: mycoder.cc.cd
|
||||
|
||||
jobs:
|
||||
Build-And-Upload:
|
||||
|
||||
@@ -19,9 +19,17 @@ http:// {
|
||||
reverse_proxy ${BACKEND_URL}
|
||||
}
|
||||
|
||||
@assets path /assets/* /favicon.svg
|
||||
handle @assets {
|
||||
root * /www
|
||||
header Cache-Control "public, max-age=31536000, immutable"
|
||||
file_server
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /www
|
||||
try_files {path} /index.html
|
||||
header Cache-Control "no-store, no-cache, must-revalidate"
|
||||
file_server
|
||||
}
|
||||
|
||||
|
||||
Generated
+1094
File diff suppressed because it is too large
Load Diff
+10
-3
@@ -88,9 +88,16 @@ export interface CpLeave {
|
||||
|
||||
export interface CpTaskLog {
|
||||
id: number
|
||||
taskId: number
|
||||
result: string
|
||||
created_at: string
|
||||
cp_task_id?: number
|
||||
system_user_id?: number
|
||||
cp_user_id?: number
|
||||
is_success?: boolean
|
||||
real_name?: string
|
||||
real_title?: string
|
||||
error_message?: string
|
||||
createTime?: string
|
||||
created_at?: string
|
||||
updateTime?: string
|
||||
}
|
||||
|
||||
export interface CpSchool {
|
||||
|
||||
@@ -18,18 +18,44 @@ const taskId = computed(() => Number(route.params.id))
|
||||
const columns: ColumnDef<CpTaskLog, any>[] = [
|
||||
{ accessorKey: 'id', header: 'ID' },
|
||||
{
|
||||
accessorKey: 'result',
|
||||
accessorKey: 'is_success',
|
||||
header: '执行结果',
|
||||
cell: ({ row }) => {
|
||||
const result = row.getValue<string>('result')
|
||||
return h('span', { class: 'whitespace-pre-wrap break-all' }, result || '-')
|
||||
const isSuccess = row.original.is_success
|
||||
const errorMessage = row.original.error_message
|
||||
if (typeof isSuccess === 'boolean') {
|
||||
return h(
|
||||
'span',
|
||||
{ class: isSuccess ? 'text-green-600' : 'text-red-600' },
|
||||
isSuccess ? '成功' : '失败',
|
||||
)
|
||||
}
|
||||
if (errorMessage) {
|
||||
return h('span', { class: 'text-red-600' }, '失败')
|
||||
}
|
||||
return h('span', '-')
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'created_at',
|
||||
accessorKey: 'real_name',
|
||||
header: '成功标题',
|
||||
cell: ({ row }) => {
|
||||
const realTitle = row.original.real_name || row.original.real_title
|
||||
return h('span', { class: 'whitespace-pre-wrap break-all' }, realTitle || '-')
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'error_message',
|
||||
header: '失败原因',
|
||||
cell: ({ row }) => {
|
||||
return h('span', { class: 'whitespace-pre-wrap break-all' }, row.original.error_message || '-')
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'createTime',
|
||||
header: '执行时间',
|
||||
cell: ({ row }) => {
|
||||
const val = row.getValue<string>('created_at')
|
||||
const val = row.original.createTime || row.original.created_at
|
||||
return val ? val.replace('T', ' ').slice(0, 19) : '-'
|
||||
},
|
||||
},
|
||||
|
||||
+14
-14
@@ -13,35 +13,35 @@ export default defineConfig({
|
||||
log: true,
|
||||
autoExcludeNodeModules: true,
|
||||
threadPool: true,
|
||||
excludes: [
|
||||
/assets\/rolldown-runtime-.*\.js$/,
|
||||
],
|
||||
options: {
|
||||
compact: true,
|
||||
controlFlowFlattening: true,
|
||||
controlFlowFlatteningThreshold: 1,
|
||||
controlFlowFlattening: false,
|
||||
deadCodeInjection: false,
|
||||
debugProtection: false,
|
||||
debugProtectionInterval: 0,
|
||||
disableConsoleOutput: true,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
ignoreImports: true,
|
||||
numbersToExpressions: true,
|
||||
numbersToExpressions: false,
|
||||
renameGlobals: false,
|
||||
selfDefending: true,
|
||||
selfDefending: false,
|
||||
simplify: true,
|
||||
splitStrings: true,
|
||||
splitStringsChunkLength: 5,
|
||||
splitStrings: false,
|
||||
stringArray: true,
|
||||
stringArrayCallsTransform: true,
|
||||
stringArrayCallsTransformThreshold: 1,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayCallsTransform: false,
|
||||
stringArrayEncoding: [],
|
||||
stringArrayIndexShift: true,
|
||||
stringArrayRotate: true,
|
||||
stringArrayShuffle: true,
|
||||
stringArrayWrappersChainedCalls: true,
|
||||
stringArrayWrappersCount: 3,
|
||||
stringArrayWrappersParametersMaxCount: 4,
|
||||
stringArrayWrappersType: 'function',
|
||||
stringArrayThreshold: 1,
|
||||
transformObjectKeys: true,
|
||||
stringArrayWrappersCount: 1,
|
||||
stringArrayWrappersParametersMaxCount: 2,
|
||||
stringArrayWrappersType: 'variable',
|
||||
stringArrayThreshold: 0.75,
|
||||
transformObjectKeys: false,
|
||||
unicodeEscapeSequence: false,
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user