mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 11:32:55 +00:00 
			
		
		
		
	Add WebIDE UIModule
This commit is contained in:
		
							
								
								
									
										9
									
								
								src/app/templates/module-webide.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/app/templates/module-webide.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<h1>WebIDE</h1>
 | 
			
		||||
<pre>
 | 
			
		||||
    <code id="{{ anchor_id }}">
 | 
			
		||||
         
 | 
			
		||||
    </code>
 | 
			
		||||
</pre>
 | 
			
		||||
<button type="button" class="btn btn-outline-primary anchor" id="{{ anchor_id }}_event">
 | 
			
		||||
    Next
 | 
			
		||||
</button>
 | 
			
		||||
@@ -1,2 +1,3 @@
 | 
			
		||||
from .logger import Logger
 | 
			
		||||
from .login import Login
 | 
			
		||||
from .webide import WebIDE
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								src/app/ui_modules/webide.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/app/ui_modules/webide.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
from tornado.web import UIModule
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class WebIDE(UIModule):
 | 
			
		||||
    def render(self, anchor_id, *args, **kwargs):
 | 
			
		||||
        return self.render_string('module-webide.html', anchor_id=anchor_id, **kwargs)
 | 
			
		||||
		Reference in New Issue
	
	Block a user