Compare commits
5 Commits
82700e2dc5
...
979443da36
Author | SHA1 | Date | |
---|---|---|---|
979443da36 | |||
cb849308cc | |||
f61a5ff81b | |||
514ca624e5 | |||
35042278ac |
BIN
data/data.db
BIN
data/data.db
Binary file not shown.
@ -18,7 +18,7 @@ body {
|
||||
|
||||
.ref-tab {
|
||||
width: 60px;
|
||||
padding-top: 55px !important;
|
||||
padding-top: 60px !important;
|
||||
}
|
||||
|
||||
.ref-tab ul {
|
||||
|
2
public/css/style.min.css
vendored
2
public/css/style.min.css
vendored
@ -1 +1 @@
|
||||
body{margin:0}.inner{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;align-items:stretch;align-content:flex-start;max-width:1060px;margin:0 auto}.ref-tab{width:60px;padding-top:55px !important}.ref-tab ul{margin:0;padding:0}.ref-tab ul li{list-style:none;list-style-type:none}.tab{margin-bottom:3px}.tab button{display:flex;justify-content:center;align-items:center;height:80px;width:100%;text-align:center;font-size:14px;margin-bottom:3px}.ref{width:36%}.ref>div#ref{vertical-align:top;justify-content:flex-start;align-content:flex-start;overflow-y:scroll;width:100%;height:100%;border:#000 solid 1px;border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.3)}#ref{padding:3px 3px 3px 3px}#passage{width:100px}#newSpeaker{display:none;width:110px}#newSeries{display:none;width:110px}#fields-container{display:none}#fields-container.show{display:block}.notes{width:57%}textarea#notes{width:100%;height:100%;font-size:14pt}#notePreview{display:none;overflow-x:scroll;padding-left:10px}#notePreview ul,#notePreview ol{list-style-position:inside}#previewBtn.active,#show-hide-btn.active,.tab button.active,#openRefBtn.active{background-color:#f56a6a !important;color:#fff !important}#note-header-left{display:inline-flex;flex-direction:row;width:25%}#note-header-right{display:inline-flex;flex-direction:row-reverse;width:74%}#note-header-left h2.dirty{color:#ff8c00}#note-list{display:none;height:100%;overflow-y:scroll}#note-list ul{margin:0;padding:0;list-style-type:none;list-style:none}div#refQuery{display:none;position:absolute;z-index:100;background-color:rgba(0,0,0,.8);width:400px;height:200px}div#refQuery #referenceSearch{border:none;border-radius:5px;padding:10px 20px;font-size:16px;line-height:1.5;color:#333;background-color:#f4f4f4;width:150px;height:25px;cursor:pointer;display:none}#passage-popup{display:none;position:absolute;z-index:100;background-color:#fff;color:#000;padding:10px;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 5px rgba(0,0,0,.3);width:300px;height:300px;overflow-x:scroll}#save-check{opacity:0;text-align:right;font-size:20pt;margin-left:15px;color:green}#save-check.saving{color:orange}#save-check.error{color:red}#fields-container input,#fields-container select{width:32.5%;display:inline-block}#old-notes article p:first-child{margin-bottom:0 !important;font-size:10pt}#old-notes article a{font-size:12pt}#old-notes article p:last-child{font-size:12pt}.inner{padding-left:0}.ref h2{display:inline-block}#ref{font-size:12pt}#ref ol,#ref ul{list-style-position:inside}#referenceBook{display:none}.recording-link{font-size:8pt;color:blue;text-decoration:none}.fas-trash-alt{color:red;cursor:pointer}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.5;z-index:1000}.modal-container{position:absolute;width:300px;margin:0 auto;padding:20px;border:1px solid #ddd;background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.2);z-index:1001}.modal-header{background-color:#f5f5f5;padding:10px;border-bottom:1px solid #ddd}.modal-body{padding:20px}.modal-footer{background-color:#f5f5f5;padding:10px;border-top:1px solid #ddd}.btn-secondary{color:#337ab7}/*# sourceMappingURL=style.min.css.map */
|
||||
body{margin:0}.inner{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;align-items:stretch;align-content:flex-start;max-width:1060px;margin:0 auto}.ref-tab{width:60px;padding-top:60px !important}.ref-tab ul{margin:0;padding:0}.ref-tab ul li{list-style:none;list-style-type:none}.tab{margin-bottom:3px}.tab button{display:flex;justify-content:center;align-items:center;height:80px;width:100%;text-align:center;font-size:14px;margin-bottom:3px}.ref{width:36%}.ref>div#ref{vertical-align:top;justify-content:flex-start;align-content:flex-start;overflow-y:scroll;width:100%;height:100%;border:#000 solid 1px;border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.3)}#ref{padding:3px 3px 3px 3px}#passage{width:100px}#newSpeaker{display:none;width:110px}#newSeries{display:none;width:110px}#fields-container{display:none}#fields-container.show{display:block}.notes{width:57%}textarea#notes{width:100%;height:100%;font-size:14pt}#notePreview{display:none;overflow-x:scroll;padding-left:10px}#notePreview ul,#notePreview ol{list-style-position:inside}#previewBtn.active,#show-hide-btn.active,.tab button.active,#openRefBtn.active{background-color:#f56a6a !important;color:#fff !important}#note-header-left{display:inline-flex;flex-direction:row;width:25%}#note-header-right{display:inline-flex;flex-direction:row-reverse;width:74%}#note-header-left h2.dirty{color:#ff8c00}#note-list{display:none;height:100%;overflow-y:scroll}#note-list ul{margin:0;padding:0;list-style-type:none;list-style:none}div#refQuery{display:none;position:absolute;z-index:100;background-color:rgba(0,0,0,.8);width:400px;height:200px}div#refQuery #referenceSearch{border:none;border-radius:5px;padding:10px 20px;font-size:16px;line-height:1.5;color:#333;background-color:#f4f4f4;width:150px;height:25px;cursor:pointer;display:none}#passage-popup{display:none;position:absolute;z-index:100;background-color:#fff;color:#000;padding:10px;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 5px rgba(0,0,0,.3);width:300px;height:300px;overflow-x:scroll}#save-check{opacity:0;text-align:right;font-size:20pt;margin-left:15px;color:green}#save-check.saving{color:orange}#save-check.error{color:red}#fields-container input,#fields-container select{width:32.5%;display:inline-block}#old-notes article p:first-child{margin-bottom:0 !important;font-size:10pt}#old-notes article a{font-size:12pt}#old-notes article p:last-child{font-size:12pt}.inner{padding-left:0}.ref h2{display:inline-block}#ref{font-size:12pt}#ref ol,#ref ul{list-style-position:inside}#referenceBook{display:none}.recording-link{font-size:8pt;color:blue;text-decoration:none}.fas-trash-alt{color:red;cursor:pointer}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.5;z-index:1000}.modal-container{position:absolute;width:300px;margin:0 auto;padding:20px;border:1px solid #ddd;background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.2);z-index:1001}.modal-header{background-color:#f5f5f5;padding:10px;border-bottom:1px solid #ddd}.modal-body{padding:20px}.modal-footer{background-color:#f5f5f5;padding:10px;border-top:1px solid #ddd}.btn-secondary{color:#337ab7}/*# sourceMappingURL=style.min.css.map */
|
@ -19,7 +19,7 @@ body {
|
||||
|
||||
.ref-tab {
|
||||
width: 60px;
|
||||
padding-top: 55px !important;
|
||||
padding-top: 60px !important;
|
||||
}
|
||||
|
||||
.ref-tab ul {
|
||||
|
@ -1333,9 +1333,238 @@
|
||||
37
|
||||
],
|
||||
"hc": [
|
||||
[
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
[
|
||||
6,
|
||||
7,
|
||||
8
|
||||
],
|
||||
[
|
||||
9,
|
||||
10,
|
||||
11
|
||||
],
|
||||
[
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15
|
||||
],
|
||||
[
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
[
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23
|
||||
],
|
||||
[
|
||||
24,
|
||||
25,
|
||||
26
|
||||
],
|
||||
[
|
||||
27,
|
||||
28
|
||||
],
|
||||
[
|
||||
29,
|
||||
30
|
||||
],
|
||||
[
|
||||
31,
|
||||
32
|
||||
],
|
||||
[
|
||||
33,
|
||||
34
|
||||
],
|
||||
[
|
||||
35,
|
||||
36
|
||||
],
|
||||
[
|
||||
37,
|
||||
38,
|
||||
39
|
||||
],
|
||||
[
|
||||
40,
|
||||
41,
|
||||
42,
|
||||
43,
|
||||
44
|
||||
],
|
||||
[
|
||||
45
|
||||
],
|
||||
[
|
||||
46,
|
||||
47,
|
||||
48,
|
||||
49
|
||||
],
|
||||
[
|
||||
50,
|
||||
51,
|
||||
52
|
||||
],
|
||||
[
|
||||
53
|
||||
],
|
||||
[
|
||||
54,
|
||||
55,
|
||||
56
|
||||
],
|
||||
[
|
||||
57,
|
||||
58
|
||||
],
|
||||
[
|
||||
59,
|
||||
60,
|
||||
61
|
||||
],
|
||||
[
|
||||
62,
|
||||
63,
|
||||
64
|
||||
],
|
||||
[
|
||||
65,
|
||||
66,
|
||||
67,
|
||||
68
|
||||
],
|
||||
[
|
||||
69,
|
||||
70,
|
||||
71
|
||||
],
|
||||
[
|
||||
72,
|
||||
73,
|
||||
74
|
||||
],
|
||||
[
|
||||
75,
|
||||
76,
|
||||
77
|
||||
],
|
||||
[
|
||||
78,
|
||||
79
|
||||
],
|
||||
[
|
||||
80,
|
||||
81,
|
||||
82
|
||||
],
|
||||
[
|
||||
83,
|
||||
84,
|
||||
85
|
||||
],
|
||||
[
|
||||
86,
|
||||
87
|
||||
],
|
||||
[
|
||||
88,
|
||||
89,
|
||||
90,
|
||||
91
|
||||
],
|
||||
[
|
||||
92,
|
||||
93,
|
||||
94,
|
||||
95
|
||||
],
|
||||
[
|
||||
96,
|
||||
97,
|
||||
98
|
||||
],
|
||||
[
|
||||
99,
|
||||
100
|
||||
],
|
||||
[
|
||||
101,
|
||||
102
|
||||
],
|
||||
[
|
||||
103
|
||||
],
|
||||
[
|
||||
104
|
||||
],
|
||||
[
|
||||
105,
|
||||
106,
|
||||
107
|
||||
],
|
||||
[
|
||||
108,
|
||||
109
|
||||
],
|
||||
[
|
||||
110,
|
||||
111
|
||||
],
|
||||
[
|
||||
112
|
||||
],
|
||||
[
|
||||
113,
|
||||
114,
|
||||
115
|
||||
],
|
||||
[
|
||||
116,
|
||||
117,
|
||||
118,
|
||||
119
|
||||
],
|
||||
[
|
||||
120,
|
||||
121
|
||||
],
|
||||
[
|
||||
122
|
||||
],
|
||||
[
|
||||
123
|
||||
],
|
||||
[
|
||||
124
|
||||
],
|
||||
[
|
||||
125
|
||||
],
|
||||
[
|
||||
126
|
||||
],
|
||||
[
|
||||
127,
|
||||
128,
|
||||
129
|
||||
]
|
||||
],
|
||||
"cd": [
|
||||
"1",
|
||||
"2",
|
||||
|
@ -98,13 +98,13 @@ function setHeight() {
|
||||
tabs.style.height = (window.innerHeight - 13) + 'px';
|
||||
|
||||
ref = document.querySelector('.ref');
|
||||
ref.style.height = (window.innerHeight - 50) + 'px';
|
||||
ref.style.height = (window.innerHeight - 60) + 'px';
|
||||
|
||||
noteList = document.querySelector('#note-list');
|
||||
noteList.style.height = (window.innerHeight - 50) + 'px';
|
||||
noteList.style.height = (window.innerHeight - 60) + 'px';
|
||||
|
||||
notes = document.querySelector('.notes');
|
||||
notes.style.height = (window.innerHeight - 50) + 'px';
|
||||
notes.style.height = (window.innerHeight - 60) + 'px';
|
||||
|
||||
notePreview = document.querySelector('#notePreview');
|
||||
notePreview.style.height = (window.innerHeight - 50) + 'px';
|
||||
@ -437,7 +437,6 @@ function saveSpeaker(event) {
|
||||
|
||||
/**
|
||||
* A description of the entire function.
|
||||
*
|
||||
*/
|
||||
function newSeries() {
|
||||
if (document.querySelector('#series').value == 'new') {
|
||||
@ -739,6 +738,27 @@ function retrieveBooks() {
|
||||
newBook.text = BOOKS.cd[x];
|
||||
bookList.appendChild(newBook);
|
||||
}
|
||||
} else if (selectedType == 'hc') {
|
||||
var none = document.createElement("option");
|
||||
none.value = '';
|
||||
none.text = '-- Select --';
|
||||
bookList.appendChild(none);
|
||||
for (var x in BOOKS[selectedType]) {
|
||||
var newBook = document.createElement("optgroup");
|
||||
newBook.label = "Lord's Day " + (parseInt(x) + 1)
|
||||
var ld = document.createElement("option");
|
||||
ld.value = parseInt(x) + 1;
|
||||
ld.text = "LD " + (parseInt(x) + 1) + " All";
|
||||
newBook.appendChild(ld);
|
||||
|
||||
for (var y in BOOKS[selectedType][x]) {
|
||||
var question = document.createElement("option");
|
||||
question.value = y;
|
||||
question.text = "HC" + BOOKS[selectedType][x][y];
|
||||
newBook.appendChild(question);
|
||||
}
|
||||
bookList.appendChild(newBook);
|
||||
}
|
||||
} else if (selectedType == 'note') {
|
||||
var none = document.createElement("option");
|
||||
none.value = '';
|
||||
|
2
public/js/script.min.js
vendored
2
public/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
@ -106,6 +106,7 @@ menu,
|
||||
nav {
|
||||
display: block;
|
||||
width: 250px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -1891,10 +1892,11 @@ header p {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
header.major> :last-child {
|
||||
header.major {
|
||||
/*> :last-child {*/
|
||||
border-bottom: solid 3px #f56a6a;
|
||||
display: inline-block;
|
||||
margin: 0 0 2em 0;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0 0.75em 0.5em 0;
|
||||
}
|
||||
|
||||
@ -1921,6 +1923,7 @@ input[type="email"],
|
||||
input[type="tel"],
|
||||
input[type="search"],
|
||||
input[type="url"],
|
||||
input[type="number"],
|
||||
select,
|
||||
textarea {
|
||||
-moz-appearance: none;
|
||||
@ -1967,7 +1970,7 @@ select {
|
||||
background-size: 1.25em;
|
||||
background-repeat: no-repeat;
|
||||
background-position: calc(100% - 1em) center;
|
||||
height: 2.75em;
|
||||
height: 2em;
|
||||
padding-right: 2.75em;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
@ -1992,8 +1995,9 @@ input[type="tel"],
|
||||
input[type="search"],
|
||||
input[type="url"],
|
||||
input[type="date"],
|
||||
input[type="number"],
|
||||
select {
|
||||
height: 2.75em;
|
||||
height: 1.5em;
|
||||
}
|
||||
|
||||
textarea {
|
||||
@ -2677,8 +2681,7 @@ button:disabled,
|
||||
/* Mini Posts */
|
||||
.mini-posts article {
|
||||
border-top: solid 1px rgba(210, 215, 217, 0.75);
|
||||
margin-top: 2em;
|
||||
padding-top: 2em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.mini-posts article .image {
|
||||
@ -2693,7 +2696,7 @@ button:disabled,
|
||||
|
||||
.mini-posts article:first-child {
|
||||
border-top: 0;
|
||||
margin-top: 0;
|
||||
margin-top: 1em;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
@ -3197,7 +3200,7 @@ button:disabled,
|
||||
#sidebar>.inner>* {
|
||||
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
|
||||
margin: 0 0 3.5em 0;
|
||||
padding: 0 0 3.5em 0;
|
||||
/*padding: 0 0 3.5em 0;*/
|
||||
}
|
||||
|
||||
#sidebar>.inner>*> :last-child {
|
||||
@ -3281,14 +3284,14 @@ button:disabled,
|
||||
}
|
||||
|
||||
#sidebar>.inner>.alt {
|
||||
margin: -1.66667em 0 3.33333em -1.66667em;
|
||||
margin: 0;
|
||||
padding: 1.66667em;
|
||||
width: calc(100% + 3.33333em);
|
||||
}
|
||||
|
||||
#sidebar .toggle {
|
||||
height: 4.5em;
|
||||
left: 24em;
|
||||
left: 23em;
|
||||
line-height: 4.5em;
|
||||
text-indent: 5em;
|
||||
width: 5em;
|
||||
@ -3408,7 +3411,18 @@ button:disabled,
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1680px) {
|
||||
#header {}
|
||||
#header .logo {
|
||||
font-size: 1.25em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#header .icons {
|
||||
height: 5em;
|
||||
line-height: 5em;
|
||||
position: absolute;
|
||||
right: -0.5em;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 736px) {
|
||||
|
@ -1,106 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\NoteSharesRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: NoteSharesRepository::class)]
|
||||
class NoteShares
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column]
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\ManyToOne(inversedBy: 'noteShares')]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?User $owner = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?User $share = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?Note $note = null;
|
||||
|
||||
/**
|
||||
* Retrieves the ID of the NoteShares entity.
|
||||
*
|
||||
* @return int|null The ID of the NoteShares entity, or null if not set.
|
||||
*/
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the owner of the object.
|
||||
*
|
||||
* @return User|null The owner of the object, or null if not set.
|
||||
*/
|
||||
public function getOwner(): ?User
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* A description of the entire PHP function.
|
||||
*
|
||||
* @param User|null $owner description
|
||||
* @return static
|
||||
*/
|
||||
public function setOwner(?User $owner): static
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the share for the current instance.
|
||||
*
|
||||
* @return User|null The user who shares this instance.
|
||||
*/
|
||||
public function getShare(): ?User
|
||||
{
|
||||
return $this->share;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the share for the current instance.
|
||||
*
|
||||
* @param User|null $share The user to set as the share.
|
||||
* @return static The current instance.
|
||||
*/
|
||||
public function setShare(?User $share): static
|
||||
{
|
||||
$this->share = $share;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the associated Note object.
|
||||
*
|
||||
* @return Note|null The associated Note object, or null if not found.
|
||||
*/
|
||||
public function getNote(): ?Note
|
||||
{
|
||||
return $this->note;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the note for this NoteShares entity.
|
||||
*
|
||||
* @param Note|null $note The note to set
|
||||
* @return static
|
||||
*/
|
||||
public function setNote(?Note $note): static
|
||||
{
|
||||
$this->note = $note;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\NoteShares;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<NoteShares>
|
||||
*/
|
||||
class NoteSharesRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, NoteShares::class);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @return NoteShares[] Returns an array of NoteShares objects
|
||||
// */
|
||||
// public function findByExampleField($value): array
|
||||
// {
|
||||
// return $this->createQueryBuilder('n')
|
||||
// ->andWhere('n.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->orderBy('n.id', 'ASC')
|
||||
// ->setMaxResults(10)
|
||||
// ->getQuery()
|
||||
// ->getResult()
|
||||
// ;
|
||||
// }
|
||||
|
||||
// public function findOneBySomeField($value): ?NoteShares
|
||||
// {
|
||||
// return $this->createQueryBuilder('n')
|
||||
// ->andWhere('n.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->getQuery()
|
||||
// ->getOneOrNullResult()
|
||||
// ;
|
||||
// }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user