Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TIPM-UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BARBIER Marc
TIPM-UI
Commits
9de9f85f
Verified
Commit
9de9f85f
authored
3 years ago
by
BARBIER Marc
Browse files
Options
Downloads
Patches
Plain Diff
added sql support
parent
a595fe81
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/MineView/MineView.ts
+1
-1
1 addition, 1 deletion
src/MineView/MineView.ts
src/TransformView/TransformView.ts
+8
-1
8 additions, 1 deletion
src/TransformView/TransformView.ts
src/TransformView/TransformView.vue
+17
-0
17 additions, 0 deletions
src/TransformView/TransformView.vue
with
26 additions
and
2 deletions
src/MineView/MineView.ts
+
1
−
1
View file @
9de9f85f
...
...
@@ -319,6 +319,6 @@ export default defineComponent({
this
.
currentColumn
=
""
this
.
newRequiredItems
=
[]
}
}
,
},
})
This diff is collapsed.
Click to expand it.
src/TransformView/TransformView.ts
+
8
−
1
View file @
9de9f85f
...
...
@@ -95,6 +95,13 @@ export default defineComponent({
await
switchToNewestProject
(
this
)
},
async
runSQL
(
e
:
Event
)
{
e
.
preventDefault
()
//@ts-expect-error the target is a form
const
form
=
new
FormData
(
e
.
target
)
form
.
append
(
'
id
'
,
''
+
localStorage
.
getItem
(
'
datasetId
'
))
await
fetch
(
'
http://localhost:8080/rest/transform/run-sql-query
'
,
{
method
:
'
POST
'
,
body
:
form
})
await
switchToNewestProject
(
this
)
}
},
})
This diff is collapsed.
Click to expand it.
src/TransformView/TransformView.vue
+
17
−
0
View file @
9de9f85f
...
...
@@ -170,6 +170,23 @@
</form>
</div>
</div>
<div
class=
"accordion-item"
>
<h2
class=
"accordion-header"
id=
"headingOne"
>
<button
class=
"accordion-button"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#collapseExtra"
aria-expanded=
"true"
aria-controls=
"collapseExtra"
>
Extra
</button>
</h2>
<div
id=
"collapseExtra"
class=
"accordion-collapse collapse show"
aria-labelledby=
"headingOne"
>
<div
class=
"accordion-body"
>
<form
@
submit=
"runSQL"
>
<textarea
type=
"text"
name=
"query"
class=
"form-control"
rows=
"3"
:value=
"`SELECT ${columns.join(', ')}
FROM file
ORDER BY step`"
></textarea>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"Run"
>
</form>
</div>
</div>
</div>
</div>
</aside>
</div>
...
...
This diff is collapsed.
Click to expand it.
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