Merge remote-tracking branch 'origin/master'

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1084/head
Maxence Lange 2020-10-19 08:49:21 -01:00
commit 71469da748
14 zmienionych plików z 2167 dodań i 604 usunięć

Wyświetl plik

@ -41,6 +41,10 @@ describe('Create posts', function() {
Cypress.Cookies.preserveOnce('nc_username', 'nc_token', 'nc_session_id', 'oc_sessionPassphrase');
})
it('See the empty content illustration', function() {
cy.get('.emptycontent').should('be.visible').contains('No posts found')
})
it('Write a post to followers', function() {
cy.visit('/apps/social/')
cy.server()
@ -56,6 +60,10 @@ describe('Create posts', function() {
cy.get('.social__timeline div.timeline-entry:first-child').should('contain', 'Hello world')
})
it('No longer see the empty content illustration', function() {
cy.get('.emptycontent').should('not.be.visible')
})
it('Write a post to followers with shift enter', function() {
cy.visit('/apps/social/')
cy.server()

Wyświetl plik

@ -58,6 +58,7 @@ OC.L10N.register(
"No liked posts found" : "Nenalezeny žádné příspěvky, které by se líbily",
"You haven't tooted yet" : "Zatím jste nic nenapsali",
"No posts found for this tag" : "Nenalezeny žádné příspěvky s tímto štítkem",
"No replies found" : "Nenalezeny žádné odpovědi",
"hasn't tooted yet" : "zatím nic nenapsal/a",
"Reply" : "Odpovědět",
"Boost" : "Přeposlat",

Wyświetl plik

@ -56,6 +56,7 @@
"No liked posts found" : "Nenalezeny žádné příspěvky, které by se líbily",
"You haven't tooted yet" : "Zatím jste nic nenapsali",
"No posts found for this tag" : "Nenalezeny žádné příspěvky s tímto štítkem",
"No replies found" : "Nenalezeny žádné odpovědi",
"hasn't tooted yet" : "zatím nic nenapsal/a",
"Reply" : "Odpovědět",
"Boost" : "Přeposlat",

Wyświetl plik

@ -8,7 +8,7 @@ OC.L10N.register(
"🎉 Nextcloud becomes part of the federated social networks!" : "🎉 Το Nextcloud έγινε κομμάτι των κοινωνικών δικτύων!",
"** Disclaimer: this is an ALPHA version **\n\n**🎉 Nextcloud becomes part of the federated social networks!**\n\n**🙋 Find your friends:** No matter if they use Nextcloud, 🐘 Mastodon, 🇫 Friendica, and soon ✱ Diaspora, 👹 MediaGoblin and more – you can follow them!\n\n**📜 Profile info:** No need to fill out more profiles – your info from Nextcloud will be used and extended.\n\n**👐 Own your posts:** Everything you post stays on your Nextcloud!\n\n**🕸 Open standards:** We use the established ActivityPub standard!" : "** Αποποίηση ευθύνης: Αυτή είναι μια έκδοση ALPHA **\n\n**🎉 Το Nextcloud έγινε κομμάτι των κοινωνικών δικτύων!**\n\n**🙋 Βρείτε τους φίλους σας:** Δεν έχει σημασία εάν χρησιμοποιούν το Nextcloud, 🐘 Mastodon, 🇫 Friendica, και σε λίγο ✱ Diaspora, 👹 MediaGoblin και άλλα – μπορείτε να τους ακολουθήσετε!\n\n**📜 Πληροφορίες προφίλ:** Δεν χρειάζεστε άλλα προφίλ – οι πληροφορίες σας από το Nextcloud θα χρησιμοποιηθούν και θα επεκταθούν.\n**👐 Κρατήστε τις αναρτήσεις σας: ** Τα πάντα που δημοσιεύετε παραμένουν στο Nextcloud σας!\n\n**🕸 Ανοικτά πρότυπα: ** Χρησιμοποιούμε το καθιερωμένο πρότυπο ActivityPub!",
".well-known/webfinger isn't properly set up!" : ".το γνωστό / webfinger δεν έχει ρυθμιστεί σωστά!",
"Social needs the .well-known automatic discovery to be properly set up. If Nextcloud is not installed in the root of the domain, it is often the case that Nextcloud can't configure this automatically. To use Social, the admin of this Nextcloud instance needs to manually configure the .well-known redirects: " : "Το Social χρειάζεται την .γνωστή αυτόματη αναζήτηση να είναι σωστά ρυθμισμένη. Εάν το Nextcloud δεν είναι εγκατεστημένο στη ρίζα του τομέα, είναι πιθανό ότι δεν μπορεί να ρυθμίσει αυτόματα. Για να χρησιμοποιήσετε το Social, ο διαχειριστής του Nextcloud πρέπει να ρυθμίσει με μη αυτόματο τρόπο τις .γνωστές δρομολογήσεις:",
"Social needs the .well-known automatic discovery to be properly set up. If Nextcloud is not installed in the root of the domain, it is often the case that Nextcloud can't configure this automatically. To use Social, the admin of this Nextcloud instance needs to manually configure the .well-known redirects: " : "Το Social χρειάζεται την .γνωστή αυτόματη αναζήτηση να είναι σωστά ρυθμισμένη. Εάν το Nextcloud δεν είναι εγκατεστημένο στη ρίζα του τομέα, είναι πιθανό ότι δεν μπορεί να το ρυθμίσει αυτόματα. Για να χρησιμοποιήσετε το Social, ο διαχειριστής του Nextcloud πρέπει να ρυθμίσει με μη αυτόματο τρόπο τις .γνωστές δρομολογήσεις: ",
"Open documentation" : "Άνοιγμα τεκμηρίωσης",
"Social app setup" : "Εγκατάσταση εφαρμογής Social",
"ActivityPub requires a fixed URL to make entries unique. Note that this can not be changed later without resetting the Social app." : "Το ActivityPub απαιτεί μια σταθερή διεύθυνση URL για να κάνει τις καταχωρίσεις μοναδικές. Σημειώστε ότι αυτό δεν μπορεί να αλλάξει αργότερα χωρίς την επαναφορά της εφαρμογής Social.",
@ -27,7 +27,7 @@ OC.L10N.register(
"Post to followers" : "Δημοσίευση στους ακόλουθους",
"Post to recipients" : "Δημοσίευση στους παραλήπτες",
"Post unlisted" : "Δημοσίευση μη καταχωρημένων",
"Public" : "Δημόσιος",
"Public" : "Δημόσιο",
"Post to public timelines" : "Δημοσίευση στο δημόσιο χρονολόγιο",
"Unlisted" : "Μή καταχωρημένο",
"Do not post to public timelines" : "Να μην δημοσιευτεί στο δημόσιο χρονολόγιο",
@ -39,7 +39,7 @@ OC.L10N.register(
"Unfollow" : "Μην ακολουθείται",
"Follow" : "Ακολουθείστε",
"posts" : "δημοσιεύσεις",
"following" : "ακόλουθο",
"following" : "ακολουθεί",
"followers" : "ακόλουθοι",
"No results found" : "Κανένα αποτέλεσμα",
"There were no results for your search:" : "Κανένα αποτέλεσμα της αναζήτησής σας:",
@ -58,7 +58,8 @@ OC.L10N.register(
"No liked posts found" : "Δεν βρέθηκαν δημοσιεύσεις με μ'αρέσει",
"You haven't tooted yet" : "Δεν έχετε επισημανθεί ακόμη",
"No posts found for this tag" : "Δεν βρέθηκαν αναρτήσεις για αυτήν την ετικέτα",
"hasn't tooted yet" : "Δεν έχει επισημανθεί ακόμη",
"No replies found" : "Δεν βρέθηκαν απαντήσεις",
"hasn't tooted yet" : "δεν έχει δημοσιεύσει ακόμα",
"Reply" : "Απάντηση",
"Boost" : "Ενίσχυση",
"Like" : "Αρέσει",
@ -76,7 +77,7 @@ OC.L10N.register(
"User not found" : "Ο χρήστης δεν βρέθηκε",
"Sorry, we could not find the account of {userId}" : "Συγνώμη, δεν μπορέσαμε να βρούμε τον λαγαριασμό του {userId}",
"Nextcloud becomes part of the federated social networks!" : "Το Nextcloud γίνεται μέρος των ομοσπονδιακών κοινωνικών δικτύων!",
"We automatically created a Social account for you. Your Social ID is the same as your federated cloud ID:" : "Θα δημιουργήσουμε αυτόματα λογαριασμό για εσάς στο Social. Η ταυτότητες του Social και του ομοσπονδιακού σας θα είναι ίδιες.",
"We automatically created a Social account for you. Your Social ID is the same as your federated cloud ID:" : "Δημιουργήσαμε αυτόματα λογαριασμό για εσάς στο Social. Η ταυτότητά σας στο Social είναι ίδια με του federated cloud σας:",
"Since you are new to Social, start by following the official Nextcloud account so you don't miss any news" : "Καθως είστε νέοι στο Social, ξεκινήστε ακολουθώντας τον επίσημο λογαριασμό του Nextcloud για να μην χάσετε καμιά είδηση",
"Follow Nextcloud on mastodon.xyz" : "Ακολουθήστε το Nextcloud στο mastodon.xyz"
},

Wyświetl plik

@ -6,7 +6,7 @@
"🎉 Nextcloud becomes part of the federated social networks!" : "🎉 Το Nextcloud έγινε κομμάτι των κοινωνικών δικτύων!",
"** Disclaimer: this is an ALPHA version **\n\n**🎉 Nextcloud becomes part of the federated social networks!**\n\n**🙋 Find your friends:** No matter if they use Nextcloud, 🐘 Mastodon, 🇫 Friendica, and soon ✱ Diaspora, 👹 MediaGoblin and more – you can follow them!\n\n**📜 Profile info:** No need to fill out more profiles – your info from Nextcloud will be used and extended.\n\n**👐 Own your posts:** Everything you post stays on your Nextcloud!\n\n**🕸 Open standards:** We use the established ActivityPub standard!" : "** Αποποίηση ευθύνης: Αυτή είναι μια έκδοση ALPHA **\n\n**🎉 Το Nextcloud έγινε κομμάτι των κοινωνικών δικτύων!**\n\n**🙋 Βρείτε τους φίλους σας:** Δεν έχει σημασία εάν χρησιμοποιούν το Nextcloud, 🐘 Mastodon, 🇫 Friendica, και σε λίγο ✱ Diaspora, 👹 MediaGoblin και άλλα – μπορείτε να τους ακολουθήσετε!\n\n**📜 Πληροφορίες προφίλ:** Δεν χρειάζεστε άλλα προφίλ – οι πληροφορίες σας από το Nextcloud θα χρησιμοποιηθούν και θα επεκταθούν.\n**👐 Κρατήστε τις αναρτήσεις σας: ** Τα πάντα που δημοσιεύετε παραμένουν στο Nextcloud σας!\n\n**🕸 Ανοικτά πρότυπα: ** Χρησιμοποιούμε το καθιερωμένο πρότυπο ActivityPub!",
".well-known/webfinger isn't properly set up!" : ".το γνωστό / webfinger δεν έχει ρυθμιστεί σωστά!",
"Social needs the .well-known automatic discovery to be properly set up. If Nextcloud is not installed in the root of the domain, it is often the case that Nextcloud can't configure this automatically. To use Social, the admin of this Nextcloud instance needs to manually configure the .well-known redirects: " : "Το Social χρειάζεται την .γνωστή αυτόματη αναζήτηση να είναι σωστά ρυθμισμένη. Εάν το Nextcloud δεν είναι εγκατεστημένο στη ρίζα του τομέα, είναι πιθανό ότι δεν μπορεί να ρυθμίσει αυτόματα. Για να χρησιμοποιήσετε το Social, ο διαχειριστής του Nextcloud πρέπει να ρυθμίσει με μη αυτόματο τρόπο τις .γνωστές δρομολογήσεις:",
"Social needs the .well-known automatic discovery to be properly set up. If Nextcloud is not installed in the root of the domain, it is often the case that Nextcloud can't configure this automatically. To use Social, the admin of this Nextcloud instance needs to manually configure the .well-known redirects: " : "Το Social χρειάζεται την .γνωστή αυτόματη αναζήτηση να είναι σωστά ρυθμισμένη. Εάν το Nextcloud δεν είναι εγκατεστημένο στη ρίζα του τομέα, είναι πιθανό ότι δεν μπορεί να το ρυθμίσει αυτόματα. Για να χρησιμοποιήσετε το Social, ο διαχειριστής του Nextcloud πρέπει να ρυθμίσει με μη αυτόματο τρόπο τις .γνωστές δρομολογήσεις: ",
"Open documentation" : "Άνοιγμα τεκμηρίωσης",
"Social app setup" : "Εγκατάσταση εφαρμογής Social",
"ActivityPub requires a fixed URL to make entries unique. Note that this can not be changed later without resetting the Social app." : "Το ActivityPub απαιτεί μια σταθερή διεύθυνση URL για να κάνει τις καταχωρίσεις μοναδικές. Σημειώστε ότι αυτό δεν μπορεί να αλλάξει αργότερα χωρίς την επαναφορά της εφαρμογής Social.",
@ -25,7 +25,7 @@
"Post to followers" : "Δημοσίευση στους ακόλουθους",
"Post to recipients" : "Δημοσίευση στους παραλήπτες",
"Post unlisted" : "Δημοσίευση μη καταχωρημένων",
"Public" : "Δημόσιος",
"Public" : "Δημόσιο",
"Post to public timelines" : "Δημοσίευση στο δημόσιο χρονολόγιο",
"Unlisted" : "Μή καταχωρημένο",
"Do not post to public timelines" : "Να μην δημοσιευτεί στο δημόσιο χρονολόγιο",
@ -37,7 +37,7 @@
"Unfollow" : "Μην ακολουθείται",
"Follow" : "Ακολουθείστε",
"posts" : "δημοσιεύσεις",
"following" : "ακόλουθο",
"following" : "ακολουθεί",
"followers" : "ακόλουθοι",
"No results found" : "Κανένα αποτέλεσμα",
"There were no results for your search:" : "Κανένα αποτέλεσμα της αναζήτησής σας:",
@ -56,7 +56,8 @@
"No liked posts found" : "Δεν βρέθηκαν δημοσιεύσεις με μ'αρέσει",
"You haven't tooted yet" : "Δεν έχετε επισημανθεί ακόμη",
"No posts found for this tag" : "Δεν βρέθηκαν αναρτήσεις για αυτήν την ετικέτα",
"hasn't tooted yet" : "Δεν έχει επισημανθεί ακόμη",
"No replies found" : "Δεν βρέθηκαν απαντήσεις",
"hasn't tooted yet" : "δεν έχει δημοσιεύσει ακόμα",
"Reply" : "Απάντηση",
"Boost" : "Ενίσχυση",
"Like" : "Αρέσει",
@ -74,7 +75,7 @@
"User not found" : "Ο χρήστης δεν βρέθηκε",
"Sorry, we could not find the account of {userId}" : "Συγνώμη, δεν μπορέσαμε να βρούμε τον λαγαριασμό του {userId}",
"Nextcloud becomes part of the federated social networks!" : "Το Nextcloud γίνεται μέρος των ομοσπονδιακών κοινωνικών δικτύων!",
"We automatically created a Social account for you. Your Social ID is the same as your federated cloud ID:" : "Θα δημιουργήσουμε αυτόματα λογαριασμό για εσάς στο Social. Η ταυτότητες του Social και του ομοσπονδιακού σας θα είναι ίδιες.",
"We automatically created a Social account for you. Your Social ID is the same as your federated cloud ID:" : "Δημιουργήσαμε αυτόματα λογαριασμό για εσάς στο Social. Η ταυτότητά σας στο Social είναι ίδια με του federated cloud σας:",
"Since you are new to Social, start by following the official Nextcloud account so you don't miss any news" : "Καθως είστε νέοι στο Social, ξεκινήστε ακολουθώντας τον επίσημο λογαριασμό του Nextcloud για να μην χάσετε καμιά είδηση",
"Follow Nextcloud on mastodon.xyz" : "Ακολουθήστε το Nextcloud στο mastodon.xyz"
},"pluralForm" :"nplurals=2; plural=(n != 1);"

Wyświetl plik

@ -58,6 +58,7 @@ OC.L10N.register(
"No liked posts found" : "No se han encontrado entradas con Me gusta",
"You haven't tooted yet" : "Todavía no has hecho toots",
"No posts found for this tag" : "No se han encontrado post para este tag",
"No replies found" : "No se han encontrado respuestas",
"hasn't tooted yet" : "no ha escrito ningún toot todavía",
"Reply" : "Responder",
"Boost" : "Refuerzo",

Wyświetl plik

@ -56,6 +56,7 @@
"No liked posts found" : "No se han encontrado entradas con Me gusta",
"You haven't tooted yet" : "Todavía no has hecho toots",
"No posts found for this tag" : "No se han encontrado post para este tag",
"No replies found" : "No se han encontrado respuestas",
"hasn't tooted yet" : "no ha escrito ningún toot todavía",
"Reply" : "Responder",
"Boost" : "Refuerzo",

Wyświetl plik

@ -58,6 +58,7 @@ OC.L10N.register(
"No liked posts found" : "Nenhum post curtido encontrado",
"You haven't tooted yet" : "Você não reiniciou ainda",
"No posts found for this tag" : "Nenhum post encontrado para este rótulo",
"No replies found" : "Nenhuma resposta encontrada",
"hasn't tooted yet" : "Não enviado via Mastodon ainda",
"Reply" : "Responder",
"Boost" : "Impulsionar",

Wyświetl plik

@ -56,6 +56,7 @@
"No liked posts found" : "Nenhum post curtido encontrado",
"You haven't tooted yet" : "Você não reiniciou ainda",
"No posts found for this tag" : "Nenhum post encontrado para este rótulo",
"No replies found" : "Nenhuma resposta encontrada",
"hasn't tooted yet" : "Não enviado via Mastodon ainda",
"Reply" : "Responder",
"Boost" : "Impulsionar",

Wyświetl plik

@ -0,0 +1,103 @@
<?php
declare(strict_types=1);
/**
* Nextcloud - Social Support
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Maxence Lange <maxence@artificial-owl.com>
* @copyright 2018, Maxence Lange <maxence@artificial-owl.com>
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\Social\Migration;
use Closure;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Schema\SchemaException;
use Exception;
use OCP\DB\ISchemaWrapper;
use OCP\IDBConnection;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
/**
* Class Version0003Date20200823023910
*
* @package OCA\Social\Migration
*/
class Version0003Date20200823023900 extends SimpleMigrationStep {
/** @var IDBConnection */
private $connection;
/**
* @param IDBConnection $connection
*/
public function __construct(IDBConnection $connection) {
$this->connection = $connection;
}
/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
*
* @return ISchemaWrapper
* @throws SchemaException
* @throws DBALException
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if ($schema->hasTable('social_3_cache_actor')) {
$table = $schema->getTable('social_3_cache_actor');
if ($table->hasPrimaryKey()) {
$kc = $table->getPrimaryKeyColumns();
if (count($kc) === 1 && $kc[0] === 'id_prim') {
$table->dropPrimaryKey();
}
}
}
return $schema;
}
/**
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
*
* @throws Exception
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
}
}

Wyświetl plik

@ -170,6 +170,8 @@ class Version0003Date20200823023911 extends SimpleMigrationStep {
]
]
);
$table->addUniqueIndex(['id_prim']);
}

2616
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -29,7 +29,7 @@
"cypress:gui": "cypress open"
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@babel/runtime": "^7.12.1",
"@nextcloud/auth": "^1.3.0",
"@nextcloud/axios": "^1.4.0",
"@nextcloud/initial-state": "^1.2.0",
@ -64,18 +64,18 @@
"node": ">=10.0.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/core": "^7.12.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.11.5",
"@babel/preset-env": "^7.12.1",
"@nextcloud/browserslist-config": "^1.0.0",
"@nextcloud/eslint-config": "^2.1.0",
"@nextcloud/eslint-plugin": "^1.5.0",
"@vue/test-utils": "^1.1.0",
"acorn": "^8.0.4",
"babel-eslint": "^10.0.3",
"babel-jest": "^26.3.0",
"babel-jest": "^26.5.2",
"babel-loader": "^8.0.6",
"css-loader": "^4.3.0",
"css-loader": "^5.0.0",
"cypress": "^5.3.0",
"cypress-image-snapshot": "^3.1.1",
"cypress-testing-library": "^4.0.0",
@ -104,7 +104,7 @@
"vue-template-compiler": "^2.6.12",
"webpack": "^4.44.2",
"webpack-cli": "^4.0.0",
"webpack-merge": "^5.1.4"
"webpack-merge": "^5.2.0"
},
"jest": {
"moduleFileExtensions": [

Wyświetl plik

@ -33,7 +33,7 @@
<div class="list-end" />
</div>
<div slot="no-results">
<empty-content :item="emptyContentData" />
<empty-content v-if="timeline.length === 0" :item="emptyContentData" />
</div>
</infinite-loading>
</div>