Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backporting changes to NC20 compatible #1

Open
wants to merge 84 commits into
base: nc20
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
e5459da
Merge pull request #1 from nextcloud/master
Valdnet Dec 15, 2020
87fc989
l10n: Replace comma with colon
Valdnet Dec 15, 2020
bb2ed7f
[tx-robot] updated from transifex
nextcloud-bot Apr 24, 2021
b3b8e35
[tx-robot] updated from transifex
nextcloud-bot Apr 28, 2021
2b23cec
[tx-robot] updated from transifex
nextcloud-bot May 8, 2021
e3c5342
Merge pull request #37 from Valdnet/master
rakekniven May 9, 2021
bb0e83f
[tx-robot] updated from transifex
nextcloud-bot May 10, 2021
6ddc4ea
[tx-robot] updated from transifex
nextcloud-bot May 11, 2021
72fa716
[tx-robot] updated from transifex
nextcloud-bot May 12, 2021
c826dd7
[tx-robot] updated from transifex
nextcloud-bot May 13, 2021
4393619
[tx-robot] updated from transifex
nextcloud-bot May 16, 2021
804e035
[tx-robot] updated from transifex
nextcloud-bot May 25, 2021
2c12c6b
[tx-robot] updated from transifex
nextcloud-bot Jun 3, 2021
e1c2eec
[tx-robot] updated from transifex
nextcloud-bot Jun 4, 2021
68535b4
[tx-robot] updated from transifex
nextcloud-bot Jun 11, 2021
51b9969
[tx-robot] updated from transifex
nextcloud-bot Jun 13, 2021
05f4b5b
[tx-robot] updated from transifex
nextcloud-bot Jun 15, 2021
13ae083
Bump node and npm version in package.json
nickvergessen Jun 16, 2021
869544e
Merge pull request #61 from nextcloud/bump-node-and-npm-version-in-pa…
PVince81 Jun 16, 2021
de3671d
[tx-robot] updated from transifex
nextcloud-bot Jun 23, 2021
0ac388c
phpstormification, bump min NC version to 22
Jun 23, 2021
d74d012
fix a few style issues
Jun 23, 2021
93d5dab
[tx-robot] updated from transifex
nextcloud-bot Jun 28, 2021
c1cb2e8
bump js libs
Jun 28, 2021
777514f
1.0.3
Jun 28, 2021
02012e3
Bump hosted-git-info from 2.8.8 to 2.8.9
dependabot[bot] Jun 28, 2021
42394e3
[tx-robot] updated from transifex
nextcloud-bot Jun 30, 2021
efcb62f
log more info when token refresh fails, make a request on perso setti…
Jul 9, 2021
cc3f2ca
factorize token refresh stuff
Jul 9, 2021
174ac70
use Node 14 in release action
Jul 9, 2021
542364a
[tx-robot] updated from transifex
nextcloud-bot Jul 24, 2021
e0a4e1e
[tx-robot] updated from transifex
nextcloud-bot Jul 28, 2021
72abbf1
[tx-robot] updated from transifex
nextcloud-bot Jul 30, 2021
7987860
[tx-robot] updated from transifex
nextcloud-bot Aug 8, 2021
97a633c
[tx-robot] updated from transifex
nextcloud-bot Aug 10, 2021
a025b8a
[tx-robot] updated from transifex
nextcloud-bot Aug 19, 2021
8dc8968
[tx-robot] updated from transifex
nextcloud-bot Aug 21, 2021
810aa27
refs #60 catch any unhandled error in import jobs
Aug 27, 2021
e4e1b77
refs #70 change connection button to comply with Google's branding gu…
Aug 27, 2021
ccddf9e
[tx-robot] updated from transifex
nextcloud-bot Aug 28, 2021
3b12bae
[tx-robot] updated from transifex
nextcloud-bot Aug 29, 2021
1b5cd70
refs #71 fix drive/photos import with SSE enabled
Aug 30, 2021
5a6258e
update CHANGELOG, bump version, 1.0.5-1-nightly
Aug 30, 2021
e50037d
[tx-robot] updated from transifex
nextcloud-bot Sep 3, 2021
4c3549d
[tx-robot] updated from transifex
nextcloud-bot Sep 7, 2021
d8d8a7a
[tx-robot] updated from transifex
nextcloud-bot Sep 12, 2021
2e04dde
[tx-robot] updated from transifex
nextcloud-bot Sep 16, 2021
dd02345
refs #78 fix google signin button
Sep 27, 2021
912b444
[tx-robot] updated from transifex
nextcloud-bot Oct 7, 2021
25e845b
[tx-robot] updated from transifex
nextcloud-bot Nov 1, 2021
bc39092
[tx-robot] updated from transifex
nextcloud-bot Nov 5, 2021
f3856c2
[tx-robot] updated from transifex
nextcloud-bot Nov 6, 2021
a7f1f5d
Unlock files explicitly before deleting them to avoid throwing an error
akhil1508 Nov 3, 2021
09c96af
Added check for document mime type before webContentLink
akhil1508 Nov 5, 2021
384ea21
Download docs first; maintain list of completed file IDs
akhil1508 Nov 8, 2021
a6e83cd
Added log for user failed downloads
akhil1508 Nov 9, 2021
f3b77a0
Ignore 403s while getting metadata as it could mean user didn't give …
akhil1508 Nov 9, 2021
dc057fe
Added check for scopes to ConfigController
akhil1508 Nov 10, 2021
6e48719
rolled back status code changes
akhil1508 Nov 10, 2021
59b7583
rolled back status code changes in service
akhil1508 Nov 10, 2021
43dcf6e
Added scope checks to personal settings
akhil1508 Nov 10, 2021
22b07bb
Removed logger warnings containing user photo info
akhil1508 Nov 10, 2021
f24687a
Added append of fileItem id last 6 characters to file before save
akhil1508 Nov 10, 2021
7df868f
Remove completedFileIds
akhil1508 Nov 10, 2021
7f091b3
Log only if file doesn't exist
akhil1508 Nov 10, 2021
4bf1c2c
Update version on master
nickvergessen Nov 11, 2021
f3a9b50
Merge pull request #85 from nextcloud/update-master-version
PVince81 Nov 11, 2021
4216144
Fixed bug with fileName
akhil1508 Nov 11, 2021
47ce842
[tx-robot] updated from transifex
nextcloud-bot Nov 12, 2021
9f18f31
Added API call to mediaItems if no photos in albums
akhil1508 Nov 4, 2021
ac76fdc
Removed nbPhotos and estimated size
akhil1508 Nov 4, 2021
c274575
adjustments to #84
Nov 14, 2021
4e8ce1e
adjustments for #83
Nov 14, 2021
a7c07b9
Merge branch 'master' into e-foundation-unlock-files-explicitly
Nov 14, 2021
98e1a4b
clarify package.json, remove useless DB version constraints, improve …
Nov 14, 2021
f85aa70
[tx-robot] updated from transifex
nextcloud-bot Nov 15, 2021
94a1d92
[tx-robot] updated from transifex
nextcloud-bot Nov 16, 2021
0d625ba
[tx-robot] updated from transifex
nextcloud-bot Nov 17, 2021
b7b256c
[tx-robot] updated from transifex
nextcloud-bot Nov 18, 2021
4c255a5
[tx-robot] updated from transifex
nextcloud-bot Nov 20, 2021
163a1bd
urlencoded calendar ids and fileItem ids
akhil1508 Nov 19, 2021
dc13da6
Removed private details from logger warnings
akhil1508 Nov 18, 2021
8a15cde
1.0.6
Nov 21, 2021
0506221
[tx-robot] updated from transifex
nextcloud-bot Nov 25, 2021
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
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ module.exports = {
},
extends: [
'@nextcloud'
]
],
rules: {
'jsdoc/require-jsdoc': 'off',
'jsdoc/tag-lines': 'off'
}
}
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
APP_ID: integration_google
runs-on: ubuntu-latest
steps:
- name: Use Node 12
uses: actions/setup-node@v1
- name: Use Node 14
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14

- name: Set up npm
run: npm i -g npm

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,41 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## 1.0.6 – 2021-11-21
### Added
- list download failures in `failed-downloads.md` file
[#83](https://github.com/nextcloud/integration_google/pull/83) @akhil1508

### Changed
- improve permission management, don't fail on missing permission
[#83](https://github.com/nextcloud/integration_google/pull/83) @akhil1508
- remove private information in logs
[#83](https://github.com/nextcloud/integration_google/pull/83) @akhil1508
- improve photo count
[#84](https://github.com/nextcloud/integration_google/pull/84) @akhil1508
- improve release action and clarify package.json

### Fixed
- urlencode calendar ids and fileItem ids
[#89](https://github.com/nextcloud/integration_google/pull/89) @akhil1508
- multiple files having the same name
[#83](https://github.com/nextcloud/integration_google/pull/83) @akhil1508
- google signin button
[#78](https://github.com/nextcloud/integration_google/issues/78) @Niveshkrishna
- change connection button to comply with Google's branding guidelines
[#70](https://github.com/nextcloud/integration_google/issues/70) @tabp0le
- handle unknown job Exceptions to avoid blocking import process
[#60](https://github.com/nextcloud/integration_google/issues/60) @StaceZ @ancow
- drive/photo import with SSE enabled
[#71](https://github.com/nextcloud/integration_google/issues/71) @Niveshkrishna @arnaudvp

## 1.0.3 – 2021-06-28
### Changed
- bump js libs
- get rid of all deprecated stuff
- bump min NC version to 22
- cleanup backend code

## 1.0.2 – 2021-04-20
### Changed
- bump js libs
Expand Down
7 changes: 2 additions & 5 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Google integration</name>
<summary>Import Google data into Nextcloud</summary>
<description><![CDATA[Google integration allows you to automatically import your Google calendars, contacts, photos and files into Nextcloud.]]></description>
<version>1.0.2</version>
<version>1.0.6</version>
<licence>agpl</licence>
<author>Julien Veyssier</author>
<namespace>Google</namespace>
Expand All @@ -16,10 +16,7 @@
<bugs>https://github.com/nextcloud/integration_google/issues</bugs>
<screenshot>https://github.com/nextcloud/integration_google/raw/master/img/screenshot1.jpg</screenshot>
<dependencies>
<database min-version="9.4">pgsql</database>
<database>sqlite</database>
<database min-version="5.5">mysql</database>
<nextcloud min-version="20" max-version="22"/>
<nextcloud min-version="22" max-version="24"/>
</dependencies>
<settings>
<admin>OCA\Google\Settings\Admin</admin>
Expand Down
43 changes: 43 additions & 0 deletions img/google.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 82 additions & 1 deletion l10n/bg.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,91 @@
OC.L10N.register(
"integration_google",
{
"Missing refresh token in Google response." : "Липсващ маркер за опресняване в отговора на Google.",
"Error getting OAuth access token." : "Грешка при получаване на маркер за достъп на OAuth.",
"Error during OAuth exchanges" : "Грешка по време на обмен на OAuth",
"Google" : "Google",
"_%s photo was imported from Google._::_%s photos were imported from Google._" : ["%sснимки бяха импортирани от Google. ","%s снимки бяха импортирани от Google."],
"_%s file was imported from Google Drive._::_%s files were imported from Google Drive._" : ["%sфайлове бяха импортирани от Google Диск. ","%s файлове бяха импортирани от Google Диск."],
"OAuth access token refused" : " Маркерът за достъп OAuth е отказан",
"Bad credentials" : "Лоши идентификационни данни",
"Google Calendar import" : "Импортиране на Google Календар",
"Private event" : "Частно събитие",
"Connected accounts" : "Свързани профили",
"Data migration" : "Миграция на данни",
"Google integration" : "Google интеграция",
"Import Google data into Nextcloud" : "Импортиране на данни от Google в Nextcloud",
"Google integration allows you to automatically import your Google calendars, contacts, photos and files into Nextcloud." : "Интеграцията с Google ви позволява автоматично да импортирате вашите Google календари, контакти, снимки и файлове в Nextcloud.",
"If you want to allow your Nextcloud users to authenticate to Google, create an OAuth application in your Google settings." : "Ако искате да позволите на потребителите на Nextcloud удостоверяване пред Google, създайте OAuth приложение в настройките на Google.",
"Google API settings" : "Настройки на Google за API",
"Go to \"APIs & Services\" => \"Credentials\" and click on \"+ CREATE CREDENTIALS\" -> \"OAuth client ID\"." : "Отидете на \"APIs & Services \" /APIs и услуги/ => \"Credentials\"/Идентификационни данни/ и кликнете върху \"+ CREATE CREDENTIALS\" /Създаване на Идентификационни данни/ -> \"OAuth client ID\"/Идентификатор на клиент/.",
"Set the \"Application type\" to \"Web application\" and give a name to the application." : "Задайте „Тип на приложение“ на „Уеб приложение“ и дайте име на приложение.",
"Make sure you set one \"Authorized redirect URI\" to" : "Уверете се, че сте задали един „Упълномощен URI за пренасочване“.",
"Put the \"Client ID\" and \"Client secret\" below." : "Поставете „Идентификатор на клиент“ и „Тайна на клиент“ по-долу.",
"Finally, go to \"APIs & Services\" => \"Library\" and add the following APIs: \"Google Drive API\", \"Google Calendar API\", \"People API\" and \"Photos Library API\"." : "Накрая отидете на \"APIs и услуги\" => \"Библиотека\" и добавете следните API: \"Google Диск API\", \"Google Календар API\", \"Хора API\" и \"Библиотека със снимки API\".",
"Your Nextcloud users will then see a \"Connect to Google\" button in their personal settings." : "В следствие на това, вашите потребители на Nextcloud ще видят бутон „Свързване с Google“ в личните си настройки.",
"Client ID" : "Client ID",
"Client ID of your Google application" : "Клиентски идентификатор на вашето Google приложение",
"Client secret" : "Тайна на клиент",
"Client secret of your Google application" : "Клиентска тайна на вашето Google приложение",
"Google admin options saved" : "Опциите за администратор на Google са записани",
"Failed to save Google admin options" : "Неуспешно записване на опциите за администратор на Google",
"Google data migration" : "Миграция на данни от Google",
"No Google OAuth app configured. Ask your Nextcloud administrator to configure Google connected accounts admin section." : "Няма конфигурирано приложение на Google за OAuth. Помолете своя администратор на Nextcloud да конфигурира администраторската секция за свързани профили в Google. ",
"Authentication" : "Удостоверяване",
"Sign in with Google" : "Влизане с Google",
"Connected as {user}" : "Свързване като {user}",
"Disconnect from Google" : "Прекъсване на връзката с Google",
"Contacts" : "Контакти",
"{amount} Google contacts" : "{amount} контакта в Google",
"Import Google Contacts in Nextcloud" : "Импортиране на контакти от Google в Nextcloud",
"Choose where to import the contacts" : "Изберете къде да импортирате контактите",
"New address book" : "Нова адресна книга",
"address book name" : "име на адресната книга",
"Import in {name} address book" : "Импортиране в адресната книга {name}",
"Calendars" : "Kалендари",
"Import calendar" : "Внасяне на календар",
"Photos" : "Снимки"
"Photos" : "Снимки",
"Ignore shared albums" : "Игнориране на споделените албуми",
"Warning: Google does not provide location data in imported photos." : "Предупреждение: Google не предоставя данни за местоположението в импортираните снимки.",
"Import directory" : "Директория за импортиране",
"Import Google photos" : "Импортиране на снимки от Google",
"Your Google photo collection size is estimated to be bigger than your remaining space left ({formSpace})" : "Размерът на колекцията ви от снимки в Google е преценена, като по-голям от оставащото ви място ({formSpace})",
"Cancel photo import" : "Отказ на импортирането на снимки",
"Drive" : "Диск",
"Ignore shared files" : "Игнориране на споделените файлове",
"Google documents import format" : "Формат за импортиране на документи от Google",
"Import Google Drive files" : "Импортирайте файлове от Google Диск",
"Your Google Drive is bigger than your remaining space left ({formSpace})" : "Вашият Google Диск е по-голям от оставащото ви място ({formSpace})",
"Cancel Google Drive import" : "Отказ на импортирането от Google Диск",
"Photo import background process will begin soon." : "Фоновият процес на импортиране на снимки ще започне скоро.",
"Last photo import job at {date}" : "Последна задача за импортиране на снимки на {date}",
"You can close this page. You will be notified when it finishes." : "Можете да затворите тази страница. Ще бъдете уведомени, когато приключи.",
"Google Drive background import process will begin soon." : "Процесът на фоново импортиране на Google Диск ще започне скоро.",
"Last Google Drive import job at {date}" : "Последна задача за импортиране на Google Диск на {date}",
"Successfully connected to Google!" : "Успешно свързване с Google!",
"Google connection error:" : "Грешка при свързването с Google:",
"Google options saved" : "Опциите на Google са записани",
"Failed to save Google options" : "Неуспешно записване на опциите на Google",
"Failed to save Google OAuth state" : "Неуспешно записване на състоянието на Google OAuth",
"Failed to get Google Drive information" : "Неуспешно получаване на информация за Google Диск",
"Failed to get calendar list" : "Неуспешно получаване на списък на календар",
"Failed to get number of Google photos" : "Неуспешно получаване на бройката снимки в Google",
"Failed to get number of Google contacts" : "Неуспешно получаване на бройката контакти в Google ",
"Failed to get address book list" : "Неуспешно получаване на списък на адресна книга",
"Failed to import Google calendar" : "Импортирането на Google календар беше неуспешно",
"Starting importing photos in {targetPath} directory" : "Започва импортирането на снимки в директория {targetPath}",
"Failed to start importing Google photos" : "Неуспешно стартиране на импортирането на снимки от Google",
"Starting importing files in {targetPath} directory" : "Започва импортирането на файлове в директория {targetPath}",
"Failed to start importing Google Drive" : "Неуспешно стартиране на импортирането на Google Диск",
"Choose where to write imported files" : "Изберете къде да запишете импортирани файлове",
"Choose where to write imported photos" : "Изберете къде да запишете импортираните снимки",
"_>{nbPhotos} Google photo (>{formSize})_::_>{nbPhotos} Google photos (>{formSize})_" : [">{nbPhotos} Google снимкa (>{formSize})",">{nbPhotos} Google снимки (>{formSize})"],
"_{amount} photo imported_::_{amount} photos imported_" : ["{amount} снимки са импортирани","{amount} снимки са импортирани"],
"_{nbFiles} file in Google Drive ({formSize} + {formSharedSize} shared with you)_::_{nbFiles} files in Google Drive ({formSize} + {formSharedSize} shared with you)_" : ["{nbFiles} файлове в Google Диск ({formSize} + {formSharedSize} споделени с вас)","{nbFiles} файлове в Google Диск ({formSize} + {formSharedSize} споделени с вас)"],
"_{nbFiles} file in Google Drive ({formSize})_::_{nbFiles} files in Google Drive ({formSize})_" : ["{nbFiles} файлове в Google Диск ({formSize})","{nbFiles} файлове в Google Диск ({formSize})"],
"_{amount} file imported ({progress}%)_::_{amount} files imported ({progress}%)_" : ["{amount} импортирани файлове ({progress}%)","{amount} импортирани файлове ({progress}%)"],
"_{number} contact successfully imported in {name}_::_{number} contacts successfully imported in {name}_" : ["{number} контакта успешно импортирани в {name}","{number} контакта успешно импортирани в {name}"],
"_{number} event successfully imported in {name}_::_{number} events successfully imported in {name}_" : ["{number} събития успешно импортирани в {name} ","{number} събития успешно импортирани в {name} "]
},
"nplurals=2; plural=(n != 1);");
Loading