}
#tic-package-left-col-tree {
- height: 80vh;
- position: relative;
- overflow: auto;
+ height: 30vh;
+ position: relative;
+ overflow: auto;
+ }
+@media (min-width: 768px) {
+ #tic-package-left-col-tree {
+ height: 80vh;
+ position: relative;
+ overflow: auto;
+ }
}
#tic-package-left-col-tree .list-group-item {
/* TODO: Height of Treeview, Package Information and Summary grid in Package Page */
#tic-package-info-table {
- height: 43.7vh;
+ height: 20vh;
display: inline-block;
position: relative;
overflow: auto;
}
+@media (min-width: 768px) {
+ #tic-package-info-table {
+ height: 43.7vh;
+ display: inline-block;
+ position: relative;
+ overflow: auto;
+ }
+}
#tic-package-summary {
- height: 20vh;
+ height: 10vh;
display: inline-block;
position: relative;
overflow: auto;
}
-
+@media (min-width: 768px) {
+ #tic-package-summary {
+ height: 10vh;
+ display: inline-block;
+ position: relative;
+ overflow: auto;
+ }
+}
/* Image Page */
#tic-image-section {
}
#tic-image-summary {
- height: 70vh;
+ height: 40vh;
display: inline-block;
position: relative;
overflow: auto;
}
+@media (min-width: 768px) {
+ #tic-image-summary {
+ height: 80vh;
+ display: inline-block;
+ position: relative;
+ overflow: auto;
+ }
+}
/* Settings Page */
var ANALYSIS_URL = '<%= protocol %>//<%= hostname %>:<%= port %>/analysis';
+ var repoStore = [];
+ var recipeStore = []; // TODO:
+
+ function getRepoStore() {
+ return repoStore;
+ }
+
function getAnalysisUrl() {
return _.template(ANALYSIS_URL)({
protocol: location.protocol,
});
}
- function SettingsData() {
- var self = this;
- self.repoStore = []; // {order, url}
- self.recipeStore = []; // TODO:
- self.packageData = [];
- }
- var Data = new SettingsData();
-
- /* FIXME: */
+ /* FIXME: sample url */
var baseRepo = {
order: 1,
url: "http://download.tizen.org/snapshots/tizen/base/latest/repos/arm64/packages"
order: 2,
url: "https://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm64-wayland/packages"
}
- Data.repoStore.push(baseRepo);
- Data.repoStore.push(mobileRepo);
-
- var postBody = {
- repos : _.map(_.orderBy(Data.repoStore, ['order']), 'url'),
- recipes : []
- };
-
- function init() {
- console.log('settings: init');
- // TODO:
- }
+ repoStore.push(baseRepo);
+ repoStore.push(mobileRepo);
function updatePackage() {
/* local json data loading test */
*/
return new Promise(function (resolve, reject) {
+ var postBody = {
+ repos : _.map(_.orderBy(repoStore, ['order']), 'url'),
+ recipes : []
+ };
+
$.ajax({
contentType: 'text/plain',
data: JSON.stringify(postBody),
dataType: 'json',
success: function(rawData) {
- Data.packageData = rawData.data;
resolve(rawData.data);
},
error: function(err) {
});
}
+ function init() {
+ console.log('settings: init');
+ }
+
init();
return {
updatePackage: updatePackage,
- Data: Data
+
+ getRepoStore: getRepoStore
}
});