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

chore(signup): remove invite code from sign up form #722

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 0 additions & 22 deletions src/components/Cards/CreateAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
<v-toolbar-title>{{title}}</v-toolbar-title>
</v-toolbar>
<v-card-text>
<p>
Wikibase.cloud is in a closed beta. If you'd like to receive an invite code,
<a href="https://lime.wikimedia.de/index.php/717538" style="text-decoration: none">
sign up for early access.
</a>
</p>
<v-text-field
id="inputInvite"
prepend-icon="mdi-key"
name="invite"
label="Invite code"
v-model="invite"
:disabled="inFlight"
:error-messages="error['inputInvite']"
/>
<v-text-field
id="inputEmail"
prepend-icon="mdi-email"
Expand Down Expand Up @@ -114,7 +99,6 @@ export default {
},
data () {
return {
invite: '',
email: '',
password: '',
passwordConfirmation: '',
Expand All @@ -139,7 +123,6 @@ export default {
error = error || 'Something went wrong'
this.resetErrorState()
this.hasError = true
this.error.inputInvite = error
this.error.inputEmail = error
this.error.inputPassword = error
this.error.inputPasswordConfirmation = error
Expand Down Expand Up @@ -182,7 +165,6 @@ export default {
{
email: this.email,
password: this.password,
invite: this.invite,
recaptcha: token
})
.then(success => this.createSuccessful(success))
Expand All @@ -191,10 +173,6 @@ export default {

// If the api gave use details of the error, then use them
if (errors) {
if (errors.invite) {
this.hasError = true
this.error.inputInvite = errors.invite[0]
}
if (errors.email) {
this.hasError = true
this.error.inputEmail = errors.email[0]
Expand Down
8 changes: 4 additions & 4 deletions src/components/Pages/Home/Home.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div>
<h2>Make your structured data available in our cloud</h2>
<p>If you've wanted to run your own Wikibase but don't have the infrastructure and support you'd need, Wikibase.cloud is for you. You provide the data – we provide a full-fledged and fully managed Wikibase. </p>
<h3>Coming soon</h3>
<p>Wikibase.cloud is in a closed beta. If you're interested in a Wikibase.cloud instance, sign up for early access <a href="https://lime.wikimedia.de/index.php/717538">here</a>. While you wait, consider joining the Wikibase community <a href="https://lists.wikimedia.org/postorius/lists/wikibase-cloud.lists.wikimedia.org/">mailing list</a>.</p>
<h2>Your own Wikibase in five minutes</h2>
<p>Try out Wikibase easily and quickly, or host your Wikibase with no need for your own infrastructure. Wikibase Cloud offers a complete install of Wikibase and its services within a few minutes of signup.</p>

<p>In a nutshell, Wikibase transforms data into meaningful knowledge. It offers a collaborative space for individuals and groups to contribute, edit, and curate information in a structured way. So, whether you're an archivist, a researcher, a business owner or the author of another data-rich project, Wikibase opens the doors to efficient data management, sharing, and discovery, all while fostering collaboration in a user-friendly environment.</p>

<h3>Still have questions?</h3>
<p>Drop us a line using our <router-link to="/contact">contact form</router-link>. Now is also a great time to get involved in the <a href="https://meta.wikimedia.org/wiki/Wikibase_Community_User_Group">Wikibase community</a>. </p>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Home from '@/components/Pages/Home/Home.vue'

describe('Home.vue', () => {
it('renders some text', () => {
const msg = 'Make your structured data available in our cloud'
const msg = 'Your own Wikibase in five minutes'
const wrapper = shallowMount(Home)
expect(wrapper.text()).toMatch(msg)
})
Expand Down
Loading