diff --git a/index.html b/index.html index 40e540d..e114bc7 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,6 @@ -
+ diff --git a/src/app.rs b/src/app.rs index 0e6f606..082140a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2,7 +2,7 @@ use std::cell::RefCell; use std::io::Cursor; use std::collections::{HashMap, self}; use std::rc::Rc; -use gloo::console::console_dbg; +use gloo::console::{console_dbg, console}; use gloo::file::callbacks::FileReader; use gloo::file::File; use gloo::storage::{LocalStorage, Storage}; @@ -10,7 +10,7 @@ use web_sys::{DragEvent, Event, FileList, HtmlInputElement, MouseEvent}; use yew::html::TargetCast; use yew::{html, Callback, Component, Context, Html}; -use crate::generate_sql::{SQLValueGuess, generate_table_guessess}; +use crate::generate_sql::{SQLValueGuess, generate_table_guessess, generate_fake_entries}; use crate::magicdraw_parser::{parse_project, SQLTableCollection, SQLTable}; use crate::components::sql_column_info::SQLTableColumnInfo; @@ -27,6 +27,7 @@ pub enum Msg { ShowPrevTable, AllGoodConfirmation, GenerateSQL, + UpdateRowsPerTable(u32), } pub struct App { @@ -35,7 +36,8 @@ pub struct App { current_guessess: Vec{ "3. Final settings" }
@@ -258,12 +280,14 @@ impl App { @@ -276,9 +300,9 @@ impl App { html! {{ "4. Copy & Paste" }
-
+
{ sql }
-
+