mirror of https://github.com/nocodb/nocodb
աɨռɢӄաօռɢ
3 years ago
committed by
GitHub
54 changed files with 65799 additions and 364 deletions
@ -0,0 +1,66 @@
|
||||
<template> |
||||
<v-autocomplete |
||||
ref="field" |
||||
v-model="localValue" |
||||
class="caption" |
||||
:items="columns" |
||||
item-value="id" |
||||
item-text="title" |
||||
:label="$t('objects.field')" |
||||
solo |
||||
flat |
||||
dense |
||||
hide-details |
||||
@click.stop |
||||
@change="$emit('change')" |
||||
> |
||||
<template #selection="{item}"> |
||||
<v-icon small class="mr-1"> |
||||
{{ item.icon }} |
||||
</v-icon> {{ item.title }} |
||||
</template> |
||||
<template #item="{ item }"> |
||||
<span |
||||
:class="`caption font-weight-regular nc-fld-${item.title}`" |
||||
> |
||||
<v-icon color="grey" small class="mr-1"> |
||||
{{ item.icon }} |
||||
</v-icon> |
||||
{{ item.title }} |
||||
</span> |
||||
</template> |
||||
</v-autocomplete> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: 'FieldListAutoCompleteDropdown', |
||||
props: { |
||||
columns: Array, |
||||
value: String |
||||
}, |
||||
computed: { |
||||
localValue: { |
||||
set(v) { |
||||
this.$emit('input', v) |
||||
}, |
||||
get() { |
||||
return this.value |
||||
} |
||||
} |
||||
}, |
||||
mounted() { |
||||
const autocompleteInput = this.$refs.field.$refs.input |
||||
autocompleteInput.addEventListener('focus', this.onFocus, true) |
||||
}, |
||||
methods: { |
||||
onFocus(e) { |
||||
this.$refs.field.isMenuActive = true // open item list |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style scoped> |
||||
|
||||
</style> |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
import IStorageAdapter from "./IStorageAdapter"; |
||||
|
||||
export default interface IStorageAdapterV2 extends IStorageAdapter { |
||||
fileCreateByUrl(destPath: string, url: string, fileMeta?: FileMeta): Promise<any> |
||||
} |
||||
|
||||
|
||||
interface FileMeta { |
||||
fileName?: string; |
||||
mimetype?: string; |
||||
size?: number | string; |
||||
} |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd |
||||
* |
||||
* @author Pranav C Balan <pranavxc@gmail.com> |
||||
* |
||||
* @license GNU AGPL version 3 or any later version |
||||
* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License as |
||||
* published by the Free Software Foundation, either version 3 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
||||
import Knex from 'knex'; |
||||
import { MetaTable } from '../../utils/globals'; |
||||
|
||||
const up = async (knex: Knex) => { |
||||
if (knex.client.config.client !== 'sqlite3') { |
||||
await knex.schema.alterTable(MetaTable.HOOK_LOGS, table => { |
||||
table.text('payload').alter(); |
||||
}); |
||||
} |
||||
}; |
||||
|
||||
const down = async knex => { |
||||
if (knex.client.config.client !== 'sqlite3') { |
||||
await knex.schema.alterTable(MetaTable.HOOK_LOGS, table => { |
||||
table.boolean('payload').alter(); |
||||
}); |
||||
} |
||||
}; |
||||
|
||||
export { up, down }; |
||||
|
||||
/** |
||||
* @copyright Copyright (c) 2022, Xgene Cloud Ltd |
||||
* |
||||
* @author willnewii <willnewii@163.com> |
||||
* |
||||
* @license GNU AGPL version 3 or any later version |
||||
* |
||||
* This program is free software: you can redistribute it and/or modify |
||||
* it under the terms of the GNU Affero General Public License as |
||||
* published by the Free Software Foundation, either version 3 of the |
||||
* License, or (at your option) any later version. |
||||
* |
||||
* This program is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU Affero General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public License |
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
Loading…
Reference in new issue