text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>import { Con<|fim_suffix|>.dispatch('toggleAddTagForm'); } } <|fim_middle|>troller } from '@hotwired/stimulus'; export default class extends Controller { toggleAddTagForm() { this<|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; export default class extends Control<|fim_suffix|>nstance.destroy(); } } <|fim_middle|>ler { static values = { accordion: { type: Boolean, default: true }, }; connect() { this.instance = M.Colla...
fim
wallabag/wallabag
javascript
<|fim_suffix|> hover: false, coverTrigger: false, constrainWidth: false, }); } disconnect() { this.instance.destroy(); } } <|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; export def<|fim_middle|>ault class extends Controller {...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; export default class extends Controller { connect() { this.instance = M.FloatingActionButton.init(this.element, { direction: 'left', hoverEnabled: false, }); } autoDisplay() { cons...
fim
wallabag/wallabag
javascript
<|fim_suffix|>nt.querySelector('select')); } disconnect() { this.instance.destroy(); } } <|fim_prefix|>import { Controller } f<|fim_middle|>rom '@hotwired/stimulus'; import M from '@materializecss/materialize'; export default class extends Controller { connect() { this.instance = M.FormSelect.init(thi...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; export default class extends Controller { connect() { this.instance = M.Ra<|fim_suffix|>roy(); } } } <|fim_middle|>nge.init(this.element.querySelector('input[type=range]')); } disconnect() { ...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; const mobileMaxWidth = 993; export default class extends Control<|fim_suffix|>.close(); } } disconnect() { this.instance.destroy(); } } <|fim_middle|>ler { static values = { edge: { type: S...
fim
wallabag/wallabag
javascript
<|fim_suffix|> } } <|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M fr<|fim_middle|>om '@materializecss/materialize'; export default class extends Controller { connect() { this.instance = M.Tabs.init(this.element); } disconnect() { this.instance.destroy(); <|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M fro<|fim_suffix|>iss(); } } <|fim_middle|>m '@materializecss/materialize'; export default class extends Controller { connect() { this.instance = M.toast({ text: this.element.innerText }); } disconnect() { this.instance.dism<|endof...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import M from '@materializecss/materialize'; export default class extends Controller { static values = { position: String, enterDelay: Number, }; connect() { const options = {}; if (this.hasPositionVal<|fim_suffix|> <|fim_middle|>ue...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; let hasInitializedWaves = false; export default class extends Controller { // eslint-disa<|fim_suffix|>asInitializedWaves) { window.Waves.init(); hasInitializedWaves = true; } } } <|fim_middle|>ble-next-line class-methods-use-this co...
fim
wallabag/wallabag
javascript
import { Controller } from '@hotwired/stimulus'; /* stimulusFetch: 'lazy' */ export default class extends Controller { // eslint-disable-next-line class-methods-use-this async connect() { await import(/* webpackChunkName: "mathjax" */ 'mathjax/tex-svg'); } } <|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_suffix|> } } <|fim_prefix|>import { Controller } from '@hotwired/stimulus'; import jrQrcode from 'jr-qrcode'; e<|fim_middle|>xport default class extends Controller { static values = { url: String }; connect() { this.element.setAttribute('src', jrQrcode.getQrBase64(this.urlValue));<|endoftext|>
fim
wallabag/wallabag
javascript
import { Controller } from '@hotwired/stimulus'; export default class extends Controller { updateWidth() { const referenceHeight = document.body.offsetHeight - window.innerHeight; const scrollPercent = (window.scrollY / referenceHeight) * 100; this.element.style.width = `${scrollPercent}%`; } } <|endo...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; export default class extends Controller { static values = { entryId: Number }; connect() { window.scrollTo({ top: window.innerHeight * localStorage[`wallabag.article<|fim_suffix|>0; localStorage[`wallabag.article.${this.entryIdValue}.pe...
fim
wallabag/wallabag
javascript
<|fim_suffix|> this.boundShortcuts = []; if (Mousetrap.prototype.stopCallback === this.stopCallback) { Mousetrap.prototype.stopCallback = this.originalStopCallback; } } bindShortcut(combo, callback) { Mousetrap.bind(combo, callback); this.boundShortcuts.push(combo); } } <|fim_prefix|>imp...
fim
wallabag/wallabag
javascript
<|fim_suffix|>ulus'; export default class extends Controller { toggle() { this.element.classList.toggle('entry-nav-top--sticky'); } } <|fim_prefix|>import { Controller } fr<|fim_middle|>om '@hotwired/stim<|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; export default cl<|fim_suffix|>troller { static targets = ['link', 'edit', 'form', 'input']; showForm() { this.formTarget.classList.remove('hidden'); this.editTarget.classList.add('hidden'); this.linkTarget.classList.add('hidden'); thi...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import { Controller } from '@hotwired/stimulus'; export default class extends Controller { static targets <|fim_suffix|>rget.style.display = 'none'; this.addUrlTarget.style.display = 'flex'; this.searchTarget.style.display = 'none'; this.addUrlInputTarget.focus(); } submittingUrl(e) { ...
fim
wallabag/wallabag
javascript
<|fim_suffix|>serrat'; import '@fontsource/oswald'; /* Theme style */ import './scss/index.scss'; <|fim_prefix|>import './bootstrap'; /* Materialize imports */ import '@materializecss/materialize/dist/css/materialize.css'; /* Fonts */ import 'material-design-icons-iconfont/dist/material-design-icons.css'; import 'la...
fim
wallabag/wallabag
javascript
<|fim_prefix|>import './scss/share.scs<|fim_suffix|>ex-svg'; <|fim_middle|>s'; import 'mathjax/t<|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_suffix|>fony/maker-bundle', 'symfony/web-profiler-bundle', 'symfony/web-server-bundle', ], [ErrorType::DEV_DEPENDENCY_IN_PROD]) ->ignoreErrorsOnPackages([ 'gedmo/doctrine-extensions', ], [ErrorType::SHADOW_DEPENDENCY]) ; return $config; <|fim_prefix|><?php use ShipMonk\Compos...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Wallabag\Fixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; use Wallabag\Entity\Annotation; use Wallabag\Entity\Entry; use Wallabag\Entity\User; class AnnotationFixtures extends Fixtur...
fim
wallabag/wallabag
php
<?php namespace Wallabag\Fixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; use Wallabag\Entity\Config; use Wallabag\Entity\User; class ConfigFixtures extends Fixture implements DependentFixtureInterface { publ...
fim
wallabag/wallabag
php
<|fim_suffix|>er $manager): void { $user = $this->getReference('dev-user', User::class); foreach (self::URLS as $index => $url) { $entry = new Entry($user); $this->contentProxy->updateEntry($entry, $url); if (\in_array($index, self::ARCHIVED_INDICES, true)) { ...
fim
wallabag/wallabag
php
<|fim_suffix|>$config); $manager->persist($rule); } $manager->flush(); } public function getDependencies(): array { return [ ConfigFixtures::class, ]; } } <|fim_prefix|><?php namespace Wallabag\Fixtures; use Doctrine\Bundle\FixturesBundle\Fixt...
fim
wallabag/wallabag
php
<|fim_suffix|>> 'review', 'tag-howto' => 'howto', 'tag-news' => 'news', ]; foreach ($tags as $reference => $label) { $tag = new Tag(); $tag->setLabel($label); $manager->persist($tag); $this->addReference($reference, $tag); ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Wallabag\Fixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; use Wallabag\Entity\Config; use Wallabag\Entity\TaggingRule; class TaggingRuleFixtures extends Fixture implements DependentF...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Wallabag\Fixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; use FOS\UserBundle\Event\UserEvent; use FOS\UserBundle\FOSUserEvents; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Wallabag\Entity\User; class UserFixtures exten...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Initial database structure. */ class Version20...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added foreign keys for account resetting. */ class Version20160410190541 extends WallabagMigration { public function up(Schema $schema): void { $entryTable = $schema->getTable($th...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added name field on wallabag_oauth2_clients. */ class Version20160812120952 extends WallabagMigration { public function up(Schema $sc...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added settings for RabbitMQ and Redis imports. */ class Version20160911214952 extends WallabagMigration { public function up(Schema $schema): void { $redis = $this->connection ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added pocket_consumer_key field on wallabag_config. */ class Version20160916201049 extends WallabagMigration { public function up(Schema $schema): void { $configTabl...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\Exception\SkipMigration; use Wallabag\Doctrine\WallabagMigration; /** ...
fim
wallabag/wallabag
php
<|fim_suffix|>de_ci;'); $this->addSql('ALTER TABLE ' . $this->getTable('user') . ' CHANGE `name` `name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'); } public function down(Schema $schema): void { if (!$this->connection->getDatabasePlatform() instanceof MySQLPlatform) { ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added user_id column on oauth2_clients to prevent users to delete API clients from other users. */ class Version20161024212538 extends Wa...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added the internal setting to enable/disable downloading<|fim_suffix|>ownload_images_enabled';"); } } <|fim_middle|> pictures. */ class Version20161031132655 extends WallabagMig...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added created_at index on entry table. */ class Version20161104073720 extends WallabagMigration { private $indexName = 'IDX_entry_created_at'; public function up(Schema $sc...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added action_mark_as_read field on config table. */ class Version20161106113822 extends WallabagMigration { public function up(Schema $schema): void { $configTable =...
fim
wallabag/wallabag
php
<|fim_suffix|>is migration.'); } public function down(Schema $schema): void { $this->addSql('DELETE FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'share_unmark';"); $this->addSql('DELETE FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'unmark_url';"); ...
fim
wallabag/wallabag
php
<|fim_suffix|> => false, ]); } public function down(Schema $schema): void { $entryTable = $schema->getTable($this->getTable('entry')); $this->skipIf(!$entryTable->hasColumn('http_status'), 'It seems that you already played this migration.'); $entryTable->dropColumn('http_s...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add the restricted_access internal setting for articles with paywall. */ class Version20161122144743 extends WallabagMigration { public function up(Schema $schema): void { ...
fim
wallabag/wallabag
php
<|fim_suffix|>red') || true === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.'); $userTable->addColumn('expired', 'smallint', ['notnull' => false]); $userTable->addColumn('credentials_expired', 'smallint', ['notnull' => false]); } } <|fim_prefix|><?...
fim
wallabag/wallabag
php
<|fim_suffix|>($this->getTable('config')); $configTable->dropColumn('list_mode'); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added list_mode in user config. */ class Version20161128084725 e<|fim_middle|>xtend...
fim
wallabag/wallabag
php
<|fim_suffix|>s->fields as $field => $type) { $this->skipIf(!$userTable->hasColumn($field), 'It seems that you already played this migration.'); $userTable->dropColumn($field); } } public function down(Schema $schema): void { $userTable = $schema->getTable($this->get...
fim
wallabag/wallabag
php
<|fim_suffix|>IMARY KEY(id));'); $this->addSql('INSERT INTO ' . $this->getTable('entry') . ' (id, user_id, uid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public) SELECT id, user_id, uuid, title, url, is_archiv...
fim
wallabag/wallabag
php
<|fim_suffix|> } public function down(Schema $schema): void { $entryTable = $schema->getTable($this->getTable('entry')); $this->skipIf(false === $entryTable->hasIndex($this->indexName), 'It seems that you already played this migration.'); $entryTable->dropIndex($this->indexName); ...
fim
wallabag/wallabag
php
<|fim_suffix|> migration.'); $entryTable->addIndex(['is_starred'], $this->indexStarredName); $entryTable->addIndex(['is_archived'], $this->indexArchivedName); } public function down(Schema $schema): void { $entryTable = $schema->getTable($this->getTable('entry')); $this->sk...
fim
wallabag/wallabag
php
<|fim_suffix|>nfig_setting') . " WHERE name = 'share_scuttle';"); $this->addSql('DELETE FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'scuttle_url';"); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /...
fim
wallabag/wallabag
php
<|fim_suffix|>at', 'datetime', [ 'notnull' => false, ]); $this->skipIf($entryTable->hasColumn('published_by'), 'It seems that you already played this migration.'); $entryTable->addColumn('published_by', 'text', [ 'notnull' => false, ]); } public functio...
fim
wallabag/wallabag
php
<|fim_suffix|> played this migration.'); $entryTable->addColumn('is_public', 'boolean', ['notnull' => false, 'default' => 0]); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Remove isPublic in Entry Table. */ cl...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Remove download_pictures in craue_config_setting. */ class Version20170420134133 extends WallabagMigration { public function up(Schema $schema): void { $this->addSql('DELETE FROM ...
fim
wallabag/wallabag
php
<|fim_suffix|> PostgreSQLPlatform) { $schema->dropSequence('site_credential_id_seq'); $schema->createSequence('site_credential_id_seq'); } } public function down(Schema $schema): void { $schema->dropTable($this->getTable('site_credential')); } } <|fim_prefix|><?p...
fim
wallabag/wallabag
php
<|fim_suffix|>is->getTable('user') . ' CHANGE ' . $field . ' ' . $field . ' VARCHAR(255) NOT NULL;'); } } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Changed length for ...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added `headers` field in entry table. */ class Version20170511115400 extends WallabagMigration { public function up(Schema $schema): void { $entryTable = $schema->getTable($this->...
fim
wallabag/wallabag
php
<|fim_suffix|> $platform = $this->connection->getDatabasePlatform(); switch (true) { case $platform instanceof SqlitePlatform: throw new SkipMigration('Too complex ...'); break; case $platform instanceof MySQLPlatform: $this->addS...
fim
wallabag/wallabag
php
<|fim_suffix|>ma): void { $this->addSql('DELETE FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'api_user_registration';"); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema<|fim_middle|>; use Wallabag\Doctrine\WallabagMigration; /** * Add ap...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; <|fim_suffix|>ved into the parameters.yml. */ class Version20170606155640 extends WallabagMigration { public function up(Schema $schema): void { if (!$schema->hasTable($this->getTable('craue_config_setting'))) { $this->write('Table alre...
fim
wallabag/wallabag
php
<|fim_suffix|>is->getTable('tag') . ' WHERE id IN (' . implode(',', $ids) . ')' ); } } // Iterate over all tags to lowercase them $this->addSql(' UPDATE ' . $this->getTable('tag') . ' SET label = LOWER(label)' ); ...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add starred_at column and set its value to updated_at for is_starred entries. */ class Version20170824113337 extends WallabagMigration { public function up(Schema $schema): void { ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Changed reading_time field to prevent null valu...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add origin_url column. */ class Version20171105202000 extends WallabagMigration { public function up(Schema $schema): void { $entryTable = $schema-><|fim_suffix|> ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add store_article_headers in craue_config_setting. */ class Version20171120163128 extends WallabagMigration { public function up(Schema $schema): void { $storeArticl...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add shaarli_share_origin_url in craue_config_setting. */ class Version20171125164500 extends WallabagMigration { public function up(Schema $schema): void { $shaarliS...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add archived_at column and set its value to updated_at for is_archived entries. */ class Version20180405182455 extends WallabagMigration { public function up(Schema $schema): vo...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Fix varchar field from vendor to work with utf8mb4. */ class Version20181128203230 extends WallabagMigration { public function up(Sche...
fim
wallabag/wallabag
php
<|fim_suffix|>EXT DEFAULT NULL'); $this->addSql('ALTER TABLE `' . $this->getTable('user') . '` DROP backupCodes'); break; case $platform instanceof PostgreSQLPlatform: $this->addSql('ALTER TABLE ' . $this->getTable('user') . ' DROP googleAuthenticatorSecret');...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add updated_at fields to site_credential table. */ final class Version20190117131816 extends WallabagMigration { public function up(Schema $schema): void { $siteCredentialTable = ...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add missing entries in craue_config_setting. */ final class Version20190129120000 extends WallabagMigration { private $settings = [ [ 'name' => 'carrot', 'valu...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL<|fim_suffix|>53 extends WallabagMigration { public function up(Schema $schema): void { $entryTable = $schema->getTable($this->getTable('entry')); $this->skipIf($entryTable->hasColumn('hashed_url'), 'It seems that you alre...
fim
wallabag/wallabag
php
<|fim_suffix|>RARY TABLE __temp__' . $this->getTable('config', true) . ' AS SELECT id, user_id, theme, items_per_page, language, rss_token, rss_limit, reading_speed, pocket_consumer_key, action_mark_as_read, list_mode FROM ' . $this->getTable('config', true)); $this->addSql('DROP TABLE ' . $this->getTab...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\Exception\SkipMigration; use Wallabag\Doctrine\WallabagMigration; /** ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigratio<|fim_suffix|>is->connection->getDatabasePlatform() instanceof MySQLPlatform) { $this->write('This migration only apply to MySQL'); ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added `given_url` & `hashed_given_url` field in entry table. */ class Version20190601125843 extends WallabagMigration { public function up(Schema $schema): void { $e...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Change reading_time field on SQLite to be integer NOT NULL * It was forgotten in a previous migration (Version20171008195606.php). */ fi...
fim
wallabag/wallabag
php
<|fim_suffix|>peed/200'); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Change reading speed value. */ final class Version20190708122957 extends WallabagMigration { public function up(Schema $schema): void { ...
fim
wallabag/wallabag
php
<|fim_suffix|> $this->addSql('DROP INDEX tag_label ON ' . $this->getTable('tag')); $this->addSql('DROP INDEX config_feed_token ON ' . $this->getTable('config')); break; case $platform instanceof PostgreSQLPlatform: $this->addSql('ALTER TABLE ' . $this->getTabl...
fim
wallabag/wallabag
php
<|fim_suffix|>->addSql('ALTER TABLE ' . $this->getTable('internal_setting') . ' RENAME TO ' . $this->getTable('craue_config_setting')); break; } } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatfo...
fim
wallabag/wallabag
php
<|fim_suffix|> } } public function postUp(Schema $schema): void { foreach ($this->defaultIgnoreOriginInstanceRules as $entity) { $previous_rule = $this->connection ->fetchOne('SELECT * FROM ' . $this->getTable('ignore_origin_instance_rule') . " WHERE rule = '" . $entity...
fim
wallabag/wallabag
php
<|fim_suffix|>ublic function down(Schema $schema): void { throw new SkipMigration('Not possible ... '); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\Exception\SkipMigration; use Wallabag\Doctrine\WallabagMigration; /** * Remove ba...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Renamed Piwik to Matomo in configuration. */ final class Version20200428072628 extends WallabagMigration { public function up(Schema $schema): void { $this->addSql('...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Drop theme fields from config table. */ final class Vers<|fim_suffix|> public function up(Schema $schema): void { $configTable = $schema->getTable($this->getTable('con...
fim
wallabag/wallabag
php
<|fim_suffix|>upCodes, emailTwoFactor) SELECT id, username, username_canonical, email, email_canonical, enabled, salt, password, last_login, confirmation_token, password_requested_at, roles, name, created_at, updated_at, authCode, googleAuthenticatorSecret, backupCodes, emailTwoFactor FROM __temp__wallabag_user'); ...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Applicatio<|fim_suffix|>s; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added a new setting to display or not thumbnails. */ final class Version20230613121354 extends WallabagMigration { public function up(Schema $schema): void { $con...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use <|fim_suffix|>octrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Remove demonstration mode settings. */ final class Version20230728085538 extends WallabagMigration { public function up(Schema $schema): void { $this->a...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Remove mobi expor<|fim_suffix|> public function up(Schema $schema): void { $this->addSql('DELETE FROM' . $this->getTable('internal_setting') . " WHERE name = 'export_mo...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add is_not_parsed field to entry table. */ final class Version20230728093912 extends WallabagMigration { public function up(Schema $schema): void { $entryTable = $sc...
fim
wallabag/wallabag
php
<|fim_suffix|>etTable('config')); $configTable->dropColumn('custom_css'); } } <|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Add custom_css column to config table. */ final class Version20230729093853 extends Wallaba...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Platforms\MySQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; final class Version20240310150000 extends WallabagMigr...
fim
wallabag/wallabag
php
<|fim_prefix|><?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added the internal setting to share articles to linkding. */ final class Version20240521152037 extends WallabagMigration { public function up(Schema $schema): void { ...
fim
wallabag/wallabag
php
<?php namespace Application\Migrations; use Doctrine\DBAL\Schema\Schema; use Wallabag\Doctrine\WallabagMigration; /** * Added the internal setting to export articles in markdown. */ final class Version20241112193044 extends WallabagMigration { public function up(Schema $schema): void { $this->addSq...
fim
wallabag/wallabag
php
<|fim_suffix|> 'googleAuthenticator' => true, 'emptyString' => '', ] ); } public function down(Schema $schema): void { $userTable = $schema->getTable($this->getTable('user')); $userTable->dropColumn('google_authenticator'); } } <|fim_prefi...
fim
wallabag/wallabag
php
<|fim_suffix|>ugins: { autoprefixer: {}, }, }; <|fim_prefix|>module.exports = { p<|fim_middle|>l<|endoftext|>
fim
wallabag/wallabag
javascript
<|fim_prefix|><?php use Rector\Config\RectorConfig; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; return RectorConfig::configure() ->withPaths([ __DIR__ . '/app', __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/web', ]) ->withRootFiles() ...
fim
wallabag/wallabag
php
<|fim_suffix|> foreach ($existingPaths as $existingPath) { if (!\in_array($existingPath, $validPaths, true)) { $fullPath = $baseFolder . '/' . $existingPath[0] . '/' . $existingPath[1] . '/' . $existingPath; $files = glob($fullPath . '/*.*'); if (!$dryRu...
fim
wallabag/wallabag
php
<|fim_suffix|>nfo>%s</info>', $user->getUsername())); $this->cleanDuplicates($user); } $this->io->success(\sprintf('Finished cleaning. %d duplicates found in total', $this->duplicates)); } return 0; } private function cleanDuplicates(User $user): void ...
fim
wallabag/wallabag
php
<|fim_suffix|>xport, private readonly string $projectDir, ) { parent::__construct(); } protected function configure(): void { $this ->setHelp('This command helps you to export all entries for an user') ->addArgument( 'username', ...
fim
wallabag/wallabag
php
<|fim_suffix|> "%d" users', \count($users))); foreach ($users as $user) { $output->writeln(\sprintf('Processing user: %s', $user->getUsername())); $this->generateHashedUrls($user); } $output->writeln('Finished generated hashed urls'); } ...
fim
wallabag/wallabag
php
<|fim_suffix|>oken($token); $user = $this->tokenStorage->getToken()->getUser(); \assert($user instanceof User); $import = match ($input->getOption('importer')) { 'v2' => $this->wallabagV2Import, 'firefox' => $this->firefoxImport, 'chrome' => $this->chromeImpo...
fim
wallabag/wallabag
php