@guillotinaweb/react-gmi 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +18 -10
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.22.2
2
+ ------
3
+ - chore: update dependences
4
+
1
5
  0.22.1
2
6
  ------
3
7
  - Fix export
package/README.md CHANGED
@@ -42,32 +42,36 @@ import { useState } from 'react'
42
42
  import '@guillotinaweb/react-gmi/dist/css/style.css'
43
43
 
44
44
  // guillotina url
45
- let url = 'http://localhost:8080/'
46
-
45
+ let url = 'http://localhost:8080'
46
+ const schema = '/'
47
47
  const auth = new Auth(url)
48
- const client = getClient(url, auth)
48
+ const client = getClient(url, schema, auth)
49
49
 
50
50
  function App() {
51
51
  const [isLogged, setLogged] = useState(auth.isLogged)
52
52
 
53
- // You can do whatever you want on login, this includes,
54
- // if you have a router, move it to it's user home folder,
55
- // or the root...
56
53
  const onLogin = () => {
57
54
  setLogged(true)
58
55
  }
59
- const onLogout = () => setLogged(false)
56
+
57
+ const onLogout = () => {
58
+ setLogged(false);
59
+ };
60
60
 
61
61
  auth.onLogout = onLogout
62
62
 
63
63
  return (
64
64
  <ClientProvider client={client}>
65
65
  <Layout auth={auth} onLogout={onLogout}>
66
- {isLogged && <Guillotina auth={auth} url={url} />}
66
+ {isLogged && <Guillotina auth={auth} url={schema} />}
67
67
  {!isLogged && (
68
68
  <div className="columns is-centered">
69
69
  <div className="columns is-half">
70
- <Login onLogin={onLogin} auth={auth} />
70
+ <Login
71
+ onLogin={onLogin}
72
+ auth={auth}
73
+ currentSchema={schema}
74
+ />
71
75
  </div>
72
76
  </div>
73
77
  )}
@@ -76,6 +80,7 @@ function App() {
76
80
  )
77
81
  }
78
82
 
83
+
79
84
  export default App
80
85
  ```
81
86
 
@@ -103,6 +108,7 @@ curl https://raw.githubusercontent.com/guillotinaweb/guillotina_react/master/pub
103
108
 
104
109
  - [Howto Extend Guillotina React form outside?](docs/extend.md)
105
110
  - [Narrative Docs](docs/api.md)
111
+ - [Getting Started - Step by Step](docs/tutorial/tutorial.md)
106
112
 
107
113
  ## Develop
108
114
 
@@ -121,6 +127,8 @@ yarn start
121
127
 
122
128
  ## Sponsors
123
129
 
124
- This project is sponsored by <a href="https://www.vinissimus.com">Vinissimus Wine Shop</a>
130
+ This project is sponsored by <a href="https://www.vinissimus.com">Vinissimus Wine Shop</a> and <a href="https://iskra.cat">Iskra</a>
125
131
 
126
132
  <a href="https://www.vinissimus.com"><img src="https://cdn.vinissimus.com/front/static/images/vinissimus-logo.svg" /></a>
133
+ <br/>
134
+ <a href="https://iskra.cat"><img src="https://storage.googleapis.com/iskra/iskra-logo.png" /></a>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.22.1",
2
+ "version": "0.22.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git@github.com:guillotinaweb/guillotina_react.git"
@@ -33,7 +33,7 @@
33
33
  "@testing-library/user-event": "12.6.0",
34
34
  "husky": "4.3.6",
35
35
  "microbundle": "0.13.0",
36
- "node-sass": "5.0.0",
36
+ "node-sass": "7.0.0",
37
37
  "prettier": "2.2.1",
38
38
  "serialize-javascript": "5.0.1"
39
39
  },