Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
6e71019
added theme props to add class to login, input and link on login prov…
jairo-campos-JD Jun 14, 2019
5159e86
Merge pull request #99 from inrupt/feature/add-theme-login-component
james-martin-jd Jun 14, 2019
4b2ca33
Merge pull request #101 from inrupt/release/0.4.3
james-martin-jd Jun 14, 2019
d9add41
Merge pull request #102 from inrupt/release/0.4.3
james-martin-jd Jun 18, 2019
4869f2a
Merge pull request #104 from inrupt/release/0.4.3
james-martin-jd Jun 18, 2019
23812ea
Reduce the build size
jairo-campos-JD Jun 20, 2019
adc56d9
brotli removed it
jairo-campos-JD Jun 20, 2019
c227255
Added notification class
jairo-campos-JD Jun 25, 2019
775650d
added hook and alias
jairo-campos-JD Jun 26, 2019
3dc4bfd
added contrcutor to notification
jairo-campos-JD Jun 26, 2019
9c2349a
fetch schema on object init
jairo-campos-JD Jun 26, 2019
73c3980
adding notification list
pablo-rodriguez-jd Jun 26, 2019
7092523
Merge branch 'feature/notification' of https://github.com/inrupt/soli…
pablo-rodriguez-jd Jun 26, 2019
661dc86
create
jairo-campos-JD Jun 26, 2019
84caf50
notifications in hook, small class changes
pablo-rodriguez-jd Jun 26, 2019
6434dd0
fix create new notification
jairo-campos-JD Jun 26, 2019
887ee6d
added functionality to send other user a notification
jairo-campos-JD Jun 26, 2019
4217f97
added summary
jairo-campos-JD Jun 26, 2019
fcf3d9a
added read false by default on create notification
jairo-campos-JD Jun 26, 2019
27d203e
added delete notification option on hook
jairo-campos-JD Jun 26, 2019
a31c2de
added markasRead on hook
jairo-campos-JD Jun 26, 2019
161e99f
fetching notifications
pablo-rodriguez-jd Jun 26, 2019
073d80a
Adding inbox to card
pablo-rodriguez-jd Jun 27, 2019
dc3c39e
fixed dummy file on contains
jairo-campos-JD Jun 27, 2019
22b5dbb
Checking if `ldp:inbox` includes inboxRoot
pablo-rodriguez-jd Jun 27, 2019
9d21e54
Merge branch 'feature/notification' of https://github.com/inrupt/soli…
pablo-rodriguez-jd Jun 27, 2019
591eb8a
added inbox delete
jairo-campos-JD Jun 27, 2019
3e3937d
added try catch on create notification
jairo-campos-JD Jun 27, 2019
509790f
fixed eslint issues
jairo-campos-JD Jun 27, 2019
50fa6e2
adding classes to webpack prod config
pablo-rodriguez-jd Jun 27, 2019
ef27662
added json into lib to avoid build issues
jairo-campos-JD Jun 27, 2019
b9daed7
fixed double / on create notification
jairo-campos-JD Jun 27, 2019
59f8b53
solidLDFlex typo
pablo-rodriguez-jd Jun 27, 2019
f36ef23
fixed create inbox
jairo-campos-JD Jun 27, 2019
8c5b95a
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jun 27, 2019
8f809f9
fixed create notification
jairo-campos-JD Jun 28, 2019
de3b0fe
Notification class as a Singleton
pablo-rodriguez-jd Jul 1, 2019
39ea161
Removing console logs
pablo-rodriguez-jd Jul 1, 2019
868a080
Small changes to Notification constructor
pablo-rodriguez-jd Jul 1, 2019
2340423
Changing instance return order in Notifications
pablo-rodriguez-jd Jul 1, 2019
ccf7942
added to on create notification
jairo-campos-JD Jul 1, 2019
dfe57d6
added unread count on notification
jairo-campos-JD Jul 1, 2019
d2e1c60
update component version
jairo-campos-JD Jul 1, 2019
9e174f5
added markasread
jairo-campos-JD Jul 2, 2019
0dc1f4b
accepting namedNodes at creation (notifications)
pablo-rodriguez-jd Jul 2, 2019
89b271d
emove type boolen on notification
jairo-campos-JD Jul 3, 2019
30ce3d4
added sent to notifications
jairo-campos-JD Jul 3, 2019
c3097fb
refactor delete components
jairo-campos-JD Jul 3, 2019
4c567d8
remove multiple calls on notification class
jairo-campos-JD Jul 8, 2019
d33d19c
multiple inbox fetch on notifications
jairo-campos-JD Jul 9, 2019
81b7b4c
fixed create inbox
jairo-campos-JD Jul 9, 2019
9eae5c2
inbox acl file path fixed
pablo-rodriguez-jd Jul 10, 2019
9c18dc3
create settings.ttl file for app
jairo-campos-JD Jul 10, 2019
e117092
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jul 10, 2019
2bd85c6
fixed fecth notifications
jairo-campos-JD Jul 10, 2019
fb29a35
fixed permission on inbox
jairo-campos-JD Jul 10, 2019
500056d
fixed permissions
jairo-campos-JD Jul 10, 2019
eaffe2e
fixed sort notifications
jairo-campos-JD Jul 10, 2019
aa1bb11
fixed create inbox
jairo-campos-JD Jul 10, 2019
0e8024b
Notification sender basic info
pablo-rodriguez-jd Jul 10, 2019
cfa28c0
Merge pull request #106 from inrupt/feature/reduce-build-size
james-martin-jd Jul 11, 2019
58e1228
added discovery on hook
jairo-campos-JD Jul 11, 2019
bec555a
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jul 11, 2019
566a4e1
added comment on notification hook and notification instance refactor
jairo-campos-JD Jul 12, 2019
9004bc8
added comments on notification class
jairo-campos-JD Jul 12, 2019
0dd993a
add comments on notification class
jairo-campos-JD Jul 12, 2019
f056c98
added test on hooknotification
jairo-campos-JD Jul 12, 2019
caacc8d
sender to actor and sent to timedate
pablo-rodriguez-jd Jul 15, 2019
3edc6ea
Merge branch 'feature/notification' of https://github.com/inrupt/soli…
pablo-rodriguez-jd Jul 15, 2019
a66a749
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jul 15, 2019
2935551
Basic Info validated with WebId
pablo-rodriguez-jd Jul 15, 2019
de56d18
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jul 15, 2019
a545cd9
added test on class notification and fix issue on create notification…
jairo-campos-JD Jul 15, 2019
5d4cccf
added append on create inbox folder
jairo-campos-JD Jul 15, 2019
76f06c7
added tests 1
jairo-campos-JD Jul 16, 2019
0b90332
added test on notification class 2
jairo-campos-JD Jul 16, 2019
6ddeb07
fixed notification owner permissions
jairo-campos-JD Jul 16, 2019
3df315e
added test on class notification 2
jairo-campos-JD Jul 16, 2019
a170170
fixed check if exist document on notification
jairo-campos-JD Jul 16, 2019
979b443
fixed mocks code to status
jairo-campos-JD Jul 16, 2019
bd8e368
update notification read from as to solid
jairo-campos-JD Jul 16, 2019
3d22b32
fixed read prefix on notifications
jairo-campos-JD Jul 16, 2019
91501b9
added functionality to add custom notification name files
jairo-campos-JD Jul 17, 2019
c521725
added notification comments
jairo-campos-JD Jul 17, 2019
4a6cd71
typos fixed
pablo-rodriguez-jd Jul 17, 2019
ff2d936
Merge branch 'feature/notification' of https://github.com/inrupt/soli…
pablo-rodriguez-jd Jul 17, 2019
9e2097d
removed error when inbox is already on pod
jairo-campos-JD Jul 17, 2019
7bc7708
Merge branch 'feature/notification' of github.com:inrupt/solid-react-…
jairo-campos-JD Jul 17, 2019
95644c6
Access Control List Class
pablo-rodriguez-jd Jul 17, 2019
584c8a4
delete entire acl
pablo-rodriguez-jd Jul 18, 2019
a8f3426
delete instead of remove
pablo-rodriguez-jd Jul 18, 2019
5add389
Null permissions will not create acl file
pablo-rodriguez-jd Jul 18, 2019
7961ba7
added handle errors on notifications
jairo-campos-JD Jul 18, 2019
e525f79
create settings using n3 instead of ldflex becuase cache fail
jairo-campos-JD Jul 19, 2019
d4afa38
updated package version
jairo-campos-JD Jul 19, 2019
694a7dc
Get Subjects
pablo-rodriguez-jd Jul 19, 2019
6a8fa94
Merge branch 'feature/notification' of https://github.com/inrupt/soli…
pablo-rodriguez-jd Jul 19, 2019
5298cef
Create mode with LDFLEX (not working)
pablo-rodriguez-jd Jul 19, 2019
0ba8083
Assign and remove permissions, comments
pablo-rodriguez-jd Jul 22, 2019
34ccfbb
ACL Unit tests
pablo-rodriguez-jd Jul 23, 2019
f345ed9
Merge branch 'develop' into feature/notification
pablo-rodriguez-jd Jul 23, 2019
e0de16a
ACL demo
pablo-rodriguez-jd Jul 23, 2019
4e32ef1
feedback round 1
jairo-campos-JD Jul 23, 2019
1e417af
fixed typo on ACL class
jairo-campos-JD Jul 23, 2019
8b0297e
return if something no match on getParentACL
jairo-campos-JD Jul 23, 2019
2b96b18
updated comment on turtle function
jairo-campos-JD Jul 23, 2019
882e359
feedback round 2
jairo-campos-JD Jul 23, 2019
3978661
feedback round 3
jairo-campos-JD Jul 23, 2019
c6644e4
Merge pull request #107 from inrupt/feature/notification
james-martin-jd Jul 23, 2019
d9a9e22
Updating version number
james-martin-jd Jul 23, 2019
8597887
Integration of ACL library
pablo-rodriguez-jd Jul 24, 2019
e629f6c
fixed export ACL
jairo-campos-JD Jul 24, 2019
52cd6a8
Merge pull request #108 from inrupt/feature/notifications-acl-integra…
james-martin-jd Jul 24, 2019
3f088a6
add app permission functionality
jairo-campos-JD Jul 25, 2019
f91f0fb
Merge pull request #109 from inrupt/feature/check-app-permissions
james-martin-jd Jul 26, 2019
5f38c0c
Fixed notification permissions when inbox is created
jairo-campos-JD Jul 29, 2019
61fc46e
Merge pull request #112 from inrupt/fix/permissions-notifications
james-martin-jd Jul 31, 2019
5be5f78
Updating changelog
james-martin-jd Aug 14, 2019
c0b3849
Updating readme and version
james-martin-jd Aug 14, 2019
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Solid React Components Library

## 0.4.4 ( August 14, 2019 )

### Added

- Access Control Library was added, which helps developers to manage file and folder permissions in a Solid Pod
- App Permissions Library to help manage application specific permissions
- New Notification Library:
- Global Inbox Discovery helper
- Inbox Creation tools - add a new inbox and delete an existing inbox
- Send Notification to and delete Notifications from a particular inbox

## 0.4.3 ( June 18, 2019 )

### Added
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,34 @@ LanguageTheme object:
##### Shapes

A set of example shapes can be found [here](https://shexshapes.inrupt.net/public/), which show various ShEx shapes.

## Class List

Included in this library are a series of helper classes to make certain functionality easier for Solid developers. Each of these classes covers a specific functional area.

### Access Control List

The ACL helper class provides an interface for managing file and folder permissions for a Solid pod. This class contains functions to add or remove a permission from a resource, as well as functions to create a new Turtle file with specific permissions already applied.

Many of the functions in this class are expecting a custom Permissions object as a parameter. The Permissions object looks like this:

```javascript
type Permissions = {
agents: null | String | Array,
modes: Array<String>
};
```

### Application Permissions

The Application Permissions helper class is designed to help developers check application permissions. Some applications will need to have specific permissions to function properly.

For example, if an application wants to grant permissions to other users to edit a file, it will need the Control permission. The helper functions in this class will allow developers to check if their app has the proper permissions before attempting a call, and also allow the application to handle cases where additional permissions are needed.

### Notifications

The Notifications helper class is a large class, containing many functions that help with Inbox and Notification management.

Included in this helper class are functions that will allow a developer to discover global inboxes, create new inboxes, and delete old inboxes. It will also allow a developer an interface to send a notification to a specific inbox, or delete existing notifications for a user.

These notifications will be added to the inbox, using a common data structure. It is up to the application itself to decide what to do with these notifications.
4 changes: 3 additions & 1 deletion config/webpack.config.demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ module.exports = {
'@entities': path.resolve(__dirname, '../src/lib/entities'),
'@utils': path.resolve(__dirname, '../src/lib/utils'),
'@hooks': path.resolve(__dirname, '../src/lib/hooks'),
'@context': path.resolve(__dirname, '../src/lib/context')
'@context': path.resolve(__dirname, '../src/lib/context'),
'@classes': path.resolve(__dirname, '../src/lib/classes'),
'@constants': path.resolve(__dirname, '../src/lib/constants')
},
plugins: [
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
Expand Down
4 changes: 3 additions & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ module.exports = {
'@entities': path.resolve(paths.appLibSrc, './entities'),
'@utils': path.resolve(paths.appLibSrc, './utils'),
'@hooks': path.resolve(paths.appLibSrc, './hooks'),
'@context': path.resolve(paths.appLibSrc, './context')
'@context': path.resolve(paths.appLibSrc, './context'),
'@classes': path.resolve(__dirname, '../src/lib/classes'),
'@constants': path.resolve(__dirname, '../src/lib/constants')
}
}
]
Expand Down
21 changes: 18 additions & 3 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent')
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
const paths = require('./paths');
const getClientEnvironment = require('./env');

// const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');

// Webpack uses `publicPath` to determine where the app is being served from.
Expand Down Expand Up @@ -98,7 +99,7 @@ module.exports = {
bail: true,
// We generate sourcemaps in production. This is slow but gives good results.
// You can exclude the *.map files from the build during deployment.
devtool: shouldUseSourceMap ? 'source-map' : false,
// devtool: shouldUseSourceMap ? 'source-map' : false,
// In production, we only want to load the app code.
entry: [paths.appLibIndexJs], // CRL: update entry
output: {
Expand All @@ -116,7 +117,19 @@ module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
minify: (file, sourceMap) => {
const uglifyJsOptions = {};

if (sourceMap) {
uglifyJsOptions.sourceMap = {
content: sourceMap
};
}

return require('uglify-js').minify(file, uglifyJsOptions);
},
terserOptions: {
warnings: false,
parse: {
// we want terser to parse ecma 8 code. However, we don't want it
// to apply any minfication steps that turns valid ecma 5 code
Expand Down Expand Up @@ -155,7 +168,7 @@ module.exports = {
parallel: true,
// Enable file caching
cache: true,
sourceMap: shouldUseSourceMap
sourceMap: false
}),
new OptimizeCSSAssetsPlugin({
cssProcessorOptions: {
Expand Down Expand Up @@ -209,7 +222,9 @@ module.exports = {
'@entities': path.resolve(__dirname, '../src/lib/entities'),
'@utils': path.resolve(__dirname, '../src/lib/utils'),
'@hooks': path.resolve(__dirname, '../src/lib/hooks'),
'@context': path.resolve(__dirname, '../src/lib/context')
'@context': path.resolve(__dirname, '../src/lib/context'),
'@classes': path.resolve(__dirname, '../src/lib/classes'),
'@constants': path.resolve(__dirname, '../src/lib/constants')
},
plugins: [
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
Expand Down
Loading