You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

4 years ago
  1. from flask import Flask, g, request, session, redirect, url_for, render_template
  2. from flask_bootstrap import Bootstrap
  3. import os
  4. app = Flask(__name__)
  5. Bootstrap(app)
  6. app.secret_key = 'asdf'
  7. app.debug = True
  8. @app.route('/')
  9. def index():
  10. search = {'active': True, 'search_url': 'https://searx.info/?q='}
  11. account_url = 'https://account.technicalincompetence.club'
  12. apps = [
  13. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  14. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  15. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  16. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  17. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  18. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  19. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  20. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  21. {'name': 'Gitea', 'description': 'It\'s git', 'link': 'https://git.tia.moe'},
  22. ]
  23. return render_template('index.j2', apps = apps, search = search, account_url = account_url)
  24. if __name__ == '__main__':
  25. app.run()