Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function userProjectButtons(){
projectBackButton();
});
});

$(".opencodeeditor").click((value) => {
userjs.setProject(value);
userjs.startTensorboard(globaljs.projectDetails.name);
Expand All @@ -72,7 +72,7 @@ function userProjectButtons(){
codeeditorSaveButton();
});
});

$(".opennodeeditor").click((value) => {
userjs.setProject(value);
loadPage("nodeeditor/nodeeditor.html", ()=>{
Expand Down
4 changes: 2 additions & 2 deletions src/modules/project/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function init(){
$("#project-name").val(globaljs.projectDetails.name);
$("#project-description").val(globaljs.projectDetails.details);

$(".updatebuttons").click((value) => {
// swal({
// text: "Project Name",
Expand Down Expand Up @@ -63,4 +63,4 @@ function init(){

module.exports = {
init: init
}
}
22 changes: 15 additions & 7 deletions src/modules/user/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function init(){
if (!fs.existsSync(projects_path)) {
fs.mkdirSync(projects_path);
}

if (!fs.existsSync(projects_path + dir)) {
swal({
text: "Project Details",
Expand Down Expand Up @@ -80,7 +80,7 @@ def train():
X, Y = getTrainingData()
model.fit(x = X,y = Y,batch_size = None,epochs = 10,verbose = 0,callbacks = [tensorboard],validation_split = 0,validation_data = None,shuffle = True)

train()
train()
`
fs.writeFileSync(path.join(projects_path, dir, "graph.json"), JSON.stringify(initgraph));
fs.writeFileSync(path.join(projects_path, dir, "editor.py"), initeditor);
Expand Down Expand Up @@ -136,7 +136,7 @@ function killTensorboard(){
}

function setProject(value) {
let pdosi = $(value.target).parent().parent().parent()[0].children;
let pdosi = $(value.target).parent().parent().parent().parent()[0].children;
globaljs.projectDetails.name = pdosi[0].innerText;
globaljs.projectDetails.details = pdosi[1].innerText;
}
Expand Down Expand Up @@ -165,11 +165,19 @@ function loadProjects() {
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item opencodeeditor">Code editor</a>
<a class="dropdown-item opennodeeditor">Node editor</a>

</div>
</div>
<button type="button" class="btn btn-secondary m-1 settingsbuttons">
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
More </button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">

<a class="dropdown-item settingsbuttons">
Settings
</button>
</a>
</div>
</div>

</div>
</div>
</div>
Expand Down Expand Up @@ -197,4 +205,4 @@ module.exports = {
// globaljs.functionsText = "";
// globaljs.isLoaded.nodeeditor = false;
// globaljs.graph = undefined;
// });
// });