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

Bump faker from 2.14.0 to 2.17.0 #235

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -119,7 +119,7 @@ end
group :test do
gem 'capybara', '~> 3.33'
gem 'climate_control', '~> 0.2'
gem 'faker', '~> 2.14'
gem 'faker', '~> 2.17'
gem 'microformats', '~> 4.2'
gem 'rails-controller-testing', '~> 1.0'
gem 'rspec-sidekiq', '~> 3.1'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Expand Up @@ -209,7 +209,7 @@ GEM
tzinfo
excon (0.76.0)
fabrication (2.21.1)
faker (2.14.0)
faker (2.17.0)
i18n (>= 1.6, < 2)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
Expand Down Expand Up @@ -271,7 +271,7 @@ GEM
httplog (1.4.3)
rack (>= 1.0)
rainbow (>= 2.0.0)
i18n (1.8.5)
i18n (1.8.9)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.31)
activesupport (>= 4.0.2)
Expand Down Expand Up @@ -712,7 +712,7 @@ DEPENDENCIES
dotenv-rails (~> 2.7)
ed25519 (~> 1.2)
fabrication (~> 2.21)
faker (~> 2.14)
faker (~> 2.17)
fast_blank (~> 1.0)
fastimage
fog-core (<= 2.1.0)
Expand Down
6 changes: 4 additions & 2 deletions app/controllers/about_controller.rb
Expand Up @@ -8,10 +8,10 @@ class AboutController < ApplicationController
before_action :require_open_federation!, only: [:show, :more]
before_action :set_body_classes, only: :show
before_action :set_instance_presenter
before_action :set_expires_in, only: [:more, :terms]
before_action :set_expires_in, only: [:more, :terms, :migrar]
before_action :set_registration_form_time, only: :show

skip_before_action :require_functional!, only: [:more, :terms]
skip_before_action :require_functional!, only: [:more, :terms, :migrar]

def show; end

Expand All @@ -27,6 +27,8 @@ def more

def terms; end

def migrar; end

helper_method :display_blocks?
helper_method :display_blocks_rationale?
helper_method :public_fetch_mode?
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/javascript/styles/application.scss
Expand Up @@ -26,3 +26,5 @@
@import 'mastodon/dashboard';
@import 'mastodon/rtl';
@import 'mastodon/accessibility';

@import 'mastodon-com-br/migrar';
15 changes: 15 additions & 0 deletions app/javascript/styles/mastodon-com-br/migrar.scss
@@ -0,0 +1,15 @@
.mastodon-com-br-migrar-root {
overflow-x: hidden;
}

.mastodon-com-br-screenshot {
width: intrinsic;
width: -moz-max-content;
width: -webkit-max-content;
width: max-content;

> img {
width: 50%;
border: 10px solid #191b22;
}
}
75 changes: 75 additions & 0 deletions app/views/about/migrar.html.haml
@@ -0,0 +1,75 @@
- content_for :page_title do
= site_hostname

.content
.box-widget.mastodon-com-br-migrar-root
.rich-formatting
%h2 Migrando de uma instância para outra
%p Este é o passo-a-passo de como migrar sua conta no mastodon de uma instância para outra. Você pode migrar tudo (seguidores, seguidos, silenciados e bloqueados) exceto seus toots e mídia, você pode exportá-los mas não pode importá-los na nova instância.
%p Primeiro de tudo, para migrar de uma instância para outra, você deve fazer uma nova conta na instância para a qual você quer mudar, então siga os passos abaixo:

%ol
%li
%p <strong>Na nova instância</strong> vá em <code>Preferências</code> > <code>Conta</code> > <code>Configurações da conta</code>
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_1.png'), alt: ''
%p Role a página, e em <code>Migrando de outra conta</code>, clique em <code>Criar um alias</code>
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_2.png'), alt: ''

%li
%p Coloque o seu nome de usuário da instância que você está saindo (você encontra ele logo abaixo da sua foto no seu perfil)
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_3.png'), alt: ''

%li
%p <strong>Na instância antiga</strong> faça <strong>backup</strong> dos seus dados em <code>Preferências</code> > <code>Importar e exportar</code> > <code>Exportar dados</code>
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_4.png'), alt: ''
%p Salve cada um dos arquivos disponíveis (não é possível salvar toots e seguidores nesse formato)
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_5.png'), alt: ''

%li
%p Em seguida <strong>importe</strong> esses aquivos <strong>na nova instância</strong> em <code>Preferências</code> > <code>Importar e exportar</code> > <code>Importar</code>
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_6a.png'), alt: ''
%p Selecione o tipo de arquivo no menu <code>Tipo de importação</code>.
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_6.png'), alt: ''
%p Escolha o arquivo a ser importado e então selecione se você quer <code>Juntar</code> ou <code>Sobrescrever</code> o arquivo existente.
%p Ao <code>Juntar</code> você <strong>adiciona</strong> o que tinha na instância antiga com o que tem na nova.
%p Ao <code>Sobrescrever</code> você <strong>apaga</strong> o que tem na nova e mantém <strong>apenas</strong> o que estava na antiga.
%p Clique <code>Enviar</code>.
%p Repita o procedimento para cada arquivo:
%ul
%li Pessoas que você segue: <code>following_accounts.csv</code>
%li Lista de bloqueio: <code>blocked_accounts.csv</code>
%li Lista de silenciados: <code>muted_accounts.csv</code>
%li Lista de dominios bloqueados: <code>blocked_domains.csv</code>

%li
%p Agora voltando para <strong>a instância antiga</strong>, vá em <code>Preferências</code> > <code>Conta</code> > <code>Configurações da conta</code>
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_1.png'), alt: ''
%p Role a página e em <code>Mudar-se para outra conta</code>, clique em <code>configurar isso aqui</code>.
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_7.png'), alt: ''

%li
%p Coloque seu nome de usuário <strong>da nova instância</strong> e clique em <code>Migrar seguidores</code>.
%p
%figure.mastodon-com-br-screenshot
= image_tag full_pack_url('media/images/mastodon_com_br/migrate_8.png'), alt: ''
%p Existe a possibilidade deste último passo não funcionar, pois a instância antiga ainda não sabe da existência do alias da nova, caso aconteça tente novamente mais tarde.

%p Pronto! Você migrou para uma nova instância!
2 changes: 1 addition & 1 deletion config/locales/simple_form.pt-BR.yml
Expand Up @@ -64,7 +64,7 @@ pt-BR:
imports:
data: Arquivo CSV exportado de outra instância Mastodon
invite_request:
text: Isso vai nos ajudar a revisar sua aplicação
text: Como você soube desta instância? Você leu e concorda com nossas regras? Você entende que nos importamos mais com ter pessoas que não perpetuam discriminações do que com ter uma grande quantidade de registros? Você poderia se apresentar? Quanto mais detalhes você der, maior a chance de você ser aceite.
ip_block:
comment: Opcional. Lembrar de por que você adicionou esta regra.
expires_in: Endereços IP são um recurso limitado, algumas vezes são compartilhados e muitas vezes mudam de mãos. Por esse motivo, blocos de IP indefinidos não são recomendados.
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Expand Up @@ -519,6 +519,7 @@

get '/about', to: 'about#show'
get '/about/more', to: 'about#more'
get '/about/migrar', to: 'about#migrar'
get '/terms', to: 'about#terms'

match '/', via: [:post, :put, :patch, :delete], to: 'application#raise_not_found', format: false
Expand Down
Binary file modified public/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.