Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fc5dc85
Merge pull request #4 from TSTPrep/main
valentinceaprazaru Mar 5, 2024
50b0ada
Merge pull request #5 from TSTPrep/main
valentinceaprazaru Mar 5, 2024
3bf17d3
Merge pull request #6 from TSTPrep/main
valentinceaprazaru Mar 5, 2024
3e2dc44
Merge pull request #7 from TSTPrep/main
valentinceaprazaru Mar 6, 2024
f7c5264
Merge pull request #8 from TSTPrep/main
valentinceaprazaru Mar 6, 2024
e620909
Merge pull request #9 from TSTPrep/main
valentinceaprazaru Mar 6, 2024
29f7df8
Merge pull request #10 from TSTPrep/main
valentinceaprazaru Mar 7, 2024
388397f
Clear theme elements for WAI1 - Update _writing-evaluation-form.scss
AlexStratov2 Mar 7, 2024
2c61b89
Merge pull request #11 from TSTPrep/main
valentinceaprazaru Mar 7, 2024
18d6dca
Disabling jquery.js for further updates
AlexStratov2 Mar 7, 2024
946b8ad
Adding code for behavior after submission
AlexStratov2 Mar 7, 2024
d2851e4
Update script with technical comments
AlexStratov2 Mar 7, 2024
1a6827f
Added Part 3 - display original essay after submission
AlexStratov2 Mar 7, 2024
69effa6
Attempt to add a script to check when an element appears
AlexStratov2 Mar 7, 2024
6fee2e2
Add a dropdown for sample task selection
AlexStratov2 Mar 7, 2024
9236fcf
1.6 - start using versioning numbers
AlexStratov2 Mar 7, 2024
bf30fd5
v1.0.7 - updated version number scheme + testing an insertion in scre…
AlexStratov2 Mar 7, 2024
ac23779
v1.0.8 - Insert buttons for 3-way view in screen 2
AlexStratov2 Mar 7, 2024
f7529c7
v1.0.7b - fall back to v1.0.7 after v1.0.8 failed
AlexStratov2 Mar 7, 2024
c69cee4
v1.0.6b - fall back to 1.0.6 after 1.0.7 failed
AlexStratov2 Mar 7, 2024
f0ed4a1
Update _writing-evaluation-form.scss
AlexStratov2 Mar 12, 2024
e3d8093
Update _writing-evaluation-form.scss
AlexStratov2 Mar 12, 2024
d1663dc
Update _writing-evaluation-form.scss
AlexStratov2 Mar 12, 2024
4891507
Update _writing-evaluation-form.scss
AlexStratov2 Mar 12, 2024
c5b65dd
Own page for WAIs
valentinceaprazaru Mar 25, 2024
c2fd309
formatting
razvan-dumi Mar 26, 2024
d6bcb8a
allow image optimizations
razvan-dumi Mar 26, 2024
709a4b5
typescript
razvan-dumi Mar 26, 2024
6e1a8b1
fix warning
razvan-dumi Mar 26, 2024
c60316b
api
razvan-dumi Mar 26, 2024
f981456
disable ssr on dynamic pages
razvan-dumi Mar 28, 2024
38c8266
login
razvan-dumi Mar 28, 2024
8d25898
evaluation
razvan-dumi Mar 29, 2024
3b76529
work on evaluation form
razvan-dumi Apr 1, 2024
e782dbd
evaluation feedback
razvan-dumi Apr 4, 2024
2d6036c
fixes
razvan-dumi Apr 8, 2024
485f9ef
wai 2
razvan-dumi Apr 8, 2024
72459a5
work
razvan-dumi Apr 10, 2024
3af2dbc
json download/upload
razvan-dumi Apr 10, 2024
873c2a2
update to get feedback for : connection_id
valentinceaprazaru Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = crlf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"useTabs": false,
"printWidth": 90,
"singleQuote": true,
"jsxSingleQuote": true,
"bracketSpacing": true,
"bracketSameLine": false,
"quoteProps": "as-needed",
"arrowParens": "avoid",
"requirePragma": false,
"insertPragma": false,
"trailingComma": "es5",
"semi": true,
"braceStyle": "1tbs",
"editorconfig": true
}
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const nextConfig = {
* Added for GitHub Pages deployment.
*/
basePath: "/react-learndash",
output: "export",
...(!process.env.DEPLOY_TO_GITHUB_PAGES ? {output: 'export'} : {})
}

module.exports = nextConfig
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 next dev",
"dev2": "set NODE_TLS_REJECT_UNAUTHORIZED=0 && next dev",
"build": "next build",
"start": "next start",
"export": "next build && next export",
Expand Down
266 changes: 187 additions & 79 deletions public/assets/scss/components/_writing-evaluation-form.scss
Original file line number Diff line number Diff line change
@@ -1,121 +1,229 @@

.content-box {
background: #eaeaea;
padding: 100px 100px;
margin: -5px 0px 25px -15px;
background: #eaeaea;
padding: 100px 100px;
margin: -5px 0px 25px -15px;
}

.incorrect,
.delete {
text-decoration: line-through;
border-bottom: 1px solid #c38181;
color: #d5bbbb !important;
padding: 0 3px;
}

