From 6a16bbdcdb40406592e47ee8d489f857837e5c96 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 13:54:38 +0530 Subject: Initial commit --- src/templates/base.html | 17 +++++++ src/templates/profile.html | 24 ++++++++++ src/templates/viewDir.html | 106 ++++++++++++++++++++++++++++++++++++++++++++ src/templates/viewHome.html | 29 ++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 src/templates/base.html create mode 100644 src/templates/profile.html create mode 100644 src/templates/viewDir.html create mode 100644 src/templates/viewHome.html (limited to 'src/templates') diff --git a/src/templates/base.html b/src/templates/base.html new file mode 100644 index 0000000..98e5787 --- /dev/null +++ b/src/templates/base.html @@ -0,0 +1,17 @@ + + + + + Cloud Maker + + + + + +
+ {{ template "main" . }} +
+ + + + diff --git a/src/templates/profile.html b/src/templates/profile.html new file mode 100644 index 0000000..6e6fccd --- /dev/null +++ b/src/templates/profile.html @@ -0,0 +1,24 @@ +{{ define "main" }} +
+

Cloud Maker

+ +
+ +
+

Profile

+ + + + + + + + + + + + {{ if .Message }} +

{{ .Message }}

+ {{ end }} +
+{{ end }} diff --git a/src/templates/viewDir.html b/src/templates/viewDir.html new file mode 100644 index 0000000..9d45242 --- /dev/null +++ b/src/templates/viewDir.html @@ -0,0 +1,106 @@ +{{ define "main" }} +{{ $location := .File.URI }} +{{ $path := .File.Path }} +
+ +
+

{{ .File.HTMLPath }}

+
+ + + + + + + +
+ + + + +
+
+ + {{ if .CutCount }} +
+ + Files in Cut Buffer ({{ .CutCount }}) + + + + + +
+ {{ range .CutBuffer }}
{{ . }}
{{ end }} +
+
+ {{ end }} + + {{ if .CopyCount }} +
+ + Files in Copy Buffer ({{ .CopyCount }}) + + + + + +
+ {{ range .CopyBuffer }}
{{ . }}
{{ end }} +
+
+ {{ end }} +
+ +
+
+ +
+
+ {{ range .File.Data }} + {{ $name := .Info.Name }} + + {{ end }} +
+
+ + {{ if .FileCount }} +

Hint: aestrik (*) indicates mime-type (media type) of file in Info section.

+ {{ else }} +

Empty Folder

+ {{ end }} +
+ +
+ + +
+
+

Create New Folder

+

+ + +

+
+
+{{ end }} diff --git a/src/templates/viewHome.html b/src/templates/viewHome.html new file mode 100644 index 0000000..bd841d2 --- /dev/null +++ b/src/templates/viewHome.html @@ -0,0 +1,29 @@ +{{ define "main" }} +{{ $location := .File.URI }} +{{ $path := .File.Path }} +
+

Cloud Maker

+ +
+ +
+ +
+ {{ range .File.Data }} + {{ $name := .Info.Name }} + + + +
{{ $name }}
+
drive
+
+
+ {{ end }} +
+ + {{ if not .FileCount }} +

No Drives Mounted.

+ {{ end }} + +
+{{ end }} -- cgit v1.2.3