5 Commits

Author SHA1 Message Date
c194f99e5c u 2023-01-18 15:22:41 +00:00
4903c768d5 student-gr 2023-01-05 15:19:57 +00:00
0b9553e106 k 2023-01-05 13:34:55 +00:00
eb77cd5e0a notice 2023-01-04 12:27:43 +00:00
17f541482b f 2022-12-20 11:52:27 +00:00
12 changed files with 141 additions and 23 deletions

View File

@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<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>
<!-- <link
rel="preload"

2
info.txt Normal file
View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "vite-vue3-tailwind-starter",
"version": "0.0.0",
"name": "scc-22",
"version": "1.0.0",
"scripts": {
"dev": "vite --host --port 2004",
"build": "vue-tsc --noEmit && vite build",

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

@@ -7,10 +7,7 @@
</div>
<div
class="hidden lg:block flex flex-cols bg-blue-600 h-48 text-right justify-end text-white text-3xl pt-5 font-semibold pr-12">
<img
src="/img/logo3.png"
alt="/img/logo3.png"
class="absolute left-0 top-0 h-44 w-44 mt-2 ml-14"
<img src="/img/logo3.png" alt="/img/logo3.png" class="absolute left-0 top-0 h-44 w-44 mt-2 ml-14"
/>
Estd.-1956
<br />Sree Chaitanya College,Habra

View File

@@ -447,12 +447,12 @@
</MenuItem>
<MenuItem v-slot="{ active }">
<router-link
to="/activity-gallery"
to=""
:class="[
active ? 'bg-gray-100 text-gray-900' : 'text-gray-700',
'block px-1 py-2 text-sm',
]"
>Activity Gallery</router-link
></router-link
>
</MenuItem>
<MenuItem v-slot="{ active }">

12
src/pages/js.vue Normal file
View File

@@ -0,0 +1,12 @@
<template>
<div class="container mx-auto">
<h3> This is an example of using onclick attribute in HTML. </h3>
<p> Click the following button to see the effect. </p>
<button onclick = "fun()">Click me</button>
</div>
</template>
<script>
function fun() {
alert("Welcome to the javaTpoint.com");
}
</script>

View File

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

View File

@@ -1,5 +1,5 @@
<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">
<h2>Loading ...</h2>
</div>
@@ -31,7 +31,7 @@
// fetch('https://api8.siliconpin.com/items/scc22?slug=about-us')
.then(response => response.json())
.then(data => {
this.page = data.data
this.page = data.data.reverse()
// console.log(data)
this.isLoading = false
})

View File

@@ -0,0 +1,96 @@
<template>
<div>
<section class="container mx-auto p-4 mb-48">
<h1 class="text-center text-4xl py-16 font-semibold text-blue-700">Students Suggestions/Grievance Form</h1>
<div class=" bg-blue-100 rounded-3xl">
<h1 class="p-2 text-red-800">All fields are Mandatory*</h1>
<div v-if="sccQry">
<div class="grid grid-cols-1 lg:grid-cols-2 place-items-center gap-4 lg:gap-32 p-10">
<div class="grid gap-6 w-full">
<input v-model="name" type="text" placeholder="Your Name*" class="input input-bordered input-primary w-full rounded-md" />
<input v-model="phone_number" type="number" placeholder="Phone Number*" class="input input-bordered input-primary w-full rounded-md" />
<input v-model="student_id" type="text" placeholder="Student ID*" class="input input-bordered input-primary w-full rounded-md" />
<input v-model="semester" type="text" placeholder="Semester*" class="input input-bordered input-primary w-full rounded-md" />
<input v-model="department" type="text" placeholder="Department" class="input input-bordered input-primary w-full rounded-md" />
</div>
<div class="grid w-full h-full">
<textarea v-model="message" class="textarea textarea-bordered rounded-md p-4" placeholder="Write your Suggestions/Grievance here........ "></textarea>
</div>
</div>
<div class="flex justify-center pb-8">
<button @click="savesccQry" class="bg-blue-700 p-2 px-8 text-xl text-white rounded-lg">Send Now</button>
</div>
</div>
<div v-else>Thank You!</div>
</div>
</section>
</div>
</template>
<script>
export default {
setup(){
// const route = useRoute();
useHead({
title: 'Teenybeans Preschool Curriculum - Administrators',
meta: [
{
name: `title`,
content: `Complete Preschool Business Solutions for Smart Operation`
},
{
name: `description`,
content: `Discover the best preschool solution for managing your preschool and digitizing the teaching process. Contact us for further assistance.`
},
],
})
},
data() {
return {
isLoading: true,
name:null,
phone_number:null,
student_id:null,
department: null,
message: null,
sccQry:true,
// contact_form:{}
}
},
mounted: function () {
// this.getItemByCategory()
// console.log(this.smProducts)
// console.log(this.$route.query.cat)
// console.log(this.fruits)
},
methods: {
savesccQry() {
let formData = new FormData();
formData.append('Name', this.name);
formData.append('Phone', this.phone_number);
formData.append('Student_ID', this.student_id);
fromData.append('department', this.department)
fromData.append('message', this.message)
formData.append('formName', 'scc-Students_Suggestions/Grievance_Form');
fetch('https://api8.siliconpin.com/admin/content/scc_grievance_form',
{
method: 'POST',
// headers: {
// 'Content-Type': 'multipart/form-data',
// // 'Authorization': 'Bearer my-token',
// // 'My-Custom-Header': 'foobar'
// },
body: formData,
}
)
.then(response => response.json())
.then(data => {
// console.log(data)
});
// formData=""
this.sccQry=false
},
}
}
</script>

2
typed-router.d.ts vendored
View File

@@ -44,10 +44,12 @@ declare module 'vue-router/auto/routes' {
'/documents/[id]': RouteRecordInfo<'/documents/[id]', '/documents/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'/gallery': RouteRecordInfo<'/gallery', '/gallery', Record<never, never>, Record<never, never>>,
'/index2': RouteRecordInfo<'/index2', '/index2', Record<never, never>, Record<never, never>>,
'/js': RouteRecordInfo<'/js', '/js', Record<never, never>, Record<never, never>>,
'/nn/': RouteRecordInfo<'/nn/', '/nn', Record<never, never>, Record<never, never>>,
'/nn/[id]': RouteRecordInfo<'/nn/[id]', '/nn/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'/notice/': RouteRecordInfo<'/notice/', '/notice', Record<never, never>, Record<never, never>>,
'/notice/[id]': RouteRecordInfo<'/notice/[id]', '/notice/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'/student-grievance': RouteRecordInfo<'/student-grievance', '/student-grievance', Record<never, never>, Record<never, never>>,
'/temp/google': RouteRecordInfo<'/temp/google', '/temp/google', Record<never, never>, Record<never, never>>,
}
}