Jelajahi Sumber

Merge branch 'master' into feature/tl-preset

Renée Kooi 6 tahun lalu
induk
melakukan
aa175d24b5

File diff ditekan karena terlalu besar
+ 99 - 485
package-lock.json


+ 1 - 1
package.json

@@ -53,7 +53,7 @@
     "lint-staged": "^6.1.1",
     "minify-stream": "^1.2.0",
     "mkdirp": "0.5.1",
-    "multi-glob": "1.0.1",
+    "multi-glob": "^1.0.2",
     "nock": "^9.6.1",
     "node-sass": "^4.10.0",
     "npm-auth-to-token": "^1.0.0",

+ 13 - 13
website/src/_posts/2018-12-0.29.md

@@ -1,14 +1,14 @@
 ---
-title: "Uppy 0.29"
+title: "Uppy 0.29: Separate Core and Plugin styles, React Native in tus-js-client"
 date: 2018-12-11
 author: arturi
 image: "https://uppy.io/images/blog/0.29/uppy-core-plugins-separate-styles.jpg"
-published: false
+published: true
 ---
 
 <img src="/images/blog/0.29/uppy-core-plugins-separate-styles.jpg">
 
-`0.29` brings bug fixes and improvements, while we are busy working on Uppy React Native support (which is already [coming to our resumable file upload protocol tus.io](https://github.com/tus/tus-js-client#react-native-support)) and a Transloadit Preset. The highlights of this release are: separating Core and plugin styles, using file sizes for progress calculation, adding a `responseType` option for XHR Upload and fixing some visual Webcam bugs.
+`0.29` brings bug fixes and improvements, while we are busy working on Uppy React Native support (which first had to [land in the js client for our resumable file upload protocol: tus.io](https://github.com/tus/tus-js-client#react-native-support)) and a Preset (still debating the name) which will make it easier to leverage Transloadit's encoding platform, and offer a smooth migration path for users not on Uppy yet. The highlights of this release are: separating Core and Plugin styles, more accurate progress reporting by factoring in sizes across files, adding a `responseType` option for XHR Upload and fixing visual Webcam bugs.
 
 <!--more-->
 
@@ -16,7 +16,7 @@ published: false
 
 **⚠️ breaking**
 
-When installing `uppy` and plugins from npm, you had to include their styles. Prior to this release, you could include only the plugin’s CSS, say, for `@uppy/webcam`:
+When installing `uppy` and Plugins from npm, you had to include their styles. Prior to this release, you only had to include the Plugin’s CSS, say, for `@uppy/webcam`:
 
 ```js
 import Uppy from '@uppy/core'
@@ -24,24 +24,24 @@ import Webcam from '@uppy/webcam'
 import '@uppy/webcam/dist/style.css'
 ```
 
-Each plugin's file contained the core styles. If you added multiple plugins, the core styles ended up being duplicated. This bloated file sizes and could even break styles entirely because of CSS's precedence rules.
+Each plugin's file contained the Core styles. If you added multiple plugins, the core styles ended up being duplicated. This bloated file sizes and could even break styles entirely because of CSS's precedence rules.
 
 Now you have to include “general” styles from `@uppy/core` as well:
 
 ```js
 import Uppy from '@uppy/core'
 import Webcam from '@uppy/webcam'
-import '@uppy/core/dist/style.css'
+import '@uppy/core/dist/style.css' // <-- add this separately and one time only
 import '@uppy/webcam/dist/style.css'
 ```
 
-Thus the core styles are only included once. `@uppy/core` styles must be included before plugin styles.
+Thus the Core styles are only included once. `@uppy/core` styles must be included before Plugin styles.
 
-Please [see documentation for the plugin](https://uppy.io/docs/plugins/) you are using to find out whether it requires a CSS file to work. Generally UI plugins, such as Dashboard, Webcam and Status Bar need a CSS file, while utility plugins, such as Tus or XHR Upload, don’t.
+Please [see documentation for the Plugin](https://uppy.io/docs/plugins/) you are using to find out whether it requires a CSS file to work. Generally speaking UI plugins, such as the Dashboard, Webcam and Status Bar need a CSS file, while utility plugins, such as Tus or XHR Upload, don’t.
 
 ⚠️ Important things to remember:
 
-1. Dashboard is a universal UI that comes with Status Bar and Informer plugins built in, and as such Dashboard styles already come with Informer and Status Bar styles.
+1. Dashboard is a universal UI that comes with the Status Bar and Informer Plugins built in, and as such Dashboard styles already come with the Informer and Status Bar styles.
 2. Dashboard also ships with “Remote Provider” styles — you don’t need to include anything besides `@uppy/dashboard/dist/style.css` for Google Drive, Instagram and Dropbox to work. However, Url and Webcam plugins, still have to be included manually. Here’s an example:
 
 ```js
@@ -70,11 +70,11 @@ Some internal details, if you are interested:
 
 <img src="/images/blog/0.29/progress-size-calculation.jpg">
 
-## responseType For XHR Upload
+## `responseType` For XHR Upload
 
-When using XHR Upload, you can now configure the XMLHttpRequest `.responseType` value. This allows the S3 plugin to tell Firefox not to log XML errors when getting empty responses, so it finally fixes the spurious warnings that were caused by this, see [#518](https://github.com/transloadit/uppy/issues/518).
+When using XHR Upload, you can now configure the XMLHttpRequest `.responseType` value. This allows the S3 Plugin to tell Firefox not to log XML errors when getting empty responses, so it finally fixes the spurious warnings that were caused by this, see [#518](https://github.com/transloadit/uppy/issues/518).
 
-Because AwsS3 now sets responseType: 'text', we can no longer use the responseXML property. We already did text based parsing for successful responses, and now do the same for error responses.
+Because AwsS3 now sets `responseType`: `'text'`, we can no longer use the `responseXML` property. We already did text based parsing for successful responses, and now do the same for error responses.
 
 ## Misc Changes
 
@@ -88,4 +88,4 @@ Because AwsS3 now sets responseType: 'text', we can no longer use the responseXM
 - docs: Add `triggerUploadOnSubmit` to Form docs, add docs about options of hiding upload/pause/resume/cancel buttons; talk about bundler-less polyfill use (@goto-bus-stop, @arturi)
 - @uppy/react: Allow Dashboard props width and height to accept a string for 100% (#1129 / craigcbrunner)
 
-See [full changelog (0.29) for more](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md#0290)
+See the [full changelog (0.29)](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md#0290) for more details.

+ 107 - 0
website/src/privacy.md

@@ -0,0 +1,107 @@
+---
+title: "Privacy Policy"
+type: page
+layout: page
+permalink: /privacy-policy/
+---
+
+Uppy is an open source file uploader, developed by the team at [Transloadit Ltd.](https://transloadit.com) and [open source contributors on GitHub](https://github.com/transloadit/uppy/graphs/contributors).
+
+In order to demonstrate Uppy file uploader and Transloadit's file encoding service on this website, we capture and store information about you.
+
+## Who is responsible for data protection?
+
+Since we are operating with a staff of less than ten people, we do not have an external data officer. Responsible for data protection are our founders Tim Koschützki and Kevin van Zonneveld. You can reach them at <a href="mailto:founders@transloadit.com">founders@transloadit.com</a>.
+
+## What data is collected?
+
+We receive the following **data** from you:
+
+1. IP addresses
+2. Request headers
+3. Data entered on our website
+4. The browser session (identified through a cookie)
+5. Information used to analyze usage of our platform (through cookies from Google Analytics. More on cookies is explained below)
+6. Files you can optionally upload in example demos. Those files are stored temporarily for 24 hours, on tus.io or transloadit.com servers, and then deleted. See also Transloadit’s Privacy Policy: https://transloadit.com/legal/privacy/.
+
+All data that passes through demos is only used for demo purposes, and never sold or otherwise given away.
+
+Since we do not store data on data subjects, migration or deletion tools are not applicable.
+
+## Third-party services
+
+We use the following third-party services which also store data about you:
+
+| supplier              | subject                 | data                                     | encryption    | anonymized  | discarded  |
+| :-------------------- | :---------------------- | :--------------------------------------- | :-----------: | :---------: | :--------: | :-------: |
+| Transloadit           | end user (data subject) | browser identifiers                      |               |             | instantly  |           |
+| Transloadit           | end user (data subject) | test files                      |               |             | in 24h  |           |
+| Tus.io           | end user (data subject) | test files                      |               |             | in 24h  |           |
+| Google Analytics      | customer (business)     | browser identifiers                      |               | ✅                      |           |
+
+- **anonymized**: Any data that can be used to identify the 'data subject' is scrubbed
+- **discarded**: Data is destroyed
+
+## Your information and your rights
+
+If you are based within the EEA (European Economic Area) or within another jurisdiction that has similar data protection laws, under certain circumstances, you have the following rights:
+
+1. the right to be told how we use your information and obtain access to your information;
+1. the right to have your information rectified or erased, or to place restrictions on processing your information;
+1. the right to object to the processing of your information, e.g., for direct marketing purposes or where the processing is based on our legitimate interests;
+1. the right to have any information you provided to us on an automated basis returned to you in a structured, commonly-used and machine-readable format, or sent directly to another company, where technically feasible (“data portability”);
+1. where the processing of your information is based on your consent, the right to withdraw that consent is subject to legal or contractual restrictions;
+1. the right to object to any decisions based on the automated processing of your personal data, including profiling; and
+1. the right to lodge a complaint with the supervisory authority responsible for data protection matters (e.g., in the UK, the Information Commissioner’s Office).
+
+If you request a copy of your information, you may be required to pay a statutory fee.
+
+If you withdraw your consent to the use of your personal information for purposes set out in our Privacy Policy, we may not be able to provide you with access to (parts of) our website, applications, and services.
+
+## Changes to our privacy policy
+
+We may change this privacy policy from time to time. Nevertheless, we will not reduce your rights under this privacy policy. We will always update the privacy policy on our website, so please try to read it when you visit the website (the ‘last updated’ reference tells you when we last updated this privacy policy).
+
+## Cookies, analytics and traffic data
+
+Cookies are small text files that are transferred from our website and stored on your device. We use cookies to help us provide you with a personalized service, and to help make our website and service better for you.
+
+Our cookies may be session cookies (temporary cookies that identify and track users within our websites) which are deleted when you close your browser, or persistent cookies (cookies that enable our website to “remember” who you are and to remember your preferences within our website) which will stay on your computer or device after you close your browser).
+
+We use the following different types of cookies:
+
+### Performance cookies and analytics technologies
+
+Performance cookies collect information about how visitors and users use our website. These cookies register, for example, which functionality our visitors use most often, or if they receive error messages from certain areas of our website. These cookies don't collect information that can be used to identify a visitor or user. All information collected by these cookies is aggregated and therefore anonymous. We only use these cookies to improve how our website works.
+
+### Functionality cookies
+
+Functionality cookies allow our website to remember the choices you make (such as your user name, language or the region you are in) and provide enhanced and more personal features. These cookies can also be used to remember changes you have made to text size, fonts and other parts of web pages that you can customize. They may also be used to provide services you have asked for. The information collected by these cookies may be anonymized. They cannot track your browsing activity on other websites.
+
+### IP Address and traffic data
+
+We keep a record of the traffic data that is logged automatically by our servers, such as your Internet Protocol (IP) address, device information, the website that you visited before ours and the website you visit after leaving our site. We also collect some site, application and service statistics, such as access rates, page hits and page views. We are not able to identify any individual from traffic data or site statistics.
+
+#### Google Analytics
+
+Our platform uses Google Analytics, which uses cookies. The information created through these cookies about your usage of uppy.io will be transmitted to a Google server in the United States of America and stored there. When you are located in one of the states of the European Union, your IP address will be anonymized on our platform prior to transmitting it. We use the code "ga('set', 'anonymizeIp', true);" to ensure an anonymous way of saving IP addresses (so-called IP-masking).
+
+Google will use this information to analyze your usage of our platform and to create reports about the activities on our platform. The IP address that will be sent to Google as a result of Google Analytics will not be connected to any other data on Google.
+
+You can avoid any cookies being saved by changing the settings in your browser accordingly. Please be aware that if you choose to do so, you might not be able to make full use of our website and all of its features. You can also prevent the analysis of your browsing behavior on our platform through Google Analytics by installing the following browser plugin: http://tools.google.com/dlpage/gaoptout.
+
+Google, Inc. (“Google”)	head quarters are located at "1600 Amphitheatre Parkway Mountain View, California 94043, USA".
+Their privacy policy is located here: https://policies.google.com/privacy.
+
+## How to disable cookies
+
+You may be able to configure your browser or our website to restrict cookies or block all cookies, if you wish. If you disable cookies, you may find that this affects your ability to use certain parts of our website. For more information about cookies and instructions on how to adjust your browser settings to accept, delete or reject cookies, see the [www.allaboutcookies.org](www.allaboutcookies.org) website.
+
+## Data Processing Addendum (DPA)
+
+If you require a countersigned copy of our DPA, please  <a href="mailto:hello@transloadit.com?subject=I+request+a+countersigned+copy+of+your+DPA" onclick="Intercom('showNewMessage', 'Hi, I\'d like to request a countersigned copy of your DPA'); return false;">reach out to support</a>.
+
+## Last Updated
+
+This privacy policy was last updated on Dec 12, 2018.
+

+ 1 - 0
website/themes/uppy/layout/index.ejs

@@ -79,6 +79,7 @@
   <p>Released under the <a href="http://opensource.org/licenses/MIT" rel="noreferrer noopener" target="_blank">MIT License</a></p>
   <p>This site borrows heavily from Evan You's excellent <a href="https://github.com/vuejs/vuejs.org">Vue.js</a> (<a href="https://github.com/transloadit/uppy/blob/master/website/VUEORG_LICENSE">LICENSE</a>) (he <a href="https://twitter.com/youyuxi/status/672441843183960067">approves</a>)</p>
   <p>© <%- date(Date.now(), 'YYYY') %> <a href="https://transloadit.com" rel="noreferrer noopener" target="_blank">Transloadit</a></p>
+  <p><a href="/privacy-policy/">Privacy Policy</a></p>
 </footer>
 
 <link href="https://transloadit.edgly.net/releases/uppy/v0.29.0/dist/uppy.min.css" rel="stylesheet">

+ 1 - 1
website/themes/uppy/layout/page.ejs

@@ -1,4 +1,4 @@
-<% if (page.type) { %>
+<% if (page.type && page.type !== 'page') { %>
     <%- partial('partials/sidebar', { type: page.type, index: page.index }) %>
 <% } %>
 <div class="Content js-Content <%- page.type ? page.type + ' with-sidebar' : '' %>">

+ 1 - 0
website/themes/uppy/layout/partials/ga.ejs

@@ -5,5 +5,6 @@
   })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
   ga('create', '<%- config.google_analytics %>', '<%- config.root_domain %>');
+  ga('set', 'anonymizeIp', true);
   ga('send', 'pageview');
 </script>

+ 13 - 0
website/themes/uppy/source/css/_page.scss

@@ -159,6 +159,19 @@
     vertical-align: middle;
   }
 
+  table {
+    display: block;
+    font-size: 85%;
+    border-spacing: 10px;
+    overflow-x: auto;
+    // white-space: nowrap;
+  }
+
+  // table td,
+  // table th {
+  //   padding-right: 30px;
+  // }
+
   .light {
     color: $color-light;
   }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini