public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH buubuu v1 00/10] Frontend updates
@ 2022-06-12 12:06 Alviro Iskandar Setiawan
  2022-06-12 12:07 ` [PATCH buubuu v1 01/10] assets: Create common.js to place common used helpers Alviro Iskandar Setiawan
                   ` (10 more replies)
  0 siblings, 11 replies; 22+ messages in thread
From: Alviro Iskandar Setiawan @ 2022-06-12 12:06 UTC (permalink / raw)
  To: Fernanda Ma'rouf, Akiekano
  Cc: GNU/Weeb Mailing List, Ammar Faizi, Ammar Alifian Fahdan,
	Alviro Iskandar Setiawan, Irvan Malik Azantha, Khoiri,
	Muhammad Irvan Hakim

Hi,

This series contains frontend updates for buubuu, it has been
deploy-tested with onion domain ( See: https://fb.com133993429248737
). There are 10 patches in this series.

Please review!

# Patch 1
We will have many JavaScript helper functions that will be used all
over the place. Create a single file that we can include this from all
HTML pages to reduce the burden of rewriting those functions again and
again.

# Patch 2
Create assets/common.css to place common used CSS rules. We will
include this CSS file from many places later.

# Patch 3
A previous patch creates assets/common.js which is intended to be
loaded from all HTML pages where they need our common JavaScript
function helpers. Use this JavaScript file instead of redefining the
same function again and again.

# Patch 4
The index.html file was just a garbage, let's craft something better
to allow user to at least navigate to login and register page.

# Patch 5
This is just a preparation to add the index page in authController.
Just load the index.html from this method when we receive HTTP GET
request. Nothing complex here in particular.

# Patch 6
In order to make the static assets available via HTTP URL, create a
new route for static assets. We will use it to include JavaScript and
CSS files from the HTML.

# Patch 7
Make the root URI show our index page.

# Patch 8
This makes sure we load the CSS and JS first before the HTML. While in
there, also fix up the </tr> tag placement in register.html. And also,
remove unnecessary indentation.

# Patch 9
This adds several links to allow user to navigate between pages. Such
as, from login to register, register to login, and from they both to
index.

# Patch 10
Add meta "og:*" tags to make the Facebook link preview beautiful.

tq

Signed-off-by: Alviro Iskandar Setiawan <[email protected]>
---
Alviro Iskandar Setiawan (10):
  assets: Create common.js to place common used helpers
  assets: Create common.css to place common used CSS rules
  view: Avoid redefining `get_eid()` function
  view: Rework index.html view
  controller: Crate Index() method in authController
  server: Load `./assets` directory for `/assets` route
  server: Add route '/' to load the Index
  view: Put the style and JS preload script to top
  view: Allow user to navigate between pages
  view: index: Add meta tags for Facebook link preview

 assets/bgp.jpg                | Bin 0 -> 159144 bytes
 assets/common.css             |  13 +++++
 assets/common.js              |  12 +++++
 controller/auth-controller.go |   8 +++
 server.go                     |   2 +
 view/index.html               |  43 +++++++++++++---
 view/login.html               |  74 ++++++++++++++-------------
 view/register.html            |  92 ++++++++++++++++++----------------
 8 files changed, 160 insertions(+), 84 deletions(-)
 create mode 100644 assets/bgp.jpg
 create mode 100644 assets/common.css
 create mode 100644 assets/common.js


base-commit: 809ef478a7161c3d5298123d1ac1433f5290425a
-- 
Alviro Iskandar Setiawan

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-06-24  9:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-12 12:06 [PATCH buubuu v1 00/10] Frontend updates Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 01/10] assets: Create common.js to place common used helpers Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 02/10] assets: Create common.css to place common used CSS rules Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 03/10] view: Avoid redefining `get_eid()` function Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 04/10] view: Rework index.html view Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 05/10] controller: Crate Index() method in authController Alviro Iskandar Setiawan
2022-06-12 12:26   ` Ammar Faizi
2022-06-12 12:07 ` [PATCH buubuu v1 06/10] server: Load `./assets` directory for `/assets` route Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 07/10] server: Add route '/' to load the Index Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 08/10] view: Put the style and JS preload script to top Alviro Iskandar Setiawan
2022-06-12 12:46   ` Ammar Faizi
2022-06-12 12:07 ` [PATCH buubuu v1 09/10] view: Allow user to navigate between pages Alviro Iskandar Setiawan
2022-06-12 12:07 ` [PATCH buubuu v1 10/10] view: index: Add meta tags for Facebook link preview Alviro Iskandar Setiawan
2022-06-12 12:29   ` Ammar Faizi
2022-06-12 13:19     ` Ammar Faizi
2022-06-24  7:50 ` [PATCH buubuu v1 00/10] Frontend updates Alviro Iskandar Setiawan
2022-06-24  8:04   ` Ammar Faizi
2022-06-24  8:28     ` Alviro Iskandar Setiawan
2022-06-24  9:01       ` Ammar Faizi
2022-06-24  9:09         ` Alviro Iskandar Setiawan
2022-06-24  9:23           ` Ammar Faizi
     [not found]   ` <[email protected]>
2022-06-24  8:34     ` Alviro Iskandar Setiawan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox