Skip to content

Commit

Permalink
Merge pull request #519 from brmodeloweb/github-sponsor-visibility-boost
Browse files Browse the repository at this point in the history
GitHub sponsor visibility boost
  • Loading branch information
idmarjr authored Apr 23, 2024
2 parents 6350c03 + efa2183 commit 00cbd4e
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 4 deletions.
9 changes: 9 additions & 0 deletions app/angular/components/githubSponsorBanner/index.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions app/angular/components/githubSponsorBanner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import angular from "angular";
import template from "./index.html";
import "./index.scss";

const githubSponsorBanner = function () {};

export default angular.module("app.githubSponsorBanner", []).component("githubSponsorBanner", {
template,
controller: githubSponsorBanner,
}).name;
13 changes: 13 additions & 0 deletions app/angular/components/githubSponsorBanner/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
////////////////////////////////////////////////////////////////////////////////
// .alert-sponsor
////////////////////////////////////////////////////////////////////////////////
.github-sponsor-banner {
display: flex;
gap: 10px;
border: 1px solid #ddd;
margin-top: 24px;
}

.github-sponsor-banner .github-sponsor-img {
width: 128px;
}
2 changes: 1 addition & 1 deletion app/angular/publicview/publicView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// .publicView
////////////////////////////////////////////////////////////////////////////////
.publicView > .navbar {
height: 54px;
height: 55px;
background-color: #fff;
}

Expand Down
6 changes: 5 additions & 1 deletion app/angular/workspace/workspace.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2 class="h2 pull-left">{{ 'Models' | translate }}</h2>
</header><!-- End .container -->

<div class="container projectsList">
<img
<img
src="../../img/loading-dots.gif"
alt="Loading"
class="br-loader"
Expand Down Expand Up @@ -79,6 +79,10 @@ <h2 class="h2 pull-left">{{ 'Models' | translate }}</h2>
</div><!-- End .table-responsive -->
</div><!-- End .container.projectsList -->

<div class="container">
<github-sponsor-banner></github-sponsor-banner>
</div>

<bug-report-button></bug-report-button>

</section><!-- End .mainContent -->
Expand Down
2 changes: 2 additions & 0 deletions app/angular/workspace/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import modelDuplicatorComponent from "../components/duplicateModelModal";
import modelDeleterComponent from "../components/deleteModelModal";
import modelRenameComponent from "../components/renameModelModal";
import bugReportButton from "../components/bugReportButton";
import githubSponsorBanner from "../components/githubSponsorBanner";
import shareModelModal from "../components/shareModelModal";
import iconConceptual from "../components/icons/conceptual";
import iconLogic from "../components/icons/logic";
Expand Down Expand Up @@ -206,6 +207,7 @@ export default angular
modelDeleterComponent,
modelRenameComponent,
bugReportButton,
githubSponsorBanner,
shareModelModal,
iconConceptual,
iconLogic
Expand Down
7 changes: 6 additions & 1 deletion app/i18n/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ export default {
'Looks like this model does not exist or you don\'t have access to it.': 'Looks like this model does not exist or you don\'t have access to it.',
'Back to models list': 'Back to models list',
'Copy is not allowed on this module when element has references.': 'Copy is not allowed on this module when element has references.',
'Share':'Share',
'Please consider make a donation': 'Please consider make a donation',
'BRMW is maintained by a small team working in their spare time, doing their best to make it available for free!': 'BRMW is maintained by a small team working in their spare time, doing their best to make it available for free.',
'Still, the server and database to keep the project live cost money.': 'Still, the server and database to keep the project live cost money.',
'If you can, please considere a one time only or even monthly contribution via Github Sponsor.': 'If you can, please considere a one time only or even monthly contribution via Github Sponsor.',
'Go to Github Sponsors': 'Go to Github Sponsors',
'Share model':'Share model',
'Create public link':'Create public link',
'Make model public': 'Make model public',
'URL': 'URL',
Expand Down
7 changes: 6 additions & 1 deletion app/i18n/languages/pt_BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ export default {
'Looks like this model does not exist or you don\'t have access to it.': 'Parece que este modelo não existe ou você não tem acesso a ele.',
'Back to models list': 'Voltar à lista de modelos',
'Copy is not allowed on this module when element has references.': 'Copiar não é permitido nesse módulo quando elementos já estiverem conectados.',
'Share': 'Compartilhar',
'Please consider make a donation': 'Considere doar para o projeto',
'BRMW is maintained by a small team working in their spare time, doing their best to make it available for free!': 'O BRMW é mantido por uma pequena equipe que trabalha nas horas vagas, fazendo o possível para disponibilizá-lo gratuitamente.',
'Still, the server and database to keep the project live cost money.': 'Ainda assim, o servidor e bancos de dados para manter o projeto ativo custam dinheiro.',
'If you can, please considere a one time only or even monthly contribution via Github Sponsor.': 'Se puder, considere uma contribuição única ou mesmo mensal por meio do Github Sponsors.',
'Go to Github Sponsors': 'Ir para o Github Sponsors',
'Share model': 'Compartilhar modelo',
'Create public link': 'Criar link público',
'Make model public': 'Tornar modelo público',
'URL': 'URL',
Expand Down

0 comments on commit 00cbd4e

Please sign in to comment.