Skip to content

Commit

Permalink
清理无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaobangyu committed Sep 13, 2023
1 parent 702feca commit 1440943
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 120 deletions.
60 changes: 0 additions & 60 deletions server/robot/accord/src/bundle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -616,66 +616,6 @@ var DataUtils = {
}
var scope = null
var http = null
// //加载资源
// function loadSrc(src_list) {
// var elementList = [];
// var promises = [];
// var domain = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port
// for (var i = 0; i < src_list.length; i++) {
// var name = src_list[i];
// var extension = name.substring(name.lastIndexOf('.') + 1)
// var tagName = null
// var element = null;
// if (extension == "css") {
// element = document.createElement("link");
// element.rel = "stylesheet";
// element.href = domain + "/load_src?name=" + name;
// }
// else if (extension == "js") {
// element = document.createElement("script");
// element.src = domain + "/load_src?name=" + name;
// }
// if (!extension || !element) {
// continue
// }
// var promise = new Promise(function (resolve, reject) {
// element.onload = function () {
// resolve();
// };
// });
// elementList.push(element);
// promises.push(promise);
// }
// elementList.forEach(function (element) {
// document.head.appendChild(element);
// });
// return Promise.all(promises);
// }
// window.addEventListener('DOMContentLoaded', function () {
// //加载js文件列表
// http.get('/src_list', {}).then(function (response) {
// if (response.status != 200) {
// alert("资源加载失败,请刷新网页重新尝试!")
// return
// }
// var src_list = []
// var data = response.data;
// for (var i = 0; i < data.length; i++) {
// var name = data[i]
// if (name == "index.html") {
// continue
// }
// src_list.push(name)
// }
// //加载资源
// loadSrc(src_list).then(function () {
// NetUtils.init(http)
// scope.loadData()
// })
// console.log("response=%s", JSON.stringify(response))
// })
// });
var app = angular.module('robot', [])
app.directive('scroll', function () {
return {
Expand Down
60 changes: 0 additions & 60 deletions server/robot/accord/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -453,66 +453,6 @@ <h3 class="container-title first-ctitle">
/* codeBlock=net_utils.js */
var scope = null
var http = null
// //加载资源
// function loadSrc(src_list) {
// var elementList = [];
// var promises = [];
// var domain = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port
// for (var i = 0; i < src_list.length; i++) {
// var name = src_list[i];
// var extension = name.substring(name.lastIndexOf('.') + 1)
// var tagName = null
// var element = null;
// if (extension == "css") {
// element = document.createElement("link");
// element.rel = "stylesheet";
// element.href = domain + "/load_src?name=" + name;
// }
// else if (extension == "js") {
// element = document.createElement("script");
// element.src = domain + "/load_src?name=" + name;
// }
// if (!extension || !element) {
// continue
// }
// var promise = new Promise(function (resolve, reject) {
// element.onload = function () {
// resolve();
// };
// });
// elementList.push(element);
// promises.push(promise);
// }
// elementList.forEach(function (element) {
// document.head.appendChild(element);
// });
// return Promise.all(promises);
// }
// window.addEventListener('DOMContentLoaded', function () {
// //加载js文件列表
// http.get('/src_list', {}).then(function (response) {
// if (response.status != 200) {
// alert("资源加载失败,请刷新网页重新尝试!")
// return
// }
// var src_list = []
// var data = response.data;
// for (var i = 0; i < data.length; i++) {
// var name = data[i]
// if (name == "index.html") {
// continue
// }
// src_list.push(name)
// }
// //加载资源
// loadSrc(src_list).then(function () {
// NetUtils.init(http)
// scope.loadData()
// })
// console.log("response=%s", JSON.stringify(response))
// })
// });

var app = angular.module('robot', [])
app.directive('scroll', function () {
return {
Expand Down

0 comments on commit 1440943

Please sign in to comment.