mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: update eslint rule (#1027)
This commit is contained in:
1 parent
05c3b8f2bd
commit
cee3c00ddb
150 files changed
+1069
-1043
No files matched your search
@@ -36,7 +36,6 @@ export async function pipeStream(read, write, abort) {
|
||||
const writer = write.getWriter();
|
||||
if (abort) abort.abort = writer.abort.bind(writer);
|
||||
const reader = read.getReader();
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
while (1) {
|
||||
const readResult = await reader.read();
|
||||
if (readResult.done) {
|
||||
@@ -51,10 +50,10 @@ export async function pipeStream(read, write, abort) {
|
||||
export function mongoId(idstring: string) {
|
||||
if (typeof idstring !== 'string') idstring = String(idstring);
|
||||
return {
|
||||
timestamp: parseInt(idstring.slice(0, 0 + 8), 16),
|
||||
machineid: parseInt(idstring.slice(8, 8 + 6), 16),
|
||||
pid: parseInt(idstring.slice(14, 14 + 4), 16),
|
||||
sequence: parseInt(idstring.slice(18, 18 + 6), 16),
|
||||
timestamp: Number.parseInt(idstring.slice(0, 0 + 8), 16),
|
||||
machineid: Number.parseInt(idstring.slice(8, 8 + 6), 16),
|
||||
pid: Number.parseInt(idstring.slice(14, 14 + 4), 16),
|
||||
sequence: Number.parseInt(idstring.slice(18, 18 + 6), 16),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -66,12 +65,12 @@ export function emulateAnchorClick(ev: KeyboardEvent, targetUrl: string, alwaysO
|
||||
else window.location.href = targetUrl;
|
||||
}
|
||||
|
||||
export { default as pjax } from './pjax';
|
||||
export * from './base';
|
||||
export { default as base64 } from './base64';
|
||||
export { default as loadReactRedux } from './loadReactRedux';
|
||||
export * as mediaQuery from './mediaQuery';
|
||||
export { default as pjax } from './pjax';
|
||||
export * from './slide';
|
||||
export * from './base';
|
||||
|
||||
const zip = { createZipStream, createZipBlob };
|
||||
Object.assign(window.Hydro.utils, {
|
||||
|
||||
Reference in new issue
Block a user