mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Clean console.log (#2048)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
5d84e5181a
commit
156afd757a
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
@ -82,7 +82,6 @@ export class LiveQuery {
|
||||
constructor (dontDestroy: boolean = false) {
|
||||
if (!dontDestroy) {
|
||||
onDestroy(() => {
|
||||
console.log('onDestroy query')
|
||||
this.unsubscribe()
|
||||
})
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -167,7 +167,6 @@
|
||||
}
|
||||
}
|
||||
function handleAction (a: RefAction, evt?: Event): void {
|
||||
console.log('handle event', a.label)
|
||||
a.action(evt?.target as HTMLElement, editorHandler)
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,6 @@
|
||||
|
||||
if (componentInstance && componentInstance.canClose) {
|
||||
if (!componentInstance.canClose()) {
|
||||
console.log('CANT CLOSE')
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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++
|
||||
|
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -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 {
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user