chore: config

refactor/project
Brian 1 year ago
parent 03e67e6cfc
commit f584d2fa42

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="Node.js Core" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

@ -48,6 +48,7 @@
"@commitlint/config-conventional": "^18.4.3",
"@types/imagesloaded": "^4.1.6",
"@types/lodash": "^4.14.197",
"@types/lodash-es": "^4.17.12",
"@types/masonry-layout": "^4.2.7",
"@types/node": "^18.17.1",
"@types/sortablejs": "^1.15.7",

@ -100,6 +100,9 @@ devDependencies:
'@types/lodash':
specifier: ^4.14.197
version: 4.14.202
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
'@types/masonry-layout':
specifier: ^4.2.7
version: 4.2.7
@ -1323,7 +1326,6 @@ packages:
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
dependencies:
'@types/lodash': 4.14.202
dev: false
/@types/lodash@4.14.202:
resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}

@ -0,0 +1,29 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
#Specify inspection profile for code analysis
profile:
name: qodana.starter
#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>
#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-js:latest

@ -1,52 +0,0 @@
export const asideMap: Recordable<AsideEntity> = {
izupuser: {
label: '',
defaultValue: null,
isDefaultFilter: true,
key: 'izupuser',
component: ReportUserVue,
},
izproject: {
label: '',
defaultValue: null,
isDefaultFilter: true,
key: 'izproject',
component: IzProjectVue,
},
izplan: {
label: '',
defaultValue: null,
isDefaultFilter: true,
key: 'izplan',
component: PlanVue,
},
izstatus: {
label: '',
defaultValue: null,
isDefaultFilter: false,
key: 'izstatus',
component: PlanVue, // todo
},
izyear: {
label: '',
defaultValue: null,
isDefaultFilter: false,
key: 'izyear',
component: TimeVue,
},
iztaskrrom: {
label: '',
defaultValue: null,
isDefaultFilter: false,
key: 'iztaskrrom',
component: IztaskrromVue,
},
izshowall: {
label: '',
defaultValue: true,
isDefaultFilter: false,
key: 'izshowall',
component: PictureDownloadVue,
inFilterList: false,
},
}

@ -10,7 +10,7 @@ import { getViewportOffset, off, on } from '@/utils/domUtils'
import { viewOptions } from '@/config/home'
import { useTask } from '@/store/modules/task'
import { TASK_STATUS_OBJ } from '@/enums/index'
import { TASK_STATUS_OBJ } from '@/enums'
import { formatToDateHMS } from '@/utils/dateUtil'
import { getSimilarityList, getTaskDetailInfo } from '@/api/task/task'
import emitter from '@/utils/mitt'
@ -55,8 +55,7 @@ const message = useMessage()
async function computeListHeight() {
const headEl = document.querySelector('.wrapper-content')!
const { bottomIncludeBody } = getViewportOffset(headEl)
const height = bottomIncludeBody
deviceHeight.value = height - 40 - 16 - 24
deviceHeight.value = bottomIncludeBody - 40 - 16 - 24
}
useWindowSizeFn(computeListHeight)
@ -78,14 +77,14 @@ const layout = debounce(() => {
_imagesload = imagesloaded('.grid-item')
_imagesload.on('done', (instance) => {
_imagesload.on('done', () => {
(_masonry as any).layout()
if (!el.value)
return
loading.value = false
})
_imagesload.on('fail', (instance) => {
_imagesload.on('fail', () => {
message.error('图片错误')
loading.value = false
})
@ -514,9 +513,7 @@ defineExpose({
class="grid-item"
>
<n-image
ref="imageRef"
class="img"
:class="{
'img-fit': viewMode === 'horizontalVersion',
'img-full': viewMode === '3:4' || viewMode === 'verticalVersion',
@ -571,7 +568,6 @@ defineExpose({
width: 100vw;
height: calc(100vh - 64px);
user-select: none;
/* Standard syntax */
}
.img-wrap{

Loading…
Cancel
Save