init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

35
src/dialog/map.js Normal file
View File

@@ -0,0 +1,35 @@
import MAP from '../map.js';
export default {
onData: function (data) {
Dialog.title(data.title || "地图");
},
init: function () {
},
show: function () {
Dialog.init();
var rm = MAP.Room.name;
var index = rm.indexOf('-');
if (index > -1) {
rm = rm.substr(0, index);
}
Dialog.title(rm);
Dialog.footer("");
this.element = $(".map");
Dialog.contentElement.append(this.element);
Dialog.icon("map-marker");
Dialog.iconElement.attr("class", "dialog-icon glyphicon glyphicon-map-marker");
},
hide: function () {
this.element.remove();
if ($(".map-panel").children().length == 0)
this.element.appendTo(".map-panel");
},
close: function () {
this.hide();
}
};