3 Commits

7 changed files with 22 additions and 26 deletions
+8
View File
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head><title>UI Module</title></head>
<body>
<div id="app">Loading...</div>
<script src="src/app.js"></script>
</body>
</html>
-14
View File
@@ -1,14 +0,0 @@
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/api/health')
def health():
return jsonify({'status': 'ok', 'module': 'api'})
@app.route('/api/version')
def version():
return jsonify({'version': '1.0.0'})
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
-2
View File
@@ -1,2 +0,0 @@
flask>=3.0
gunicorn>=21.2
View File
-10
View File
@@ -1,10 +0,0 @@
from flask import jsonify
def register_routes(app):
@app.route('/api/users')
def list_users():
return jsonify({'users': []})
@app.route('/api/users/<int:user_id>')
def get_user(user_id):
return jsonify({'id': user_id, 'name': 'Alice'})
+10
View File
@@ -0,0 +1,10 @@
console.log('UI App initialized');
console.log('UI Module v1.0.0-rc1 - incrementally synced');
export function render() {
document.getElementById('app').innerHTML = 'Hello from UI Module v1.0.0-rc1';
}
export function getVersion() {
return '1.0.0-rc1';
}
+4
View File
@@ -0,0 +1,4 @@
/* UI Module Styles v1.0.0-rc1 */
body { font-family: sans-serif; margin: 0; padding: 20px; background: #f9f9f9; }
#app { color: #333; }
.header { border-bottom: 2px solid #007bff; padding-bottom: 10px; margin-bottom: 20px; }