Skip to content

Commit

Permalink
Backport view fixes (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam authored Aug 2, 2024
1 parent a4839b8 commit d6c773e
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 32 deletions.
6 changes: 3 additions & 3 deletions reactExamples/resources/views/demoWebpart.view.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<view xmlns="http://labkey.org/data/xml/view" frame="none" title="To-Do List Webpart">
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<dependency path="gen/demoWebpart"/>
</dependencies>
Expand Down
9 changes: 4 additions & 5 deletions reactExamples/src/client/entryPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,27 @@ module.exports = {
apps: [{
name: 'helloWorld',
title: 'Hello World Page',
permission: 'read',
permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'],
path: './src/client/HelloWorldPage'
},{
name: 'todoList',
title: 'To-Do List Page',
permission: 'insert',
permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'],
path: './src/client/ToDoListPage'
},{
name: 'demoWebpart',
title: 'To-Do List Webpart',
permission: 'read',
path: './src/client/ToDoListPage/webpart',
generateLib: true // used by views/demoWebpart.html
},{
name: 'queryModel',
title: 'QueryModel Example Page',
permission: 'read',
permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'],
path: './src/client/QueryModelPage'
},{
name: 'fileAttachmentForm',
title: 'File Attachment Example Page',
permission: 'insert',
permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'],
path: './src/client/FileAttachmentPage'
}]
};
6 changes: 3 additions & 3 deletions sourdough/resources/views/dailylog.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Daily Log"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<!-- local imports -->
<dependency path="dailylog/script.js"/>
Expand Down
6 changes: 3 additions & 3 deletions sourdough/resources/views/dailylogSide.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Documentation: Views and Webparts"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
</dependencies>
</view>
6 changes: 3 additions & 3 deletions sourdough/resources/views/dashboard.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Dashboard"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<dependency path="dashboard/script.js"/>
<dependency path="dashboard/styles.css"/>
Expand Down
6 changes: 3 additions & 3 deletions sourdough/resources/views/dashboardSide.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Documentation: Queries and Reports"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
</dependencies>
</view>
6 changes: 3 additions & 3 deletions sourdough/resources/views/overview.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Sourdough Overview"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<dependency path="overview/script.js"/>
<dependency path="overview/styles.css"/>
Expand Down
6 changes: 3 additions & 3 deletions sourdough/resources/views/overviewSide.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Further Reading"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
</dependencies>
</view>
6 changes: 3 additions & 3 deletions sourdough/resources/views/styling.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
template="body"
frame="none"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<dependency path="styling/script.js"/>
<dependency path="styling/styles.css"/>
Expand Down
6 changes: 3 additions & 3 deletions sourdough/resources/views/stylingSide.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title="Documentation: Styling and Appearance"
template="body"
>
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
</dependencies>
</view>

0 comments on commit d6c773e

Please sign in to comment.