mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-18 00:22:15 +02:00
refactor: migrate the frontend from AngularJS to Vue 3
This commit is contained in:
+5
-39
@@ -1,6 +1,6 @@
|
||||
<!-- index.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" ng-controller="mainController">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta
|
||||
@@ -8,7 +8,7 @@
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
|
||||
<title ng-bind="title">Anonymous Github</title>
|
||||
<title>Anonymous Github</title>
|
||||
<base href="/" />
|
||||
|
||||
<link
|
||||
@@ -49,38 +49,8 @@
|
||||
</noscript>
|
||||
<link rel="stylesheet" href="/css/__ALL_CSS__" />
|
||||
</head>
|
||||
<body keypress-events class="d-flex flex-column">
|
||||
<ng-include src="'partials/header.htm'"></ng-include>
|
||||
<ng-view class="align-items-stretch w-100"></ng-view>
|
||||
|
||||
<div
|
||||
class="position-fixed bottom-0 right-0 p-3"
|
||||
style="z-index: 999999999; right: 0; bottom: 0"
|
||||
>
|
||||
<div
|
||||
id="liveToast"
|
||||
class="toast show"
|
||||
role="alert"
|
||||
aria-live="assertive"
|
||||
aria-atomic="true"
|
||||
data-delay="2000"
|
||||
ng-repeat="toast in toasts"
|
||||
>
|
||||
<div class="toast-header">
|
||||
<strong class="mr-auto" ng-bind="toast.title"></strong>
|
||||
<button
|
||||
type="button"
|
||||
class="ml-2 mb-1 close"
|
||||
data-dismiss="toast"
|
||||
aria-label="Close"
|
||||
ng-click="removeToast(toast);"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body" ng-bind="toast.body"></div>
|
||||
</div>
|
||||
</div>
|
||||
<body class="d-flex flex-column">
|
||||
<div id="app" class="d-flex flex-column"></div>
|
||||
|
||||
<script src="/script/__CORE_JS__"></script>
|
||||
<script>
|
||||
@@ -103,11 +73,7 @@
|
||||
document.body.appendChild(s);
|
||||
};
|
||||
</script>
|
||||
<script src="/script/__VENDOR_JS__" defer onload="
|
||||
ace.config.set('basePath', '/script/external/ace/');
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = '/script/external/pdf.worker.js';
|
||||
angular.bootstrap(document, ['anonymous-github']);
|
||||
"></script>
|
||||
<script src="/script/__VENDOR_JS__" defer></script>
|
||||
<script>
|
||||
window.addEventListener("load", function () {
|
||||
var s = document.createElement("script");
|
||||
|
||||
Reference in New Issue
Block a user