Skip to content

Commit

Permalink
Updated filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale committed Jul 12, 2024
1 parent b319375 commit d1c3063
Show file tree
Hide file tree
Showing 13 changed files with 148 additions and 81 deletions.
7 changes: 3 additions & 4 deletions configuration/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ export const environment = {
export const config = {
api: {
BASE_URL: 'https://school-api-dev.tekdinext.com/',
// BASE_URL_BOT: 'https://school-openai.tekdinext.com/',
BASE_URL_BOT: 'https://e97a-114-143-119-218.ngrok-free.app/',

BASE_URL_BOT: 'https://school-openai.tekdinext.com/',
TELEMETRY_BASE_URL: 'https://school-dev.tekdinext.com/',
CONFIG: 'seeker/configuration',
PAGE_SEARCH_API: 'content/search',
Expand All @@ -17,7 +15,8 @@ export const config = {
SEARCH_API: 'content/search',
CONFIRM_API: 'confirm',
BOT_SAKHI_API_PATH: 'v1/query',
BOT_ACTIVITY_API_PATH: 'v1/query',
BOT_ACTIVITY_API_PATH: 'api/activitybot/v1/query',

REGISTER_DEVICE_API_PATH: 'api/registerMobileDevice',
KEY: 'myjp-0.1',
SECRET: '7tVOEu0xj0zYQiYtCYbauEkNC3NBXCpM'
Expand Down
34 changes: 34 additions & 0 deletions installPrompt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// installPrompt.js

let deferredPrompt;

window.addEventListener('beforeinstallprompt', (e) => {
// Prevent the mini-infobar from appearing on mobile
e.preventDefault();
// Stash the event so it can be triggered later
deferredPrompt = e;
// Update UI notify the user they can install the PWA
const installButton = document.getElementById('installButton');
installButton.style.display = 'block';

installButton.addEventListener('click', () => {
// Hide the install button
installButton.style.display = 'none';
// Show the install prompt
deferredPrompt.prompt();
// Wait for the user to respond to the prompt
deferredPrompt.userChoice.then((choiceResult) => {
if (choiceResult.outcome === 'accepted') {
console.log('User accepted the install prompt');
} else {
console.log('User dismissed the install prompt');
}
deferredPrompt = null;
});
});
});

window.addEventListener('appinstalled', () => {
// Log install to analytics
console.log('PWA was installed');
});
17 changes: 17 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,27 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>

<meta name="theme-color" content="#1976d2">
<style>
#installButton {
display: none; /* Initially hide the button */
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>

<body>
<app-root></app-root>
<button id="installButton">Install PWA</button>

<script src="installPrompt.js"> console.log('hi-----');</script>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>

Expand Down
1 change: 1 addition & 0 deletions www/4392.237c6e56ec79ebfc.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion www/4392.d10b6aa6cd8ab778.js

This file was deleted.

4 changes: 2 additions & 2 deletions www/assets/appConfig/bright-future-english-school..json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"tenantLogo": "assets/school/TVS_128x128.svg",
"tenantLogo": "assets/school/BFES_128x128.svg",
"siteName": "Bright Future English School",
"siteByLine": "Listen, Learn & Grow !!!",
"splashImage": "assets/school/TVS_152x152.png",
"splashImage": "assets/school/BFES_152x152.png",
"defaultContentFilter": {

},
Expand Down
6 changes: 2 additions & 4 deletions www/assets/appConfig/localhost.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
"splashImage": "assets/school/GEMS.jpeg",
"sub-domain": "dharmalife",
"defaultContentFilter": [{
"agegroup": "3-6",
"sourseorg": ["ABC"]
}
],
"agegroup": ["3-6", "6-8"]
}],
"headerFilters": [
{
"defaultFilter": {
Expand Down
112 changes: 57 additions & 55 deletions www/assets/appConfig/turtuk-valley-school.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
{
"tenantLogo": "assets/school/THSM_128x128.svg",
"tenantLogo": "assets/school/TVS_128x128.svg",
"siteName": "Turtuk Valley School",
"siteByLine": "Listen, Learn & Grow !!!",
"splashImage": "assets/school/THSM_152x152.png",
"defaultContentFilter": {

},
"headerFilters": [{
"defaultFilter": {
"id": "All",
"label": "All",
"query": "",
"filters": "All"
},
"additionalFilters": [
{
"id": "Stories",
"label": "Stories",
"query": "Stories",
"filters": "Stories"
},
{
"id": "Activities",
"label": "Activities",
"query": "Activities",
"filters": "Activities"
},
{
"id": "Songs",
"label": "Songs",
"query": "Songs",
"filters": "Songs"
},
{
"id": "Audio Books",
"label": "Audio Books",
"query": "Audio Books",
"filters": "Audio Books"
"splashImage": "assets/school/TVS_152x152.png",
"defaultContentFilter": {},
"headerFilters": [
{
"defaultFilter": {
"id": "All",
"label": "All",
"query": "",
"filters": "All"
},
{
"id": "Handbooks",
"label": "Handbooks",
"query": "Handbooks",
"filters": "Handbooks"
}
]
}],
"additionalFilters": [
{
"id": "Stories",
"label": "Stories",
"query": "Stories",
"filters": "Stories"
},
{
"id": "Activities",
"label": "Activities",
"query": "Activities",
"filters": "Activities"
},
{
"id": "Songs",
"label": "Songs",
"query": "Songs",
"filters": "Songs"
},
{
"id": "Audio Books",
"label": "Audio Books",
"query": "Audio Books",
"filters": "Audio Books"
},
{
"id": "Handbooks",
"label": "Handbooks",
"query": "Handbooks",
"filters": "Handbooks"
}
]
}
],
"languages": [
{
"id": "en",
Expand All @@ -69,32 +69,34 @@
}
],
"titleCode": [
"en", "hi", "ur", "bo"
],
"en",
"hi",
"ur",
"bo"
],
"en": {
"kathaSakhiBotName": "Grunge Ngamstar",
"parentTaraBotName": "Tsabkhane Ngamstar",
"teacherTaraBotName": "Nangme Ngamstar"
},
"hi": {
},
"hi": {
"kathaSakhiBotName": "ग्रंज नगमस्टार",
"parentTaraBotName": "त्सबखाने नगमस्टार",
"teacherTaraBotName": "नंगमे नगमस्टार"
},
"ur": {
},
"ur": {
"kathaSakhiBotName": "گرنج ناگستر",
"parentTaraBotName": "تسبخانے نگمسٹار",
"teacherTaraBotName": "ننگمے نگمسٹار"
},
"bo": {
},
"bo": {
"kathaSakhiBotName": "གྲུང་ངེ་ངམ་སྟར།",
"parentTaraBotName": "ཚབ་ཁ་ནེ་ནམ་སྟར།",
"teacherTaraBotName": "ནང་མེ་ངམ་སྟར།"
},

},
"footerText": "Developed with ❤️ by Tekdi Technologies ",
"headerColor": "brown",
"headerFontSize": "16",
"footerColor": "brown",
"footerFontSize": "16"
}
}
21 changes: 19 additions & 2 deletions www/index.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion www/main.396a4b84994171d4.js

This file was deleted.

1 change: 1 addition & 0 deletions www/main.67b5fc537d7c7116.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions www/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1720702860949,
"timestamp": 1720774534651,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -45,7 +45,7 @@
"/4183.fbaeacea2b0845b7.js",
"/4224.70311ea3fdbf63a3.js",
"/4294.62c2e797697ed548.js",
"/4392.d10b6aa6cd8ab778.js",
"/4392.237c6e56ec79ebfc.js",
"/4406.494f34a7f430b92d.js",
"/441.e6b1a85717016aa1.js",
"/4463.73e20d061ca7cb3b.js",
Expand Down Expand Up @@ -101,12 +101,12 @@
"/9977.dfb6af23e31fcb21.js",
"/common.6fb368d54d6a7f3d.js",
"/index.html",
"/main.396a4b84994171d4.js",
"/main.67b5fc537d7c7116.js",
"/manifest.webmanifest",
"/polyfills-core-js.c76198334f717402.js",
"/polyfills-dom.bf542500b6fca113.js",
"/polyfills.8aa0ed51fddab033.js",
"/runtime.ebebf37c5fd2ce98.js",
"/runtime.e410ad06846f19ec.js",
"/scripts.f969b614b9decf68.js",
"/styles.4e8dacb696c69ef3.css"
],
Expand Down Expand Up @@ -502,7 +502,7 @@
"/4183.fbaeacea2b0845b7.js": "e331b71f59f6bac2fbb35662da3f9518aa735d84",
"/4224.70311ea3fdbf63a3.js": "c5da1710213bb0a5a50ef264f5dbf7a0b0cba324",
"/4294.62c2e797697ed548.js": "5b422aec894295e82385f4ffd1ae7ab6bde5397e",
"/4392.d10b6aa6cd8ab778.js": "2906c04fb20374da82f97fa2cc5d972ccbea92c1",
"/4392.237c6e56ec79ebfc.js": "ae513a5f92da7802d12cf7f2b3940ee1862d5872",
"/4406.494f34a7f430b92d.js": "cca863250ec958a8ea2d7060e67ace9b7a8aa664",
"/441.e6b1a85717016aa1.js": "40c1b5178cdeb00499a134f75dc95e9c7addcd0b",
"/4463.73e20d061ca7cb3b.js": "9bd46fc15e5adba095e02f49f69877eb5c572744",
Expand Down Expand Up @@ -559,12 +559,12 @@
"/Doodles.5521a3972f72a279.svg": "32405cec21a4720c9ee4d0b942581502fb7a1974",
"/NotoSans-Regular.69e81dad19259ab6.ttf": "71640601d4ff5ee3713b68228b564dcca13a4aaa",
"/assets/add.svg": "33b920c2ac89d971404730406bc4df477ea1dabd",
"/assets/appConfig/bright-future-english-school..json": "a148fe920d5d80aa5a343c8a34881df1b8db60e2",
"/assets/appConfig/bright-future-english-school..json": "7259678099c235d5d1b83b218695ba67ffce159f",
"/assets/appConfig/garhwal-school.json": "97dde399b63b914b4ae2ae9b9101050e558e4969",
"/assets/appConfig/hummingbird-school.json": "14142e48efde5408b385286d9d1924a430b24610",
"/assets/appConfig/imamiya-mission-school.json": "218fa9e317078d1127a67748c2e88f0e8c06e40c",
"/assets/appConfig/localhost.json": "a463a0c695e08815b9485112b82ea8a2c4fdb600",
"/assets/appConfig/turtuk-valley-school.json": "9044dc8df25437be81b983af03bd6ef41f677c73",
"/assets/appConfig/localhost.json": "c2a8a2f32d499a47db2f87375043f45ec4c22ce2",
"/assets/appConfig/turtuk-valley-school.json": "f004542bc776fbec2129efcd4f6c1de6ebb91e92",
"/assets/arrow-right.svg": "bb67048eb7cd7987f8e2e43511f11a7d962f5af3",
"/assets/badge-2.svg": "fb752f1cd110fc328f39e25632e85fb830ffa324",
"/assets/exit_to_app.svg": "9e8f3983dbb2ba7cfdbfeceacce0374eef54bdcb",
Expand Down Expand Up @@ -899,13 +899,13 @@
"/assets/timer.svg": "57b27e5d93af2aabd1077ecd4c70bcab678f4472",
"/assets/user.svg": "2dc572771661b2ccd3ea4ae06bf768778144cbec",
"/common.6fb368d54d6a7f3d.js": "be07a45ebe95bc3a1fc57cc6d28f471f0505c026",
"/index.html": "2ced118dca4b05ff89cc1dc795308a7e7d51af5d",
"/main.396a4b84994171d4.js": "a93d9b1cc3257fa5262c73a8e064f5a2f8b1d45b",
"/index.html": "c58c2df85e197abecd58cbce83496a10c8e687c7",
"/main.67b5fc537d7c7116.js": "f9e19335cf5b3bb5fc92e395219202ef46eabf71",
"/manifest.webmanifest": "5a927f2c991153c4e1fb8dd9fd7845bbe00ba537",
"/polyfills-core-js.c76198334f717402.js": "d6e270a2944b6a95a9b97dafd25599ba825e8d7f",
"/polyfills-dom.bf542500b6fca113.js": "3fa333db66c8050f12e99d977f5098a6de8dd593",
"/polyfills.8aa0ed51fddab033.js": "52a4225db39c3a19f31842d5205497fb87127245",
"/runtime.ebebf37c5fd2ce98.js": "1a061c8dfaad1b76a55b372805187621aac3d943",
"/runtime.e410ad06846f19ec.js": "6b13cf4b1a13124b01c098b5efc4eb4f5b264227",
"/scripts.f969b614b9decf68.js": "467091cacab9e36440117d8c26effba07c491af9",
"/styles.4e8dacb696c69ef3.css": "c63283b3d95887a1fd9dcc217de175071c24864f"
},
Expand Down
Loading

0 comments on commit d1c3063

Please sign in to comment.