feat: implement modular UMass theme components and supporting generation scripts for home page structure

This commit is contained in:
2026-07-29 23:03:29 +07:00
parent c1e0e39aad
commit 317df123bb
37 changed files with 7044 additions and 192 deletions
+25
View File
@@ -0,0 +1,25 @@
import oracledb
import sys
def main():
try:
connection = oracledb.connect(user='sisvietnam', password='sisvietnam', dsn='localhost:1521/sisvietnam')
cursor = connection.cursor()
content = '[component:video-fallback]'
cursor.execute("UPDATE html_snippet SET content = :content WHERE slug = 'content-top'", content=content)
if cursor.rowcount > 0:
print("Successfully updated content-top snippet to use video-fallback component!")
else:
print("Warning: content-top snippet not found in DB.")
connection.commit()
cursor.close()
connection.close()
except Exception as e:
print(f"Error: {e}")
sys.exit(1)
if __name__ == '__main__':
main()