Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,29 @@
margin-top: 12px;
margin-left: 12px;
}

:global(li.target:has(input[type='checkbox']:checked)) {
background: #e6eefb;
}
:global(div.target:has(input[type='checkbox']:checked)) {
background: #e6eefb;
}
:global(div.target:has(input[type='radio']:checked)) {
background: #e6eefb;
}
:global(div.target2:has(input[type='checkbox']:checked) + div) {
color: #015ad9;
}
:global(div.target2:has(input[type='checkbox']:checked) + span) {
color: #015ad9;
}
:global(div.target3:has(input[type='checkbox']:checked) + span) {
color: #015ad9;
}
:global(input.checkbox-target[type='checkbox']:checked + span) {
color: #015ad9;
}
:global(.checkbox-style) {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
</style>
15 changes: 3 additions & 12 deletions frontend/src/routes/books/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -378,24 +378,15 @@
background-position: left center;
outline: 0;
}
div.target:has(input[type='checkbox']:checked) {
div.radio-target:has(input[type='radio']:checked) {
background: #e6eefb;
}
div.target:has(input[type='radio']:checked) {
background: #e6eefb;
}
input.checkbox-target[type='checkbox']:checked + span {
input#show-gateway-radio-button[type='radio']:checked + span {
color: #015ad9;
}
div.target3:has(input[type='checkbox']:checked) + span {
input#show-heart-radio-button[type='radio']:checked + span {
color: #015ad9;
}
div.target2:has(input[type='checkbox']:checked) + div {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.radio-style {
@apply h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
Expand Down
49 changes: 0 additions & 49 deletions frontend/src/routes/languages/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -215,52 +215,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
#filter-gl-langs,
#filter-non-gl-langs {
text-indent: 17px;
padding-left: 5px;
margin-right: 5px;
background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.5014 14.0014H14.7114L14.4314 13.7314C15.0564 13.0054 15.5131 12.1502 15.769 11.2271C16.0248 10.3039 16.0735 9.33559 15.9114 8.39144C15.4414 5.61144 13.1214 3.39144 10.3214 3.05144C9.33706 2.92691 8.33723 3.02921 7.39846 3.35053C6.4597 3.67185 5.60688 4.20366 4.90527 4.90527C4.20366 5.60688 3.67185 6.4597 3.35053 7.39846C3.02921 8.33723 2.92691 9.33706 3.05144 10.3214C3.39144 13.1214 5.61144 15.4414 8.39144 15.9114C9.33559 16.0735 10.3039 16.0248 11.2271 15.769C12.1502 15.5131 13.0054 15.0564 13.7314 14.4314L14.0014 14.7114V15.5014L18.2514 19.7514C18.6614 20.1614 19.3314 20.1614 19.7414 19.7514C20.1514 19.3414 20.1514 18.6714 19.7414 18.2614L15.5014 14.0014ZM9.50144 14.0014C7.01144 14.0014 5.00144 11.9914 5.00144 9.50144C5.00144 7.01144 7.01144 5.00144 9.50144 5.00144C11.9914 5.00144 14.0014 7.01144 14.0014 9.50144C14.0014 11.9914 11.9914 14.0014 9.50144 14.0014Z" fill="%2366768B"/></svg>');
background-repeat: no-repeat;
background-position: left center;
outline: 0;
}
div.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
div.target:has(input[type='radio']:checked) {
background: #e6eefb;
}
div.radio-target:has(input[type='radio']:checked) {
background: #e6eefb;
}
input.show-gateway-radio-button[type='radio']:checked + span {
color: #015ad9;
}
input.show-heart-radio-button[type='radio']:checked + span {
color: #015ad9;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
div.target3:has(input[type='checkbox']:checked) + span {
color: #015ad9;
}
div.target2:has(input[type='checkbox']:checked) + div {
color: #015ad9;
}
div.target2:has(input[type='checkbox']:checked) + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.radio-style {
@apply h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.search-style {
@apply h-full w-full rounded-[7px] border border-gray-200 bg-transparent px-3 py-2.5 font-sans text-xl font-normal text-[#33445c] outline outline-0 transition-all focus:border-2 focus:border-gray-900 focus:outline-0;
}
</style>
7 changes: 0 additions & 7 deletions frontend/src/routes/passages/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<script lang="ts">
import '../../app.pcss'
import { env } from '$env/dynamic/public'
</script>

<slot />

<style lang="postcss">
.footer {
margin-top: 12px;
margin-left: 12px;
}
</style>
49 changes: 0 additions & 49 deletions frontend/src/routes/passages/language/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -168,52 +168,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
#filter-gl-langs,
#filter-non-gl-langs {
text-indent: 17px;
padding-left: 5px;
margin-right: 5px;
background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.5014 14.0014H14.7114L14.4314 13.7314C15.0564 13.0054 15.5131 12.1502 15.769 11.2271C16.0248 10.3039 16.0735 9.33559 15.9114 8.39144C15.4414 5.61144 13.1214 3.39144 10.3214 3.05144C9.33706 2.92691 8.33723 3.02921 7.39846 3.35053C6.4597 3.67185 5.60688 4.20366 4.90527 4.90527C4.20366 5.60688 3.67185 6.4597 3.35053 7.39846C3.02921 8.33723 2.92691 9.33706 3.05144 10.3214C3.39144 13.1214 5.61144 15.4414 8.39144 15.9114C9.33559 16.0735 10.3039 16.0248 11.2271 15.769C12.1502 15.5131 13.0054 15.0564 13.7314 14.4314L14.0014 14.7114V15.5014L18.2514 19.7514C18.6614 20.1614 19.3314 20.1614 19.7414 19.7514C20.1514 19.3414 20.1514 18.6714 19.7414 18.2614L15.5014 14.0014ZM9.50144 14.0014C7.01144 14.0014 5.00144 11.9914 5.00144 9.50144C5.00144 7.01144 7.01144 5.00144 9.50144 5.00144C11.9914 5.00144 14.0014 7.01144 14.0014 9.50144C14.0014 11.9914 11.9914 14.0014 9.50144 14.0014Z" fill="%2366768B"/></svg>');
background-repeat: no-repeat;
background-position: left center;
outline: 0;
}
div.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
div.target:has(input[type='radio']:checked) {
background: #e6eefb;
}
div.radio-target:has(input[type='radio']:checked) {
background: #e6eefb;
}
input.show-gateway-radio-button[type='radio']:checked + span {
color: #015ad9;
}
input.show-heart-radio-button[type='radio']:checked + span {
color: #015ad9;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
div.target3:has(input[type='checkbox']:checked) + span {
color: #015ad9;
}
div.target2:has(input[type='checkbox']:checked) + div {
color: #015ad9;
}
div.target2:has(input[type='checkbox']:checked) + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.radio-style {
@apply h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.search-style {
@apply h-full w-full rounded-[7px] border border-gray-200 bg-transparent px-3 py-2.5 font-sans text-xl font-normal text-[#33445c] outline outline-0 transition-all focus:border-2 focus:border-gray-900 focus:outline-0;
}
</style>
32 changes: 0 additions & 32 deletions frontend/src/routes/passages/passages/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
return bookCodesAndNames
}


let bookCodesAndNames: Array<[string, string]> = []

onMount(() => {
Expand All @@ -46,7 +45,6 @@
bookCodesAndNames = [...bookCodesAndNames_] // Ensure reactivity with [...blah]
})
.catch((err) => console.error(err))

})

function removePassage(id: number) {
Expand All @@ -61,8 +59,6 @@
}
}



let windowWidth: number = typeof window !== 'undefined' ? window.innerWidth : 0
let TAILWIND_SM_MIN_WIDTH: number = PUBLIC_TAILWIND_SM_MIN_WIDTH as unknown as number

Expand Down Expand Up @@ -125,31 +121,3 @@
<WizardBasket />
</div>
</div>

<style global lang="postcss">
#filter-gl-langs,
#filter-non-gl-langs {
text-indent: 17px;
padding-left: 5px;
margin-right: 5px;
background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.5014 14.0014H14.7114L14.4314 13.7314C15.0564 13.0054 15.5131 12.1502 15.769 11.2271C16.0248 10.3039 16.0735 9.33559 15.9114 8.39144C15.4414 5.61144 13.1214 3.39144 10.3214 3.05144C9.33706 2.92691 8.33723 3.02921 7.39846 3.35053C6.4597 3.67185 5.60688 4.20366 4.90527 4.90527C4.20366 5.60688 3.67185 6.4597 3.35053 7.39846C3.02921 8.33723 2.92691 9.33706 3.05144 10.3214C3.39144 13.1214 5.61144 15.4414 8.39144 15.9114C9.33559 16.0735 10.3039 16.0248 11.2271 15.769C12.1502 15.5131 13.0054 15.0564 13.7314 14.4314L14.0014 14.7114V15.5014L18.2514 19.7514C18.6614 20.1614 19.3314 20.1614 19.7414 19.7514C20.1514 19.3414 20.1514 18.6714 19.7414 18.2614L15.5014 14.0014ZM9.50144 14.0014C7.01144 14.0014 5.00144 11.9914 5.00144 9.50144C5.00144 7.01144 7.01144 5.00144 9.50144 5.00144C11.9914 5.00144 14.0014 7.01144 14.0014 9.50144C14.0014 11.9914 11.9914 14.0014 9.50144 14.0014Z" fill="%2366768B"/></svg>');
background-repeat: no-repeat;
background-position: left center;
outline: 0;
}
div.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
div.target:has(input[type='radio']:checked) {
background: #e6eefb;
}
div.radio-target:has(input[type='radio']:checked) {
background: #e6eefb;
}
.radio-style {
@apply h-4 w-4 border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
.search-style {
@apply h-full w-full rounded-[7px] border border-gray-200 bg-transparent px-3 py-2.5 font-sans text-xl font-normal text-[#33445c] outline outline-0 transition-all focus:border-2 focus:border-gray-900 focus:outline-0;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {
PUBLIC_CHAPTERS_IN_BOOKS_URL,
PUBLIC_NT_SURVEY_RG_PASSAGES_URL,
PUBLIC_STET_PASSAGES_URL,
PUBLIC_STET_PASSAGES_URL
} from '$env/static/public'
import { env } from '$env/dynamic/public'
import type { BibleReference } from './model'
Expand Down Expand Up @@ -64,11 +64,12 @@

export async function addNTSurveyRGPassages() {
try {
const bibleReferences = await getNTSurveyRGPassages($langCodeAndNameStore.split(',')[0])
const langCode = $langCodeAndNameStore.split(',')[0]
const bibleReferences = await getNTSurveyRGPassages(langCode)
console.log(`bibleReferences[0]: ${bibleReferences[0]}`)
for (const bibleRef of bibleReferences) {
addPassageReference(
$langCodeAndNameStore.split(',')[0],
langCode,
bibleRef.book_code,
bibleRef.book_name,
Number(bibleRef.start_chapter),
Expand Down Expand Up @@ -102,11 +103,12 @@

export async function addSTETPassages() {
try {
const bibleReferences = await getSTETPassages($langCodeAndNameStore.split(',')[0])
const langCode = $langCodeAndNameStore.split(',')[0]
const bibleReferences = await getSTETPassages(langCode)
console.log(`bibleReferences[0]: ${bibleReferences[0]}`)
for (const bibleRef of bibleReferences) {
addPassageReference(
$langCodeAndNameStore.split(',')[0],
langCode,
bibleRef.book_code,
bibleRef.book_name,
Number(bibleRef.start_chapter),
Expand Down
17 changes: 1 addition & 16 deletions frontend/src/routes/passages/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
import WizardBreadcrumb from '$lib/passages/WizardBreadcrumb.svelte'
import WizardBasket from '$lib/passages/WizardBasket.svelte'
import WizardBasketModal from '$lib/WizardBasketModal.svelte'
import {
emailStore,
documentRequestKeyStore,
} from '$lib/passages/stores/SettingsStore'
import { emailStore, documentRequestKeyStore } from '$lib/passages/stores/SettingsStore'
import { documentReadyStore, errorStore } from '$lib/passages/stores/NotificationStore'
import { passagesStore } from '$lib/passages/stores/PassagesStore'
import GenerateDocument from './GenerateDocument.svelte'
Expand Down Expand Up @@ -124,15 +121,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
li.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
</style>
12 changes: 0 additions & 12 deletions frontend/src/routes/resource_types/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
li.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
</style>
12 changes: 0 additions & 12 deletions frontend/src/routes/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
li.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
</style>
6 changes: 0 additions & 6 deletions frontend/src/routes/stet/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@

<slot />

<style lang="postcss">
.footer {
margin-top: 12px;
margin-left: 12px;
}
</style>
13 changes: 0 additions & 13 deletions frontend/src/routes/stet/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import LogRocket from 'logrocket'
import CheckIcon from '$lib/CheckIcon.svelte'


$: showEmail = false
$: showEmailCaptured = false
$: $documentReadyStore = false
Expand Down Expand Up @@ -126,15 +125,3 @@
</div>
<!-- end if -->
</div>

<style global lang="postcss">
li.target:has(input[type='checkbox']:checked) {
background: #e6eefb;
}
input.checkbox-target[type='checkbox']:checked + span {
color: #015ad9;
}
.checkbox-style {
@apply h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600;
}
</style>
Loading