Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table and tab editor #25

Closed
wants to merge 36 commits into from
Closed

Add table and tab editor #25

wants to merge 36 commits into from

Conversation

Yasamato
Copy link
Collaborator

@Yasamato Yasamato commented Apr 14, 2021

flask backend

  • move to SQLAlchemy
  • switch to usage via mariaDB/postgress
  • reimplement table data manipulation
  • add table api endpoints
  • add tab api endpoints
  • add column api endpoints
  • handling data manipulation on column changes

# flutter frontend

flutter seems to be not the ideal choice for web projects with our requirements... abandoned in favor of react

react frontend

  • create react project
  • add build instructions
  • Editor:
    • reimplement table data editor
    • add table editor
    • add tab editor
    • add column editor
  • Pages:
    • add admin view for table, tab and column editor
    • reimplement table view
    • reimplement tab view
    • reimplement navbar
    • reimplement help page
  • think about things we should consider regarding SEO

This is currently a breaking build and WIP
Simply because it is just way more powerful than dataset
@Yasamato Yasamato added the enhancement New feature or request label Apr 14, 2021
@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 35 alerts when merging b24ec62 into b9cc91a - view on LGTM.com

new alerts:

  • 19 for Information exposure through an exception
  • 15 for Reflected server-side cross-site scripting
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 35 alerts when merging 3cab556 into b9cc91a - view on LGTM.com

new alerts:

  • 19 for Information exposure through an exception
  • 15 for Reflected server-side cross-site scripting
  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 40 alerts when merging 55c53c9 into b9cc91a - view on LGTM.com

new alerts:

  • 22 for Information exposure through an exception
  • 16 for Reflected server-side cross-site scripting
  • 2 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 2 alerts and fixes 1 when merging faa07b2 into b9cc91a - view on LGTM.com

new alerts:

  • 2 for Reflected server-side cross-site scripting

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 2 alerts and fixes 1 when merging fa98b82 into b9cc91a - view on LGTM.com

new alerts:

  • 2 for Reflected server-side cross-site scripting

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request fixes 1 alert when merging 40d1dcb into b9cc91a - view on LGTM.com

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request fixes 1 alert when merging e81360c into b9cc91a - view on LGTM.com

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2021

This pull request introduces 1 alert and fixes 1 when merging 5edde27 into b9cc91a - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2021

This pull request fixes 1 alert when merging f6b11b1 into b9cc91a - view on LGTM.com

fixed alerts:

  • 1 for Inefficient regular expression

@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2021

This pull request fixes 1 alert when merging bfa9561 into b9cc91a - view on LGTM.com

fixed alerts:

  • 1 for Inefficient regular expression

}

toggleColumn(cols: TableColumnData[]) {
this.setState({cols: cols});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected property shorthand.

Suggested change
this.setState({cols: cols});
this.setState({cols});

import ReactDOM from "react-dom";
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import reportWebVitals from './reportWebVitals';
import reportWebVitals from "./reportWebVitals";

fetch(debugUrl + "/api/tables")
.then(r => r.json())
.then(tables => {
this.setState({tables: tables});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected property shorthand.

Suggested change
this.setState({tables: tables});
this.setState({tables});

@@ -0,0 +1,18 @@
import React from 'react';
import ReactDOM from "react-dom";
import './index.css';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import './index.css';
import "./index.css";

@@ -0,0 +1,68 @@
import React from "react";
import './App.css';
import IndexNavbar from './components/IndexNavbar';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import IndexNavbar from './components/IndexNavbar';
import IndexNavbar from "./components/IndexNavbar";

return (
<div className="App" style={{
backgroundColor: "#1f1f1f",
minHeight: '100vh',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
minHeight: '100vh',
minHeight: "100vh",

@@ -0,0 +1,68 @@
import React from "react";
import './App.css';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import './App.css';
import "./App.css";

@Yasamato Yasamato closed this Apr 16, 2021
@Yasamato Yasamato deleted the web-flutter branch April 16, 2021 22:22
@Yasamato Yasamato mentioned this pull request Apr 16, 2021
21 tasks
@Yasamato
Copy link
Collaborator Author

Replaced by #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant