student-gr
dev sp 2023-01-04 12:27:43 +00:00
parent 17f541482b
commit eb77cd5e0a
6 changed files with 26 additions and 15 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/png" href="/img/favicon.ico"/>
<title>Sreechaitanya College, Habra</title> <title>Sreechaitanya College, Habra</title>
<!-- <link <!-- <link
rel="preload" rel="preload"

2
info.txt Normal file
View File

@ -0,0 +1,2 @@
1. https://sreechaitanyacollege.in/students-feedback
2. Login

8
public/.htaccess Normal file
View File

@ -0,0 +1,8 @@
RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /

BIN
public/img/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,23 +1,22 @@
<template> <template>
<div class="container-fluid bg-white mx-auto mt-3 p-0"> <div class="container bg-white mx-auto mt-3 p-4">
<div v-if="isLoading"> <div v-if="isLoading">
<h2>Loading ...</h2> <h2>Loading ...</h2>
</div> </div>
<div v-else> <div v-else>
<div v-html="page[0].content" class="container mx-auto"> <h2>{{page[0].title}}</h2>
<div v-html="page[0].content" ></div>
</div>
<div v-if="fileAttached"> <div v-if="fileAttached">
<h2>Attachments</h2> <h2>Attachments.</h2>
<div v-for="(file, index) in files"> <ul>
<li v-for="(file, index) in files">
{{index+1}}.
<a class="text-blue-600" :href="`https://api8.siliconpin.com/assets/` + file.id+'?download' " :download="file.filename_download">
{{ file.filename_download }}
</a>
</li>
{{index+1}} </ul>
<a target="_blank" :href="`https://api8.siliconpin.com/assets/` + file.id+'?download' " :download="file.filename_download">
<h3> {{ file.filename_download }}</h3>
</a>
</div>
</div> </div>
</div> </div>
@ -44,6 +43,7 @@ export default {
}) })
.then(jsonPageData => { .then(jsonPageData => {
this.page = jsonPageData.data this.page = jsonPageData.data
console.log(this.page)
this.isLoading = false this.isLoading = false
return jsonPageData.data[0].id return jsonPageData.data[0].id
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="container bg-white mx-auto mt-3 p-0 text-blue-700 leading-loose"> <div class="container bg-white mx-auto mt-3 p-4 text-blue-700 leading-loose">
<div v-if="isLoading"> <div v-if="isLoading">
<h2>Loading ...</h2> <h2>Loading ...</h2>
</div> </div>
@ -31,7 +31,7 @@
// fetch('https://api8.siliconpin.com/items/scc22?slug=about-us') // fetch('https://api8.siliconpin.com/items/scc22?slug=about-us')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
this.page = data.data this.page = data.data.reverse()
// console.log(data) // console.log(data)
this.isLoading = false this.isLoading = false
}) })