.incorrect, .delete {
text-decoration: line-through;
border-bottom: 2px solid #c38181;
color: #d5bbbb !important;
padding: 0 3px;
.garbled {
// text-decoration: underline;
// text-decoration-style: wavy !important;
// text-decoration-thickness: 1px;
text-decoration-line: grammar-error;
color: #d5baba;
}

.corrected {
border-bottom: 2px solid #9ec59e;
padding-left: 3px;
font-weight: 600;
border-bottom: 1px solid #9ec59e;
padding-left: 3px;
font-weight: 600;
}

.space {
background: pink;
border: 1px solid pink;
padding-left: 3px;
background: pink;
border: 1px solid pink;
padding-left: 3px;
}

.addition {
color: #ff6700;
background: #ffd7b5;
border: 1px solid #ff6700;
padding: 0 3px;
color: #ff6700;
background: #ffd7b5;
border: 1px solid #ff6700;
padding: 0 3px;
}

.hovertextp {
position: relative;
display: inline-block;

.hovertext {
&:before {
content: "Feedback: " attr(data-hover);
visibility: hidden;
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0; /* Position the tooltip */
position: absolute;
display: block;
z-index: 9999;
top: auto; /* Reset the top property */
overflow: visible;
width: max-content;
max-width: 200px;
}

&:hover:before {
opacity: 1;
visibility: visible;
position: relative;
display: inline-block;

.hovertext {
&:before {
content: 'Feedback: ' attr(data-hover);
visibility: hidden;
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0; /* Position the tooltip */
position: absolute;
display: block;
z-index: 9999;
top: auto; /* Reset the top property */
overflow: visible;
width: max-content;
max-width: 200px;
}

&:hover:before {
opacity: 1;
visibility: visible;
}
}
}
}


.nopaque {
opacity: 0.2;
opacity: 0.2;
}

.opaque {
opacity: 1.0;
background: #fff;
opacity: 1;
background: #fff;
}


.waf-menu.waf-menu {
li {
padding-top: 10px;

&:after {
content: '';
}

li {
padding-top: 10px;
&:hover {
background-color: #f0f0f0;
}

&:after {
content: '';
li {
padding-top: 0;
margin-top: 0;
}
}

&:hover {
background-color: #f0f0f0;
a {
display: block;
cursor: pointer;
padding: 5px;
}

li {
padding-top: 0;
margin-top: 0;
ul {
display: none;
list-style-type: none;
padding: 0 0 15px;
margin: 0;

ul {
padding: 0 0 5px;
}

&.active {
display: block;
}
}
}
}

a {
display: block;
cursor: pointer;
padding: 5px;
}
.waf-textarea {
textarea {
background: #f5f4f4;
}
}

ul {
display: none;
list-style-type: none;
padding: 0 0 15px;
margin: 0;
/*----------- clear theme elements for Writing AI evaluation -------------*/

ul {
padding: 0 0 5px;
.course-details-content {
max-width: 900px;
margin: 0 auto;
border: 1px solid #eaeaea;
border-radius: 5px;
padding: 0 50px 50px 50px;
box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.05);
}

.waf-textarea textarea {
border: 1px solid #eaeaea !important;
border-radius: 5px;
height: 300px;
background-color: #fff;
}

.edu-btn {
margin-top: 30px;
}

label {
padding-left: 25px;
}

/* ----------------------------- */

.writing-evaluation-form {
textarea[disabled] {
background-color: rgb(240, 240, 240);
cursor: not-allowed;
}

&.active {
display: block;
button[disabled] {
filter: saturate(30%);
pointer-events: none;
}
}
}

.incorrect,
.deletion {
text-decoration: line-through;
border-bottom: 2px solid #c38181;
color: #d5bbbb !important;
padding: 0 3px 0 0;
display: inline;
}
.correct {
border-bottom: 2px solid #9ec59e;
padding: 0 3px 0 0;
font-weight: 600;
display: inline;
}
.addition {
color: #ff6700;
background: #ffd7b5;
border: 1px solid #ff6700;
padding: 0 3px 0 0;
display: inline;
}
.nochange {
display: inline;
padding: 0 3px 0 0;
}

.waf-textarea {
textarea {
background: #f5f4f4;
}
.feedback {
.tab-wrapper {
display: flex;
margin: 0;
}

.tabs {
flex-grow: 0;
min-width: 210px;
width: 330px;
border-right: 1px solid #ddd;
}

.tab-link {
display: block;
padding: 10px;
background-color: #f0f0f0;
border: none;
text-align: left;
cursor: pointer;
width: 100%;
border-bottom: 1px solid #ddd;
}

.tab-link.active,
.tab-link:hover {
background-color: #ccc;
}

.tab-content {
flex-grow: 1;
padding: 20px;
}

.tab:not(.active) {
display: none;
}
}
}
2 changes: 1 addition & 1 deletion public/assets/scss/template/_course.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@
height: 100%;
width: 100%;
background: rgb(255,255,255);
background: linear-gradient(top, rgba(51, 51, 51, 0.01) 25%, rgba(51, 51, 51, 0.7) 100%);
background: linear-gradient(to bottom, rgba(51, 51, 51, 0.01) 25%, rgba(51, 51, 51, 0.7) 100%);
position: absolute;
top: 0;
bottom: 0;
Expand Down
Loading