Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
903090ef
Verified
Commit
903090ef
authored
3 years ago
by
Kirill Stytsenko
Browse files
Options
Downloads
Patches
Plain Diff
minor ui changes
parent
0085181b
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!81
New stable release
,
!43
Merge dev to master
,
!33
Draft: merge dev to master
,
!31
Misc stuff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
fda-ui/components/dialogs/CreateDB.vue
+1
-1
1 addition, 1 deletion
fda-ui/components/dialogs/CreateDB.vue
fda-ui/server-middleware/index.js
+4
-5
4 additions, 5 deletions
fda-ui/server-middleware/index.js
with
5 additions
and
6 deletions
fda-ui/components/dialogs/CreateDB.vue
+
1
−
1
View file @
903090ef
<
template
>
<
template
>
<div>
<div>
<v-progress-linear
v-if=
"loading"
:color=
"loadingColor"
:indeterminate=
"!error"
/>
<v-card>
<v-card>
<v-progress-linear
v-if=
"loading"
:color=
"loadingColor"
:indeterminate=
"!error"
/>
<v-card-title>
<v-card-title>
Create Database
Create Database
</v-card-title>
</v-card-title>
...
...
This diff is collapsed.
Click to expand it.
fda-ui/server-middleware/index.js
+
4
−
5
View file @
903090ef
...
@@ -32,12 +32,11 @@ app.post('/table_from_csv', upload.single('file'), async (req, res) => {
...
@@ -32,12 +32,11 @@ app.post('/table_from_csv', upload.single('file'), async (req, res) => {
headers
:
{
'
Content-Type
'
:
'
application/json
'
}
headers
:
{
'
Content-Type
'
:
'
application/json
'
}
})
})
console
.
debug
(
'
analyzed
'
,
analysis
)
console
.
debug
(
'
analyzed
'
,
analysis
)
analysis
=
await
analysis
.
json
()
analysis
=
JSON
.
parse
(
await
analysis
.
json
()
)
if
(
!
analysis
.
success
)
{
console
.
log
(
analysis
)
console
.
error
(
'
Failed to determine datatypes
'
,
analysis
.
message
)
if
(
!
analysis
.
columns
)
{
return
res
.
json
({
success
:
false
,
message
:
analysis
.
message
})
return
res
.
json
({
success
:
false
,
message
:
'
Columns array missing
'
})
}
}
// analysis = JSON.parse(analysis)
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'
failed to analyze
'
,
error
)
console
.
error
(
'
failed to analyze
'
,
error
)
return
res
.
json
({
success
:
false
,
error
})
return
res
.
json
({
success
:
false
,
error
})
...
...
This diff is collapsed.
Click to expand it.
Kirill Stytsenko
@stytsenkok39
mentioned in commit
69e99d7a
·
3 years ago
mentioned in commit
69e99d7a
mentioned in commit 69e99d7a0f8e5c94024d14a5d173f7dc25e7d7d3
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment