cozy-bar 1.17.1
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.
- package/.eslintrc.json +7 -0
- package/.github/auto-merge.yml +7 -0
- package/.nvmrc +1 -0
- package/.transifexrc.tpl +4 -0
- package/.travis.yml +28 -0
- package/.tx/config +8 -0
- package/CHANGELOG.md +493 -0
- package/CODEOWNERS +2 -0
- package/CONTRIBUTING.md +135 -0
- package/LICENSE +21 -0
- package/README.md +172 -0
- package/babel.config.js +3 -0
- package/config/aliases/globalReact.js +1 -0
- package/config/aliases/globalReactDOM.js +1 -0
- package/config/webpack.config.analyzer.js +10 -0
- package/config/webpack.config.base.js +61 -0
- package/config/webpack.config.dev.js +16 -0
- package/config/webpack.config.extract.js +84 -0
- package/config/webpack.config.inline-styles.js +82 -0
- package/config/webpack.config.jsx.js +14 -0
- package/config/webpack.config.prod.js +18 -0
- package/config/webpack.js +31 -0
- package/config/webpack.vars.js +11 -0
- package/dist/cozy-bar.css +9445 -0
- package/dist/cozy-bar.css.map +1 -0
- package/dist/cozy-bar.js +122668 -0
- package/dist/cozy-bar.js.map +1 -0
- package/dist/cozy-bar.min.css +9 -0
- package/dist/cozy-bar.min.css.map +1 -0
- package/dist/cozy-bar.min.js +57 -0
- package/dist/cozy-bar.min.js.map +1 -0
- package/dist/cozy-bar.mobile.js +123719 -0
- package/dist/cozy-bar.mobile.js.map +1 -0
- package/dist/cozy-bar.mobile.min.js +57 -0
- package/dist/cozy-bar.mobile.min.js.map +1 -0
- package/docs/dev.md +20 -0
- package/examples/Procfile +3 -0
- package/examples/icon.png +0 -0
- package/examples/index.html +7 -0
- package/examples/index.jsx +122 -0
- package/examples/logs.js +3 -0
- package/package.json +163 -0
- package/postcss.config.js +23 -0
- package/public/fonts/Lato-Bold.woff2 +0 -0
- package/public/fonts/Lato-Regular.woff2 +0 -0
- package/public/fonts.css +13 -0
- package/public/icon-type-folder-32.png +0 -0
- package/public/index.html +63 -0
- package/renovate.json +5 -0
- package/src/assets/icons/16/icon-claudy.svg +5 -0
- package/src/assets/icons/16/icon-cozy-16.svg +1 -0
- package/src/assets/icons/16/icon-cube-16.svg +6 -0
- package/src/assets/icons/16/icon-logout-16.svg +3 -0
- package/src/assets/icons/16/icon-magnifier-16.svg +6 -0
- package/src/assets/icons/16/icon-people-16.svg +3 -0
- package/src/assets/icons/16/icon-phone-16.svg +3 -0
- package/src/assets/icons/16/icon-question-mark-16.svg +3 -0
- package/src/assets/icons/16/icon-storage-16.svg +3 -0
- package/src/assets/icons/24/icon-arrow-left.svg +3 -0
- package/src/assets/icons/32/icon-claudy.svg +1 -0
- package/src/assets/icons/apps/icon-collect.svg +25 -0
- package/src/assets/icons/apps/icon-drive.svg +17 -0
- package/src/assets/icons/apps/icon-market-soon.svg +25 -0
- package/src/assets/icons/apps/icon-photos.svg +19 -0
- package/src/assets/icons/apps/icon-soon.svg +21 -0
- package/src/assets/icons/apps/icon-store.svg +19 -0
- package/src/assets/icons/claudyActions/icon-bills.svg +6 -0
- package/src/assets/icons/claudyActions/icon-laptop.svg +7 -0
- package/src/assets/icons/claudyActions/icon-phone.svg +8 -0
- package/src/assets/icons/claudyActions/icon-question-mark.svg +6 -0
- package/src/assets/icons/comingsoon/icon-bank.svg +12 -0
- package/src/assets/icons/comingsoon/icon-sante.svg +12 -0
- package/src/assets/icons/comingsoon/icon-store.svg +6 -0
- package/src/assets/icons/icon-cozy.svg +3 -0
- package/src/assets/icons/icon-shield.svg +3 -0
- package/src/assets/icons/spinner.svg +4 -0
- package/src/assets/sprites/icon-apps.svg +1 -0
- package/src/assets/sprites/icon-cozy-home.svg +16 -0
- package/src/components/Apps/AppItem.jsx +117 -0
- package/src/components/Apps/AppItemPlaceholder.jsx +12 -0
- package/src/components/Apps/AppNavButtons.jsx +88 -0
- package/src/components/Apps/AppsContent.jsx +89 -0
- package/src/components/Apps/ButtonCozyHome.jsx +30 -0
- package/src/components/Apps/ButtonCozyHome.spec.jsx +53 -0
- package/src/components/Apps/IconCozyHome.jsx +24 -0
- package/src/components/Apps/index.jsx +81 -0
- package/src/components/Banner.jsx +41 -0
- package/src/components/Bar.jsx +293 -0
- package/src/components/Bar.spec.jsx +133 -0
- package/src/components/Claudy.jsx +81 -0
- package/src/components/Drawer.jsx +227 -0
- package/src/components/Drawer.spec.jsx +98 -0
- package/src/components/SearchBar.jsx +358 -0
- package/src/components/Settings/SettingsContent.jsx +145 -0
- package/src/components/Settings/StorageData.jsx +29 -0
- package/src/components/Settings/helper.js +8 -0
- package/src/components/Settings/index.jsx +218 -0
- package/src/components/SupportModal.jsx +59 -0
- package/src/components/__snapshots__/Bar.spec.jsx.snap +302 -0
- package/src/config/claudyActions.yaml +14 -0
- package/src/config/persistWhitelist.yaml +2 -0
- package/src/dom.js +80 -0
- package/src/index.jsx +235 -0
- package/src/index.spec.jsx +34 -0
- package/src/lib/api/helpers.js +13 -0
- package/src/lib/api/index.jsx +145 -0
- package/src/lib/exceptions.js +89 -0
- package/src/lib/expiringMemoize.js +13 -0
- package/src/lib/icon.js +77 -0
- package/src/lib/importIcons.js +14 -0
- package/src/lib/intents.js +16 -0
- package/src/lib/logger.js +6 -0
- package/src/lib/middlewares/appsI18n.js +57 -0
- package/src/lib/realtime.js +43 -0
- package/src/lib/reducers/apps.js +175 -0
- package/src/lib/reducers/apps.spec.js +59 -0
- package/src/lib/reducers/content.js +50 -0
- package/src/lib/reducers/context.js +83 -0
- package/src/lib/reducers/index.js +73 -0
- package/src/lib/reducers/locale.js +22 -0
- package/src/lib/reducers/settings.js +111 -0
- package/src/lib/reducers/theme.js +48 -0
- package/src/lib/reducers/unserializable.js +26 -0
- package/src/lib/stack-client.js +401 -0
- package/src/lib/stack.js +79 -0
- package/src/lib/store/index.js +54 -0
- package/src/locales/de.json +57 -0
- package/src/locales/en.json +57 -0
- package/src/locales/es.json +57 -0
- package/src/locales/fr.json +57 -0
- package/src/locales/it.json +57 -0
- package/src/locales/ja.json +57 -0
- package/src/locales/nl_NL.json +57 -0
- package/src/locales/pl.json +57 -0
- package/src/locales/ru.json +57 -0
- package/src/locales/sq.json +57 -0
- package/src/locales/zh_CN.json +57 -0
- package/src/proptypes/index.js +10 -0
- package/src/queries/index.js +16 -0
- package/src/styles/apps.css +248 -0
- package/src/styles/banner.css +64 -0
- package/src/styles/bar.css +106 -0
- package/src/styles/base.css +41 -0
- package/src/styles/claudy.css +99 -0
- package/src/styles/drawer.css +126 -0
- package/src/styles/index.styl +33 -0
- package/src/styles/indicators.css +58 -0
- package/src/styles/nav.css +81 -0
- package/src/styles/navigation_item.css +39 -0
- package/src/styles/searchbar.css +158 -0
- package/src/styles/settings.css +44 -0
- package/src/styles/storage.css +22 -0
- package/src/styles/supportModal.css +20 -0
- package/src/styles/theme.styl +25 -0
- package/test/__mocks__/fileMock.js +3 -0
- package/test/__snapshots__/index.spec.js.snap +41 -0
- package/test/components/AppItem.spec.jsx +113 -0
- package/test/components/AppsContent.spec.jsx +116 -0
- package/test/components/Settings/helper.spec.js +23 -0
- package/test/components/__snapshots__/AppsContent.spec.jsx.snap +90 -0
- package/test/index.spec.js +24 -0
- package/test/jestLib/I18n.js +15 -0
- package/test/jestLib/setup.js +14 -0
- package/test/lib/__snapshots__/api.spec.jsx.snap +67 -0
- package/test/lib/__snapshots__/stack.spec.js.snap +3 -0
- package/test/lib/api.spec.jsx +142 -0
- package/test/lib/mockStackClient.js +7 -0
- package/test/lib/stack-client/stack-client.appiconprops.spec.js +65 -0
- package/test/lib/stack-client/stack-client.compare.spec.js +20 -0
- package/test/lib/stack-client/stack-client.cozyfetchjson.spec.js +46 -0
- package/test/lib/stack-client/stack-client.cozyurl.spec.js +29 -0
- package/test/lib/stack-client/stack-client.getapp.spec.js +72 -0
- package/test/lib/stack-client/stack-client.getapps.spec.js +72 -0
- package/test/lib/stack-client/stack-client.getcontext.spec.js +96 -0
- package/test/lib/stack-client/stack-client.getstoragedata.spec.js +85 -0
- package/test/lib/stack-client/stack-client.init.spec.js +56 -0
- package/test/lib/stack-client/stack-client.intents.spec.js +27 -0
- package/test/lib/stack-client/stack-client.logout.spec.js +40 -0
- package/test/lib/stack.spec.js +60 -0
- package/test/store/__snapshots__/index.spec.js.snap +14 -0
- package/test/store/index.spec.js +41 -0
package/.eslintrc.json
ADDED
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
16
|
package/.transifexrc.tpl
ADDED
package/.travis.yml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
dist: focal
|
|
2
|
+
language: node_js
|
|
3
|
+
node_js:
|
|
4
|
+
- 16
|
|
5
|
+
env:
|
|
6
|
+
global:
|
|
7
|
+
# BUNDLESIZE_GITHUB_TOKEN
|
|
8
|
+
- secure: "NoHalqgN2LO+TM77YtBoM1SWaNvIKwYaOwj3XWOEf+OKjCRjKjhcRRvj37R5rqxoF/2wZMkQKxmTHxbMeDHMAHVdE4pu+ufKtnlrwrZeREKqpPQw7lwY3B0OHNnZzmijBKxM5gVumxRATdbFaBImxjoNoEiyt2qo5lWxquBf8gIdGEn2rFCbjAwvtLHbA8ztnf5Z7fvOQe19PllYE8Z7vU4TJNFrRN3U6WccneadbtLho73BH9yT8A4jNDFFAxNUWfulPT0zR7LWq0rmDWvDVeXedfDSyfviiMt2Oh/dMuJUFri7dzJB8ErxdTVVEzLfiIK2nHrHZRnS79+3Ay/G2WJD1pYHvdFivJH0v5LHeqDwu9qvECTSv4PnpTkt1QI367Yasd+u6F4kCeNTmYSRuSqbxgnsw4xvbpbtDuDCAJR6XQrtT3FnXV9w8n9GYmeMCbDSX9TP+uMq3UU8Lb4jwTrSYsnbVvAZBuhHAvldLaOk1KUloYYeiicd2ha1ieyeM9krc+NbgGBgFJKjKHfQIsG2GZxp4DMsmPDbtdsoyK69/V6P2TT/Q6KP3tSElCvM0WFYRzJNpaV1Vn8+Bi/9mxvz4Y5jU9lyQifEtyFA1smM4ByPY0iXOwLgnvTZmsfJBQsIVmUCazKi4Kqu3/7QQymIbTQGDonyyCGrB4ylir8="
|
|
9
|
+
# NPM_TOKEN (mycozycloud)
|
|
10
|
+
- secure: "Z1z9aIqfmUzHrg/WzDJ4IJjnTWTjJx/3HrcBmYfqqfiu3Pgo1Bc1sh2p/dJoYJP+6vg9HkMc2sFrsPy9FtVa67a0QoHEgOq6mdcwEFP1cG5LPRdZTuSMe/j4+UcxvcghE/ilIcFPUmD4aryWhW3i8VdKochLYSU01Ktyyw+JLcAv0cSnotkKlv1MPVAFvhbFo/xu/yVJxDhAvvEXGQuR21GOM42nJachauERdtjJAf8HZDN4NI1n08ESowICfh0m4iyodnjKHgIx+kydmrEF3Viu/d2Onj3nFUiUMOgDdwS0ZimZ9YfwatuZI8spSwmJFevsgi5g5HAhBE7CUAr3Onw0rZXTSe5PPkb5QGw+zCXEAU8RLzj76l5bl/3+/PA3vrKr2eRT7Sp0DPS/NC6xyzNJpWu74ey8tBqmgh1aZoW5dcvjM1OtkFgMaVKzxlsUUG/RIgXNKloO2ZuUF4pw/ASLu82HghwpMNDe+RcsVENe+kekkoA63LGASUmMqEJVLFwynzFK04TPcCs6t2Pb+J2485FbvTqYzCPf69YYSXLub33vrs9N3VrybXfRl71B+af6qs6rNqMe30HxomISY5CfJEfN2kgI92NELnLCr1Qcses4QLXIJHDukTVFWiEA/Pinsk5NHyDZIw4ZONbjE1WBXu8OCTMlgH426p0xrVU="
|
|
11
|
+
# GH_TOKEN (cozy-bot)
|
|
12
|
+
- secure: "sJCHHhxwzhYBHvTj1w6v+yFcvP7RhqkW/WwEYivsOl272WHI1hDloEx0vOQ9HfJemCTCtOxxkCWaaSHl5fYWOT7kGgRyyANK04rBkQUnZbgNIWrf0YaNUiP6kH39wFfoko+pYiDzXhS0BenURRynKycwtUpT/MjmNOdENtRrZZUGEKPxowwSrxFEwsTQuRSeC4+oDHVR4A+X0ZZ1b0x9iST8jwKStGRDnNMmn0X6oTJCa+96toDxFEQDAmCU8zvibQLMmRPUzqGglX7XuSCVaQdAdaMNANb/xb+v+jQTm0+5CBb9F8rUgxdrEjSOg0pKreslSTRpieU9UXDHKvp2x8oEhC6NR4i9Fb+FR7nsjad5cr6h0yeAF6O6ziLWPKT15x8LNSwcD8NPPDUyOVIXjAaoJfkMqvPEQfKxlLXTuyufAlCWqnK9ZioZsJFrE8P1mwB66qEfZ3zKfPoIRAujFqfOUi4CS6ND+TXZYwkRRtuuV1UbXAZ0I6ZyO8VeFFkB/olEl+RFbGOLIAWpjsJCeF6xukgh/s/8b9I8vkXWzQ7+rErQK9F6HoB9RgDeMrJnH9iOYLprcJV+H3GXkmbOHa3V2huPm2pyrkGoHjDmH2htGwS9XsLvxFiuBj/X256nqSTOvb+qY4RUwCv0hwEi7PeS2B92RicjXE1i+SAxf8s="
|
|
13
|
+
cache:
|
|
14
|
+
yarn: true
|
|
15
|
+
directories:
|
|
16
|
+
- node_modules
|
|
17
|
+
script:
|
|
18
|
+
- yarn build
|
|
19
|
+
- yarn test
|
|
20
|
+
before_deploy:
|
|
21
|
+
- touch .npmignore
|
|
22
|
+
deploy:
|
|
23
|
+
provider: script
|
|
24
|
+
skip_cleanup: true
|
|
25
|
+
script: npm run semantic-release
|
|
26
|
+
on:
|
|
27
|
+
branch: master
|
|
28
|
+
repo: cozy/cozy-bar
|
package/.tx/config
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
## v5.0.8 (2018-06-27)
|
|
2
|
+
* Fixed Drawer z-index so it goes over Nav
|
|
3
|
+
|
|
4
|
+
## v5.0.7 (2018-06-25)
|
|
5
|
+
* Fixed FOUC issues
|
|
6
|
+
|
|
7
|
+
## v5.0.6 (2018-06-12)
|
|
8
|
+
* Much better swipe UX
|
|
9
|
+
|
|
10
|
+
## v5.0.5 (2018-06-12)
|
|
11
|
+
* Added RTL swipe support for closing the drawer on mobile
|
|
12
|
+
|
|
13
|
+
## v5.0.4 (2018-05-28)
|
|
14
|
+
* Fix typo in GDPR message
|
|
15
|
+
|
|
16
|
+
## v5.0.3 (2018-05-24)
|
|
17
|
+
|
|
18
|
+
#### :bug: Bug Fix
|
|
19
|
+
* [#207](https://github.com/cozy/cozy-bar/pull/207) Temporary get back editor as name prefix. ([@CPatchane](https://github.com/CPatchane))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [v5.0.2] (2018-05-23)
|
|
23
|
+
|
|
24
|
+
#### :rocket: Enhancement
|
|
25
|
+
* [#205](https://github.com/cozy/cozy-bar/pull/205) Improve CGU banner. ([@CPatchane](https://github.com/CPatchane))
|
|
26
|
+
|
|
27
|
+
#### :bug: Bug Fix
|
|
28
|
+
* [#206](https://github.com/cozy/cozy-bar/pull/206) Handle missing app icon in apps list. ([@CPatchane](https://github.com/CPatchane))
|
|
29
|
+
|
|
30
|
+
## [v5.0.1] - 2018-05-21
|
|
31
|
+
|
|
32
|
+
#### :rocket: Enhancement
|
|
33
|
+
* [#204](https://github.com/cozy/cozy-bar/pull/204) fix z-index of menu on ios. ([@ptbrowne](https://github.com/ptbrowne))
|
|
34
|
+
|
|
35
|
+
## [v5.0.0] - 2018-05-11
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- __Breaking:__ now the bar uses the `name_prefix` from the manifest to display the prefix with the app name instead of using the `editor` property
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Use a spinner in the mobile drawer when fetching apps
|
|
44
|
+
|
|
45
|
+
## [v4.10.4] - 2018-05-09
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- Add a new banner display for CGU update
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- bug about fetching apps in mobile drawer
|
|
54
|
+
|
|
55
|
+
## [v4.10.3] - 2018-05-07
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- Add spinner on apps menu opening
|
|
60
|
+
|
|
61
|
+
## [v4.10.2] - 2018-04-17
|
|
62
|
+
|
|
63
|
+
No changes, fixes the previous broken release.
|
|
64
|
+
|
|
65
|
+
## [v4.10.1] - 2018-04-17
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Fade search bar on blur
|
|
70
|
+
|
|
71
|
+
## [v4.10.0] - 2018-04-06
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- Better handling categories list from manifest (legacy support) ✨
|
|
76
|
+
|
|
77
|
+
### Removed
|
|
78
|
+
|
|
79
|
+
- Remove Claudy & Support on mobile 🌬
|
|
80
|
+
- Remove coming soon app on mobile 👋
|
|
81
|
+
|
|
82
|
+
## [v4.9.4] - 2018-03-27
|
|
83
|
+
|
|
84
|
+
### Fixed
|
|
85
|
+
|
|
86
|
+
- Hide the search bar on public pages
|
|
87
|
+
|
|
88
|
+
## [v4.9.3] - 2018-03-14
|
|
89
|
+
|
|
90
|
+
### Fixed
|
|
91
|
+
|
|
92
|
+
- Fixed a bug when clearing the search request and starting another one
|
|
93
|
+
|
|
94
|
+
## [v4.9.2] - 2018-03-13
|
|
95
|
+
|
|
96
|
+
### Fixed
|
|
97
|
+
|
|
98
|
+
- Another tweak to search request debouncing
|
|
99
|
+
|
|
100
|
+
## [v4.9.1] - 2018-03-12
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
- Enable the search bar by default *but only on Cozy Drive*
|
|
105
|
+
- Changed the search bar's styling and slight behavior tweak (debounced requests)
|
|
106
|
+
|
|
107
|
+
## [v4.9.0] - 2018-03-08
|
|
108
|
+
|
|
109
|
+
### Changed
|
|
110
|
+
|
|
111
|
+
- Enable search bar by default
|
|
112
|
+
|
|
113
|
+
### Fixed
|
|
114
|
+
|
|
115
|
+
- Race conditions in search results
|
|
116
|
+
|
|
117
|
+
## [v4.8.9] - 2018-02-27
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
- Added `Object.assign` polyfill for IE 11
|
|
121
|
+
- Allow scrolling in the pop menu on firefox
|
|
122
|
+
|
|
123
|
+
## [v4.8.8] - 2018-02-16
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
- Hide scrolling bars for the pop menus
|
|
127
|
+
|
|
128
|
+
## [v4.8.7] - 2018-01-31
|
|
129
|
+
|
|
130
|
+
### Fixed
|
|
131
|
+
- ESC should hide the suggestion list in the search bar
|
|
132
|
+
|
|
133
|
+
## [v4.8.6] - 2018-01-30
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
- Small UI & behavior changes to the search bar
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## [v4.8.5] - 2018-01-22
|
|
140
|
+
|
|
141
|
+
### Fixed
|
|
142
|
+
- Filter correctly coming soon apps if apps already installed
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [v4.8.4] - 2018-01-22
|
|
146
|
+
|
|
147
|
+
### Fixed
|
|
148
|
+
- Get editor name to display it on title
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [v4.8.3] - 2018-01-22
|
|
152
|
+
|
|
153
|
+
### Added
|
|
154
|
+
- Add storage link to storage settings view
|
|
155
|
+
- Add coming soon modal description for cozy-store
|
|
156
|
+
|
|
157
|
+
### Fixed
|
|
158
|
+
- Get back coming soon apps in apps list menu
|
|
159
|
+
- Improve global keyboard accessibility
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [v4.8.2] - 2018-01-10
|
|
163
|
+
|
|
164
|
+
### Fixed
|
|
165
|
+
- Typo in logout function name
|
|
166
|
+
|
|
167
|
+
## [v4.8.1] - 2018-01-10
|
|
168
|
+
|
|
169
|
+
### Fixed
|
|
170
|
+
- Force Transifex version to avoid regression
|
|
171
|
+
|
|
172
|
+
## [v4.8.0] - 2018-01-10
|
|
173
|
+
|
|
174
|
+
### Removed
|
|
175
|
+
- `beta` after app name
|
|
176
|
+
|
|
177
|
+
## [v4.7.0] - 2018-01-04
|
|
178
|
+
### Added
|
|
179
|
+
- `onLogOut` option on initialization. If you pass it, it is used instead of original log out mechanism [b836202](https://github.com/cozy/cozy-bar/commit/b8362026453b922dbf46c4436555fe427a26f2a5)
|
|
180
|
+
|
|
181
|
+
## [v4.6.0] - 2017-12-22
|
|
182
|
+
### Added
|
|
183
|
+
- Ask permissions for apps if the list of apps can't be fetched [ac7b506](https://github.com/cozy/cozy-bar/commit/ac7b506c86657369808b1f1bf1d8c30e958e2855)
|
|
184
|
+
|
|
185
|
+
### Fixed
|
|
186
|
+
- Fixed support modal [02b774](https://github.com/cozy/cozy-bar/commit/02b774ff26dac85f0c4d7ccb07b0f55c06e63beb)
|
|
187
|
+
|
|
188
|
+
## [v4.5.5] - 2017-12-12
|
|
189
|
+
### Added
|
|
190
|
+
- Documentation of cozy bar customization API [c0d08bf](https://github.com/cozy/cozy-bar/commit/c0d08bf7796dfe79b328fbac8ab51760bbe5d775)
|
|
191
|
+
- Persiste state on mobile with localForage [1d03fb2](https://github.com/cozy/cozy-bar/commit/1d03fb2f42228429e689567c88f9ebba8756515c)
|
|
192
|
+
- Add function to update accessToken [7e523a7](https://github.com/cozy/cozy-bar/commit/7e523a714e956f76b9dfb48ac76965bc233c2758)
|
|
193
|
+
- Save apps on redux store [6037eb7](https://github.com/cozy/cozy-bar/commit/6037eb74d645433e78986b5ecf9aa38b719a49e7)
|
|
194
|
+
- chore: Add bundlesize script to monitor build size 🔧 [a9b95f1](https://github.com/cozy/cozy-bar/commit/a9b95f101446171cbce310413e38c725cf9d9ead)
|
|
195
|
+
- feat: Remove own app on mobile AppsList [1692363](https://github.com/cozy/cozy-bar/commit/16923634c5e0affe46e3267f8f75724d6e893225)
|
|
196
|
+
|
|
197
|
+
### Fixed
|
|
198
|
+
- Upgrade cozy-ui 🚀 [969a41c](https://github.com/cozy/cozy-bar/commit/969a41c7add89df22138b0a4539159bbc924a10b), [ecee45c](https://github.com/cozy/cozy-bar/commit/ecee45c9166f7368579555b5a939f1a3f5b73790)
|
|
199
|
+
- Display default icon when app don't have one [a63e08c](https://github.com/cozy/cozy-bar/commit/a63e08c278fb6a41ae229e4d7f5fc63b1c2aba3c)
|
|
200
|
+
- If context is not present on stack don't ask again [20e7e43](https://github.com/cozy/cozy-bar/commit/20e7e43e5ed649b3bd7c14c3e82d7c157f250681)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [v4.5.4] - 2017-12-03
|
|
204
|
+
|
|
205
|
+
### Fixed
|
|
206
|
+
- Prevent `getLocale` returning the full store state
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## [v4.5.3] - 2017-11-29
|
|
210
|
+
### Changed
|
|
211
|
+
- Storage computing in bytes ✏️
|
|
212
|
+
- Use I18n from cozy-ui
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## [v4.5.2] - 2017-11-23
|
|
216
|
+
|
|
217
|
+
### Added
|
|
218
|
+
- Add an icon in search results :framed_picture:
|
|
219
|
+
|
|
220
|
+
### Changed
|
|
221
|
+
- Get back `Beta` status
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## [v4.5.1] - 2017-11-22
|
|
225
|
+
|
|
226
|
+
### Fixed
|
|
227
|
+
- Bar elements position on mobile :ambulance:
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [v4.5.0] - 2017-11-21
|
|
231
|
+
|
|
232
|
+
### Fixed
|
|
233
|
+
- Claudy drawer positin on mobile
|
|
234
|
+
- Hide app drawer button on mobile if the option is enabled
|
|
235
|
+
|
|
236
|
+
### Added
|
|
237
|
+
- Better UI for the search bar
|
|
238
|
+
|
|
239
|
+
### Changed
|
|
240
|
+
- Removed beta tag \o/
|
|
241
|
+
- Added a warning : the `displayOnMobile` default value will be changed to `true` in an upcoming version.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## [v4.4.0] - 2017-11-13
|
|
245
|
+
### Fixed
|
|
246
|
+
- remove isRequired property for I18n props
|
|
247
|
+
- fix problems with Claudy
|
|
248
|
+
|
|
249
|
+
### Added
|
|
250
|
+
- Highlight matching texts in search results
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## [v4.3.7] - 2017-11-08
|
|
254
|
+
### Fixed
|
|
255
|
+
- Remove a typo causing a bug in the search bar component :ambulance: [[390ff7b]](https://github.com/cozy/cozy-bar/commit/390ff7bb34f5d0aa082bcf10acf65a1205ba69ce)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## [v4.3.6] - 2017-11-08
|
|
259
|
+
### Changed
|
|
260
|
+
- styl: Remove unnecessary space on mobile application :art: [[bbea1bd]](https://github.com/cozy/cozy-bar/commit/bbea1bd44b768883784dd81f2bfeb0f1e241f841)
|
|
261
|
+
- lint: fix lint issues + add config file using eslint-config-cozy-app :rotating_light: [[587ae08]](https://github.com/cozy/cozy-bar/commit/587ae08a9773830e2559054c577cc7cf518e55ee)
|
|
262
|
+
- fix: use data-tutorial attribute for buttons targeted by app tutorials :art: [[564d7b8]](https://github.com/cozy/cozy-bar/commit/564d7b8b97f2625a1b3a1a9eaa16086cd06c7901)
|
|
263
|
+
- chore: use eslint for linting (cozy-app standard config) :rotating_light: [[d688455]](https://github.com/cozy/cozy-bar/commit/d688455d219e0f2bffa63f7232a23576203c69bb)
|
|
264
|
+
- styl: reduce item size in apps lists :lipstick: [[af83f45]](https://github.com/cozy/cozy-bar/commit/af83f45f3040f7426b606d710b1d03354a17b202)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
## [v4.3.5] - 2017-11-3
|
|
268
|
+
### Fixed
|
|
269
|
+
- Uncaught error on Safari mobile caused blank screens
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## [v4.3.4] - 2017-11-2
|
|
273
|
+
### Fixed
|
|
274
|
+
- Drawer can be opened on mobile
|
|
275
|
+
- Languages are working again
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## [v4.3.3] - 2017-10-31
|
|
279
|
+
### Added
|
|
280
|
+
- API to set content of the Bar (setBar{Right,Left,Center} and <Bar{Left,Right, Center} />)
|
|
281
|
+
|
|
282
|
+
v4.3.0, v4.3.2, v4.3.3 are only there because of build problems on Travis.
|
|
283
|
+
|
|
284
|
+
### Removed
|
|
285
|
+
- none yet
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
## [v4.2.6] - 2017-10-25
|
|
289
|
+
### Add
|
|
290
|
+
- Add ability to display on mobile
|
|
291
|
+
- Expose a new method `setLocale` to change the bar locale without reloading the app page
|
|
292
|
+
|
|
293
|
+
### Changed
|
|
294
|
+
- Update intents library
|
|
295
|
+
- Remove useless then() for support intent
|
|
296
|
+
- Remove some unused styles
|
|
297
|
+
- Update dependencies
|
|
298
|
+
- Change `Apps` button icon
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## [v4.2.5] - 2017-10-04
|
|
302
|
+
### Added
|
|
303
|
+
- Modal allowing to send email to support when click on "Help" link
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## [v4.2.4] - 2017-09-26
|
|
307
|
+
### Fixed
|
|
308
|
+
- Re-instaured spacer between the app title and navigation icons
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## [v4.2.3] - 2017-09-26
|
|
312
|
+
### Fixed
|
|
313
|
+
- Fucked up the previous release
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## [v4.2.2] - 2017-09-26
|
|
317
|
+
### Fixed
|
|
318
|
+
- Temporarily disable the searchbar
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
## [v4.2.1] - 2017-09-21
|
|
322
|
+
### Fixed
|
|
323
|
+
- Prevent the search bar from taking up too much space
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## [v4.2.0] - 2017-09-19
|
|
327
|
+
### Changed
|
|
328
|
+
- Updated cozy-client-js
|
|
329
|
+
|
|
330
|
+
### Added
|
|
331
|
+
- Added the search bar
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## [v4.1.4] - 2017-08-08
|
|
335
|
+
### Changed
|
|
336
|
+
- Update intent lib according to new cozy-client-js update to handle `resizeClient()` css transition
|
|
337
|
+
- Better handling Claudy active status (desktop version)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## [v4.1.3] - 2017-07-26
|
|
341
|
+
### Fixed
|
|
342
|
+
- Bug about coming soon apps filtering
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
## [v4.1.2] - 2017-07-24
|
|
346
|
+
### Changed
|
|
347
|
+
- Better claudy loading CSS animation
|
|
348
|
+
|
|
349
|
+
### Removed
|
|
350
|
+
- Some now unused tx locales
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## [v4.1.1] - 2017-07-21
|
|
354
|
+
### Fixed
|
|
355
|
+
- Do not hijack click outside the nav for react apps
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## [v4.1.0] - 2017-07-21
|
|
359
|
+
### Changed
|
|
360
|
+
- Now the Claudy menu is displayed as an intent using a `cozy-settings` service.
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## [v4.0.2] - 2017-07-12
|
|
364
|
+
### Fixed
|
|
365
|
+
- Apps are now opened in the same tab
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## [v4.0.1] - 2017-07-11
|
|
369
|
+
### Fixed
|
|
370
|
+
- Fix `__SERVER__ is not defined` error
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
## [v4.0.0] - 2017-07-10
|
|
374
|
+
### Changed
|
|
375
|
+
- Rewrited entirely using preact/preact-compat with JSX components
|
|
376
|
+
- Better popups and drawer displaying/hidding transition
|
|
377
|
+
|
|
378
|
+
### Fixed
|
|
379
|
+
- Bug about displaying blue spinner at apps/settings loading
|
|
380
|
+
- Bug about duplicated items in settings menu
|
|
381
|
+
|
|
382
|
+
### Added
|
|
383
|
+
- Dependencies due to Preact usage
|
|
384
|
+
|
|
385
|
+
### Removed
|
|
386
|
+
- SvelteJS usage and dependency
|
|
387
|
+
- Some now unused dependencies
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## [v3.2.2] - 2017-07-06
|
|
391
|
+
### Fixed
|
|
392
|
+
- filter coming soon app
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
## [v3.2.1] - 2017-07-06 [YANKED]
|
|
396
|
+
### Fixed
|
|
397
|
+
- filter coming soon app
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
## [v3.2.0] - 2017-07-05
|
|
401
|
+
### Changed
|
|
402
|
+
- Help link is now fetched from stack context
|
|
403
|
+
|
|
404
|
+
### Fixed
|
|
405
|
+
- Avoid apps being displayed twice
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
## [v3.1.1] - 2017-06-27
|
|
409
|
+
### Fixed
|
|
410
|
+
- Force claudy to rerender when the locale changes
|
|
411
|
+
- Fix bug about others apps category not alwayes at the end of the list
|
|
412
|
+
- Don't allow to close the drawer when Claudy is opened
|
|
413
|
+
- Fix bug when app detection for Claudy app links
|
|
414
|
+
|
|
415
|
+
### Added
|
|
416
|
+
- Piwik environment variables for production build
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
## [v3.1.0] - 2017-06-26
|
|
420
|
+
### Changed
|
|
421
|
+
- The 'others' apps category will always be displayed at the end of the apps list
|
|
422
|
+
|
|
423
|
+
### Fixed
|
|
424
|
+
- Long app name are correctly handled using ellipsis in the apps list of the desktop view
|
|
425
|
+
|
|
426
|
+
### Added
|
|
427
|
+
- Claudy: a list of actions available for the Cozy and suggested to the user (according the Cozy context setting), in desktop and mobile views
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
## [v3.0.1] - 2017-06-23
|
|
431
|
+
### Fixed
|
|
432
|
+
- Fixed wrong path for Cozy Store icon
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
## [v3.0.0] - 2017-06-20
|
|
436
|
+
### Changed
|
|
437
|
+
- Support link href
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
[Unreleased]: https://github.com/cozy/cozy-bar/compare/v4.10.4...HEAD
|
|
441
|
+
[v4.10.4]: https://github.com/cozy/cozy-bar/compare/v4.10.3...v4.10.4
|
|
442
|
+
[v4.10.3]: https://github.com/cozy/cozy-bar/compare/v4.10.2...v4.10.3
|
|
443
|
+
[v4.10.2]: https://github.com/cozy/cozy-bar/compare/v4.10.1...v4.10.2
|
|
444
|
+
[v4.10.1]: https://github.com/cozy/cozy-bar/compare/v4.10.0...v4.10.1
|
|
445
|
+
[v4.10.0]: https://github.com/cozy/cozy-bar/compare/v4.9.4...v4.10.0
|
|
446
|
+
[v4.9.4]: https://github.com/cozy/cozy-bar/compare/v4.9.3...v4.9.4
|
|
447
|
+
[v4.9.3]: https://github.com/cozy/cozy-bar/compare/v4.9.2...v4.9.3
|
|
448
|
+
[v4.9.2]: https://github.com/cozy/cozy-bar/compare/v4.9.1...v4.9.2
|
|
449
|
+
[v4.9.1]: https://github.com/cozy/cozy-bar/compare/v4.9.0...v4.9.1
|
|
450
|
+
[v4.9.0]: https://github.com/cozy/cozy-bar/compare/v4.8.9...v4.9.0
|
|
451
|
+
[v4.8.9]: https://github.com/cozy/cozy-bar/compare/v4.8.8...v4.8.9
|
|
452
|
+
[v4.8.8]: https://github.com/cozy/cozy-bar/compare/v4.8.7...v4.8.8
|
|
453
|
+
[v4.8.7]: https://github.com/cozy/cozy-bar/compare/v4.8.6...v4.8.7
|
|
454
|
+
[v4.8.6]: https://github.com/cozy/cozy-bar/compare/v4.8.5...v4.8.6
|
|
455
|
+
[v4.8.5]: https://github.com/cozy/cozy-bar/compare/v4.8.4...v4.8.5
|
|
456
|
+
[v4.8.4]: https://github.com/cozy/cozy-bar/compare/v4.8.3...v4.8.4
|
|
457
|
+
[v4.8.3]: https://github.com/cozy/cozy-bar/compare/v4.8.2...v4.8.3
|
|
458
|
+
[v4.8.1]: https://github.com/cozy/cozy-bar/compare/v4.8.1...v4.8.2
|
|
459
|
+
[v4.8.1]: https://github.com/cozy/cozy-bar/compare/v4.8.0...v4.8.1
|
|
460
|
+
[v4.8.0]: https://github.com/cozy/cozy-bar/compare/v4.7.0...v4.8.0
|
|
461
|
+
[v4.7.0]: https://github.com/cozy/cozy-bar/compare/v4.6.0...v4.7.0
|
|
462
|
+
[v4.6.0]: https://github.com/cozy/cozy-bar/compare/v4.5.5...v4.6.0
|
|
463
|
+
[v4.5.4]: https://github.com/cozy/cozy-bar/compare/v4.5.4...v4.5.5
|
|
464
|
+
[v4.5.4]: https://github.com/cozy/cozy-bar/compare/v4.5.3...v4.5.4
|
|
465
|
+
[v4.5.3]: https://github.com/cozy/cozy-bar/compare/v4.5.2...v4.5.3
|
|
466
|
+
[v4.5.2]: https://github.com/cozy/cozy-bar/compare/v4.5.1...v4.5.2
|
|
467
|
+
[v4.5.0]: https://github.com/cozy/cozy-bar/compare/v4.4.0...v4.5.0
|
|
468
|
+
[v4.4.0]: https://github.com/cozy/cozy-bar/compare/v4.3.7...v4.4.0
|
|
469
|
+
[v4.3.7]: https://github.com/cozy/cozy-bar/compare/v4.3.6...v4.3.7
|
|
470
|
+
[v4.3.6]: https://github.com/cozy/cozy-bar/compare/v4.3.5...v4.3.6
|
|
471
|
+
[v4.3.5]: https://github.com/cozy/cozy-bar/compare/v4.3.4...v4.3.5
|
|
472
|
+
[v4.3.4]: https://github.com/cozy/cozy-bar/compare/v4.3.3...v4.3.4
|
|
473
|
+
[v4.3.3]: https://github.com/cozy/cozy-bar/compare/v4.2.6...v4.3.3
|
|
474
|
+
[v4.2.6]: https://github.com/cozy/cozy-bar/compare/v4.2.5...v4.2.6
|
|
475
|
+
[v4.2.5]: https://github.com/cozy/cozy-bar/compare/v4.2.4...v4.2.5
|
|
476
|
+
[v4.2.4]: https://github.com/cozy/cozy-bar/compare/v4.2.3...v4.2.4
|
|
477
|
+
[v4.2.3]: https://github.com/cozy/cozy-bar/compare/v4.2.2...v4.2.3
|
|
478
|
+
[v4.2.2]: https://github.com/cozy/cozy-bar/compare/v4.2.1...v4.2.2
|
|
479
|
+
[v4.2.1]: https://github.com/cozy/cozy-bar/compare/v4.2.0...v4.2.1
|
|
480
|
+
[v4.2.0]: https://github.com/cozy/cozy-bar/compare/v4.1.4...v4.2.0
|
|
481
|
+
[v4.1.4]: https://github.com/cozy/cozy-bar/compare/v4.1.3...v4.1.4
|
|
482
|
+
[v4.1.3]: https://github.com/cozy/cozy-bar/compare/v4.1.2...v4.1.3
|
|
483
|
+
[v4.1.2]: https://github.com/cozy/cozy-bar/compare/v4.1.1...v4.1.2
|
|
484
|
+
[v4.1.1]: https://github.com/cozy/cozy-bar/compare/v4.1.0...v4.1.1
|
|
485
|
+
[v4.1.0]: https://github.com/cozy/cozy-bar/compare/v4.0.2...v4.1.0
|
|
486
|
+
[v4.0.2]: https://github.com/cozy/cozy-bar/compare/v4.0.1...v4.0.2
|
|
487
|
+
[v4.0.1]: https://github.com/cozy/cozy-bar/compare/v4.0.0...v4.0.1
|
|
488
|
+
[v4.0.0]: https://github.com/cozy/cozy-bar/compare/v3.2.1...v4.0.0
|
|
489
|
+
[v3.2.1]: https://github.com/cozy/cozy-bar/compare/v3.2.0...v3.2.1
|
|
490
|
+
[v3.2.0]: https://github.com/cozy/cozy-bar/compare/v3.1.1...v3.2.0
|
|
491
|
+
[v3.1.1]: https://github.com/cozy/cozy-bar/compare/v3.1.0...v3.1.1
|
|
492
|
+
[v3.1.0]: https://github.com/cozy/cozy-bar/compare/v3.0.1...v3.1.0
|
|
493
|
+
[v3.0.1]: https://github.com/cozy/cozy-bar/compare/v3.0.0...v3.0.1
|
package/CODEOWNERS
ADDED
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
How to contribute to Cozy Bar?
|
|
2
|
+
==============================
|
|
3
|
+
|
|
4
|
+
Thank you for your interest in contributing to Cozy! There are many ways to contribute, and we appreciate all of them.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Security Issues
|
|
8
|
+
---------------
|
|
9
|
+
|
|
10
|
+
If you discover a security issue, please bring it to our attention right away! Please **DO NOT** file a public issue, instead send your report privately to security AT cozycloud DOT cc.
|
|
11
|
+
|
|
12
|
+
Security reports are greatly appreciated and we will publicly thank you for it. We currently do not offer a paid security bounty program, but are not ruling it out in the future.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Bug Reports
|
|
16
|
+
-----------
|
|
17
|
+
|
|
18
|
+
While bugs are unfortunate, they're a reality in software. We can't fix what we don't know about, so please report liberally. If you're not sure if something is a bug or not, feel free to file a bug anyway.
|
|
19
|
+
|
|
20
|
+
Opening an issue is as easy as following [this link][issues] and filling out the fields. Here are some things you can write about your bug:
|
|
21
|
+
|
|
22
|
+
- A short summary
|
|
23
|
+
- What did you try, step by step?
|
|
24
|
+
- What did you expect?
|
|
25
|
+
- What did happen instead?
|
|
26
|
+
- What is the version of the Cozy Bar?
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Pull Requests
|
|
30
|
+
-------------
|
|
31
|
+
|
|
32
|
+
Please keep in mind that:
|
|
33
|
+
|
|
34
|
+
- Pull-Requests point to the `master` branch
|
|
35
|
+
- You need to cover your code and feature by tests
|
|
36
|
+
- You may add documentation in the `/docs` directory to explain your choices if needed
|
|
37
|
+
- We recommend to use [task lists][checkbox] to explain steps / features in your Pull-Request description
|
|
38
|
+
- you do _not_ need to build app to submit a PR
|
|
39
|
+
- you should update the Transifex source locale file if you modify it for your feature needs (see [Localization section in README][localization])
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Workflow
|
|
43
|
+
|
|
44
|
+
Pull requests are the primary mechanism we use to change Cozy. GitHub itself has some [great documentation][pr] on using the Pull Request feature. We use the _fork and pull_ model described there.
|
|
45
|
+
|
|
46
|
+
#### Step 1: Fork
|
|
47
|
+
|
|
48
|
+
Fork the project on GitHub and [check out your copy locally][forking].
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
$ git clone github.com/cozy/cozy-bar.git
|
|
52
|
+
$ cd cozy-bar
|
|
53
|
+
$ git remote add fork git://github.com/yourusername/cozy-bar.git
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Step 2: Branch
|
|
57
|
+
|
|
58
|
+
Create a branch and start hacking:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
$ git checkout -b my-branch origin/development
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Step 3: Code
|
|
65
|
+
|
|
66
|
+
Well, we think you know how to do that. Just be sure to follow the coding guidelines from the community ([standard JS][stdjs], comment the code, etc).
|
|
67
|
+
|
|
68
|
+
#### Step 4: Test
|
|
69
|
+
|
|
70
|
+
Don't forget to add tests and be sure they are green:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
$ cd cozy-bar
|
|
74
|
+
$ npm run test
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
#### Step 5: Commit
|
|
78
|
+
|
|
79
|
+
Writing [good commit messages][commitmsg] is important. A commit message should describe what changed and why.
|
|
80
|
+
|
|
81
|
+
#### Step 6: Rebase
|
|
82
|
+
|
|
83
|
+
Use `git rebase` (_not_ `git merge`) to sync your work from time to time.
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
$ git fetch origin
|
|
87
|
+
$ git rebase origin/development my-branch
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Step 7: Push
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
$ git push -u fork my-branch
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Go to https://github.com/username/cozy-bar and select your branch. Click the 'Pull Request' button and fill out the form. **Do not forget** to select the `development` branch as base branch.
|
|
97
|
+
|
|
98
|
+
Alternatively, you can use [hub] to open the pull request from your terminal:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
$ git pull-request -m "My PR message" -o
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Pull requests are usually reviewed within a few days. If there are comments to address, apply your changes in a separate commit and push that to your branch. Post a comment in the pull request afterwards; GitHub doesn't send out notifications when you add commits.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
Writing documentation
|
|
108
|
+
---------------------
|
|
109
|
+
|
|
110
|
+
Documentation improvements are very welcome. We try to keep a good documentation in the `/docs` folder. But, you know, we are developers, we can forget to document important stuff that look obvious to us. And documentation can always be improved.
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
Translations
|
|
114
|
+
------------
|
|
115
|
+
|
|
116
|
+
The Cozy Bar is translated on a platform called [Transifex][tx]. [This tutorial][tx-start] can help you to learn how to make your first steps here. If you have any question, don't hesitate to ask us!
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
Community
|
|
120
|
+
---------
|
|
121
|
+
|
|
122
|
+
You can help us by making our community even more vibrant. For example, you can write a blog post, take some videos, answer the questions on [the forum][forum], organize new meetups, and speak about what you like in Cozy!
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
[issues]: https://github.com/cozy/cozy-bar/issues/new
|
|
127
|
+
[pr]: https://help.github.com/categories/collaborating-with-issues-and-pull-requests/
|
|
128
|
+
[forking]: http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
|
|
129
|
+
[stdjs]: http://standardjs.com/
|
|
130
|
+
[commitmsg]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
131
|
+
[localization]: https://github.com/cozy/cozy-bar/blob/master/README.md#localization
|
|
132
|
+
[hub]: https://hub.github.com/
|
|
133
|
+
[tx]: https://www.transifex.com/cozy/
|
|
134
|
+
[tx-start]: http://docs.transifex.com/getting-started/translators/
|
|
135
|
+
[forum]: https://forum.cozy.io/
|