| 
									
										
										
										
											2022-04-05 18:40:31 +08:00
										 |  |  | const PACKAGE_NAME = "uuidconvert"; | 
					
						
							|  |  |  | const fs = require("fs"); | 
					
						
							| 
									
										
										
										
											2022-04-09 11:21:04 +08:00
										 |  |  | const vue = Editor.require(`packages://${PACKAGE_NAME}/lib/vue.js`); | 
					
						
							| 
									
										
										
										
											2022-04-05 18:40:31 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-31 08:57:26 +08:00
										 |  |  | Editor.Panel.extend({ | 
					
						
							| 
									
										
										
										
											2022-04-05 18:40:31 +08:00
										 |  |  |     style: fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/index.css`), 'utf-8') | 
					
						
							|  |  |  |         .concat(fs.readFileSync(Editor.url(`packages://${PACKAGE_NAME}/static/style/default/bootstrap.min.css`), 'utf-8')), | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     template: fs.readFileSync( | 
					
						
							|  |  |  |         Editor.url(`packages://${PACKAGE_NAME}/static/template/default/index.html`), 'utf-8'), | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     $: { | 
					
						
							|  |  |  |         app: '#app', | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     ready() { | 
					
						
							| 
									
										
										
										
											2022-04-09 11:21:04 +08:00
										 |  |  |         this.app = new vue({ | 
					
						
							| 
									
										
										
										
											2022-04-05 18:40:31 +08:00
										 |  |  |             el: this.$app, | 
					
						
							|  |  |  |             created: function () { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             components: { | 
					
						
							|  |  |  |                 "counter": Editor.require(`packages://${PACKAGE_NAME}/static/template/vue/counter.js`) | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             data: function () { | 
					
						
							|  |  |  |                 return {} | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             methods: { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             watch: { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         }) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     methods: { | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     messages: { | 
					
						
							| 
									
										
										
										
											2022-03-31 08:57:26 +08:00
										 |  |  |     } | 
					
						
							|  |  |  | }); |