Skip to content

Commit

Permalink
Public Editor Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincharles committed Apr 11, 2023
1 parent 010c561 commit 3b9deb6
Show file tree
Hide file tree
Showing 230 changed files with 279 additions and 259 deletions.
27 changes: 18 additions & 9 deletions dist/api/getPortfolioActivityData.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,34 @@
// WHERE doenetId='$doenetId'
// AND courseId = (SELECT courseId FROM course WHERE portfolioCourseForUserId = '$userId')
// ";
$sql = "
SELECT imagePath,
label,
userCanViewSource,
isPublic
FROM course_content
WHERE doenetId='$doenetId'
";
// $sql = "
// SELECT imagePath,
// label,
// userCanViewSource,
// isPublic
// FROM course_content
// WHERE doenetId='$doenetId'
// AND courseId = (SELECT courseId FROM course WHERE portfolioCourseForUserId = '$userId')
// ";
$sql = "
SELECT cc.imagePath,
cc.label,
cc.userCanViewSource,
cc.isPublic,
c.portfolioCourseForUserId
FROM course_content AS cc
LEFT JOIN course AS c
ON c.courseId = cc.courseId
WHERE doenetId='$doenetId'
";

$result = $conn->query($sql);

if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
$isPortfolioCourse = '0';
if ($row['portfolioCourseForUserId'] != ""){
$isPortfolioCourse = '1';
}
$activityData = [
'doenetId' => $doenetId,
'imagePath' => $row['imagePath'],
Expand All @@ -119,6 +126,8 @@
'isNew' => false,
'pageDoenetId' => $pageDoenetId,
'courseId' => $courseId,
'isPortfolioCourse' => $isPortfolioCourse,

];
} else {
$success = false;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as o,F as h,a as u,s as d}from"./index-99a56692.js";const c=d.button`
import{j as o,F as h,a as u,s as d}from"./index-7074710c.js";const c=d.button`
margin: ${e=>e.theme.margin};
height: 24px;
width: ${e=>e.width};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{s as r,av as l,j as a,F as f,a as m,aw as p}from"./index-99a56692.js";const h=r.div`
import{s as r,av as l,j as a,F as f,a as m,aw as p}from"./index-7074710c.js";const h=r.div`
/* margin-left: 3px; */
display: ${e=>e.vertical?"static":"flex"};
overflow: auto;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/assets/AssignmentBreadCrumb-1296ecc9.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/assets/AssignmentBreadCrumb-321ce7e2.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/assets/AssignmentSettingsMenu-1ac5f65e.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/assets/AssignmentSettingsMenu-7c135fe6.js

This file was deleted.

Loading

0 comments on commit 3b9deb6

Please sign in to comment.