This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { resolve } = require('node:path') | |
| const fs = require('node:fs') | |
| /** | |
| * 不是ts写的vue文件 | |
| * @type {string[]} | |
| */ | |
| const vueJsFiles = [] | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package cn.crowddigital.pic.pic.service | |
| import org.apache.commons.compress.archivers.zip.ZipFile | |
| import org.apache.poi.ooxml.util.PackageHelper | |
| import org.apache.poi.ss.usermodel.CellType | |
| import org.apache.poi.xssf.usermodel.XSSFWorkbook | |
| import org.junit.jupiter.api.Test | |
| import java.io.ByteArrayInputStream | |
| import java.io.File | |
| import java.io.InputStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onWindowActive = () => { | |
| }; | |
| window.onDocumentSave = () => { | |
| }; | |
| window.onDocumentBeforeClose = () => { | |
| }; | |
| window.onDocumentAfterClose = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <el-menu :router="true" :default-active="activeLink"> | |
| <template v-for="rule in $router.options.routes"> | |
| <el-submenu v-if="rule.children && rule.children.length > 0" | |
| :index="rule.path" | |
| > | |
| <template slot="title"><i :class="rule.icon"></i>{{ rule.title }}</template> | |
| <el-menu-item v-for="child in rule.children" :index="rule.path + '/' + child.path">{{ child.title }}</el-menu-item> | |
| </el-submenu> | |
| <el-menu-item v-else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Flask | |
| from services.database import db | |
| app = Flask(module_name) | |
| db.init_app(app) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tree = { | |
| name : 'Root', | |
| open : true, | |
| children : [{ | |
| name : 'level 1', | |
| open : false, | |
| children : [{ | |
| name : 'level 1-1', | |
| open : false, | |
| }, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def convert_sid_tostring(sid_str): | |
| """ | |
| 将SID转换成正常的字符串,形如:S-1-5-21-3146574646-1373620345-747391786-4398 | |
| :param sid_str: AD返回的SID | |
| :return: str | |
| """ | |
| sid_bytes = list(bytearray(sid_str)) | |
| sid_str = list(sid_str) | |
| sid = 'S-%d' % sid_bytes[0] |