Clean console.log (#2048)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-06-10 15:43:36 +06:00 committed by GitHub
parent 5d84e5181a
commit 156afd757a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 0 additions and 19 deletions

View File

@ -198,7 +198,6 @@
const stateObjs = getStateObjects(objects, st)
if (stateObjs.length > 0) {
pos = objects.findIndex((it) => it._id === stateObjs[0].it._id)
console.log('SELECT', '#1', pos)
break
}
}

View File

@ -45,7 +45,6 @@ export async function connect (title: string): Promise<Client | undefined> {
}
try {
console.log('checking model version')
const version = await instance.findOne<Version>(core.class.Version, {})
console.log('Model version', version)

View File

@ -82,7 +82,6 @@ export class LiveQuery {
constructor (dontDestroy: boolean = false) {
if (!dontDestroy) {
onDestroy(() => {
console.log('onDestroy query')
this.unsubscribe()
})
}

View File

@ -125,7 +125,6 @@ export const Completion = Node.create<CompletionOptions>({
},
renderHTML ({ node, HTMLAttributes }) {
console.log('render HTML', node, HTMLAttributes)
return [
'span',
mergeAttributes({ 'data-type': this.name }, this.options.HTMLAttributes, HTMLAttributes),
@ -137,7 +136,6 @@ export const Completion = Node.create<CompletionOptions>({
},
renderText ({ node }) {
console.log('render TEXT', node)
return this.options.renderLabel({
options: this.options,
node

View File

@ -167,7 +167,6 @@
}
}
function handleAction (a: RefAction, evt?: Event): void {
console.log('handle event', a.label)
a.action(evt?.target as HTMLElement, editorHandler)
}

View File

@ -65,7 +65,6 @@
if (componentInstance && componentInstance.canClose) {
if (!componentInstance.canClose()) {
console.log('CANT CLOSE')
return
}
}

View File

@ -59,7 +59,6 @@
async function createAttachment (file: File) {
try {
const uuid = await uploadFile(file, { space, attachedTo: objectId })
console.log('uploaded file uuid', uuid)
const _id: Ref<Attachment> = generateId()
attachments.set(_id, {
_id,

View File

@ -48,7 +48,6 @@
loading++
try {
const uuid = await uploadFile(file, { space, attachedTo: objectId })
console.log('uploaded file uuid', uuid)
client.addCollection(attachment.class.Photo, space, objectId, _class, 'photos', {
name: file.name,
file: uuid,

View File

@ -85,7 +85,6 @@ export async function createAttachments (
const file = list.item(index)
if (file !== null) {
const uuid = await uploadFile(file, { space, attachedTo: objectId })
console.log('uploaded file uuid', uuid)
await client.addCollection(attachment.class.Attachment, space, objectId, objectClass, 'attachments', {
name: file.name,
file: uuid,

View File

@ -140,7 +140,6 @@ class Connection implements ClientConnection {
private async sendRequest (method: string, ...params: any[]): Promise<any> {
if (this.websocket === null) {
console.log('open connection from', method, params)
this.websocket = await this.waitOpenConnection()
}
const id = this.lastId++

View File

@ -47,7 +47,6 @@ export default async () => {
},
filterModel ? getPlugins() : undefined
)
console.log('client connection created')
_token = token
// Check if we had dev hook for client.

View File

@ -91,7 +91,6 @@
try {
const uploadFile = await getResource(attachmentP.helper.UploadFile)
const uuid = await uploadFile(file, { space: plugin.space.Gmail, attachedTo: objectId })
console.log('uploaded file uuid', uuid)
await client.addCollection(
attachmentP.class.Attachment,
plugin.space.Gmail,

View File

@ -132,8 +132,6 @@
candidateData
)
console.log('resume name', resume.name)
if (resume.uuid !== undefined) {
client.addCollection(
attachment.class.Attachment,
@ -229,7 +227,6 @@
try {
const doc = await recognizeDocument(token, fileUrl)
console.log('recognize:', doc)
if (isUndef(object.title) && doc.title !== undefined) {
object.title = doc.title
@ -333,8 +330,6 @@
if (file.type.includes('application/pdf')) {
await recognize()
}
console.log('uploaded file uuid', resume.uuid)
} catch (err: any) {
setPlatformStatus(unknownError(err))
} finally {

View File

@ -216,7 +216,6 @@ export function buildConfigLookup<T extends Doc> (
}
export async function buildModel (options: BuildModelOptions): Promise<AttributeModel[]> {
console.log('building table model for', options)
// eslint-disable-next-line array-callback-return
const model = options.keys
.map((key) => (typeof key === 'string' ? { key: key } : key))