Skip to content
Permalink
Browse files

add editor version to recent project list

  • Loading branch information...
InventivetalentDev committed Feb 5, 2019
1 parent ad3ce7b commit 6ee1ea9e3f6e6766d8f620f2566711008157adfb
Showing with 8 additions and 1 deletion.
  1. +7 −1 index.html
  2. +1 −0 main.js
@@ -41,6 +41,12 @@
background-position: center;
background-size: cover;
}
.collection-item > .editorVersion {
float: right;
text-align: right;
color: #7d7d7d;
}
</style>
</head>
<body>
@@ -154,7 +160,7 @@ <h5>Recent Projects <a href="#" class="createNewProject right-align" style="colo
ipcRenderer.on("recentProjects", function (event, arg) {
for (let i = 0; i < arg.length; i++) {
if (!arg[i] || !arg[i].path) continue;
let item = $('<li class="collection-item avatar">' + (arg[i].thumbnail ? '<div class="thumbnail" style="background-image: url(data:image/jpeg;base64,' + arg[i].thumbnail + ')"></div>' : '') + '<span class="title">' + arg[i].name + '</span><p>' + arg[i].path + '</p></li>');
let item = $('<li class="collection-item avatar">' + (arg[i].thumbnail ? '<div class="thumbnail" style="background-image: url(data:image/jpeg;base64,' + arg[i].thumbnail + ')"></div>' : '') + '<span class="title">' + arg[i].name + '</span><p>' + arg[i].path + '</p><span class="editorVersion">' + arg[i].editorVersion + '</span></li>');
item.click(() => {
ipcRenderer.send("openProject", arg[i].path);
analytics.event("Home", "Open Recent Project").send();
@@ -259,6 +259,7 @@ function readRecentProjects() {
resolve({
path: data[i],
name: projectData.name,
editorVersion: projectData.editorVersion,
thumbnail: thumb
})
})

0 comments on commit 6ee1ea9

Please sign in to comment.
You can’t perform that action at this time.