mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
201 lines
8.1 KiB
201 lines
8.1 KiB
<template> |
|
<section class="section container"> |
|
<div class="box"> |
|
<div class="box"> |
|
<h3 class="title is-3"> |
|
Connected social accounts (work in progress) |
|
</h3> |
|
<section v-if="isConnectedSocialAccount('facebook')" class=""> |
|
<button class="button"> |
|
facebook |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('google')" class=""> |
|
<button class="button"> |
|
google |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('twitter')" class=""> |
|
<button class="button"> |
|
twitter |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('linkedin')" class=""> |
|
<button class="button"> |
|
linkedin |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('paypal')" class=""> |
|
<button class="button"> |
|
paypal |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('github')" class=""> |
|
<button class="button"> |
|
github |
|
</button> |
|
</section> |
|
</div> |
|
<div class="box"> |
|
<h3 class="title is-3"> |
|
Unconnected social accounts (work in progress) |
|
</h3> |
|
<section v-if="isConnectedSocialAccount('facebook')" class=""> |
|
<button class="button"> |
|
facebook |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('google')" class=""> |
|
<button class="button"> |
|
google |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('twitter')" class=""> |
|
<button class="button"> |
|
twitter |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('linkedin')" class=""> |
|
<button class="button"> |
|
linkedin |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('paypal')" class=""> |
|
<button class="button"> |
|
paypal |
|
</button> |
|
</section> |
|
<section v-if="isConnectedSocialAccount('github')" class=""> |
|
<button class="button"> |
|
github |
|
</button> |
|
</section> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
<!--<div align="center">--> |
|
|
|
<!--<!–<h1>user.accounts</h1>–>--> |
|
<!--<!–<section class="row">–>--> |
|
<!--<!–<h3 class="col-md-12 text-center" ng-show="hasConnectedAdditionalSocialAccounts()">Connected social accounts:</h3>–>--> |
|
<!--<!–<div class="col-md-12 text-center">–>--> |
|
<!--<!–<!–<div ng-repeat="(providerName, providerData) in user.additionalProvidersData" class="social-account-container">–>–>--> |
|
<!--<!–<!–<!–<img ng-src="/modules/users/client/img/buttons/{{providerName}}.png">–>–>–>--> |
|
<!--<!–<!–<a class="btn btn-danger btn-raised btn-remove-account" ng-click="removeUserSocialAccount(providerName)">–>–>--> |
|
<!--<!–<!–<i class="glyphicon glyphicon-trash"></i>–>–>--> |
|
<!--<!–<!–</a>–>–>--> |
|
<!--<!–<!–</div>–>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<h3 class="col-md-12 text-center" ng-show="hasConnectedAdditionalSocialAccounts()">–>--> |
|
<!--<!–Unconnected social accounts:</h3>–>--> |
|
<!--<!–<div class="col-md-12 text-center">–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('facebook')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/facebook.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/facebook" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">Facebook</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('twitter')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/twitter.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/twitter" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">twitter</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('google')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/google.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/google" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">google</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('linkedin')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/linkedin.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/linkedin" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">linkedin</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('github')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/github.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/github" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">github</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–<div class="social-account-container" ng-hide="isConnectedSocialAccount('paypal')">–>--> |
|
<!--<!–<!–<img ng-src="/modules/users/client/img/buttons/paypal.png">–>–>--> |
|
<!--<!–<a class="btn btn-success btn-raised btn-remove-account" href="/api/auth/paypal" target="_self">–>--> |
|
<!--<!–<i class="glyphicon glyphicon-plus">paypal</i>–>--> |
|
<!--<!–</a>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–</div>–>--> |
|
<!--<!–</section>–>--> |
|
|
|
<!--</div>--> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
directives: {}, |
|
components: {}, |
|
validate({ params }) { |
|
return true |
|
}, |
|
props: {}, |
|
data() { |
|
return {} |
|
}, |
|
head() { |
|
return {} |
|
}, |
|
computed: {}, |
|
watch: {}, |
|
created() { |
|
}, |
|
mounted() { |
|
}, |
|
beforeDestroy() { |
|
}, |
|
methods: { |
|
hasConnectedAdditionalSocialAccounts() { |
|
|
|
}, |
|
removeUserSocialAccount() { |
|
|
|
}, |
|
isConnectedSocialAccount(social) { |
|
return true |
|
} |
|
}, |
|
beforeCreated() { |
|
}, |
|
destroy() { |
|
} |
|
} |
|
</script> |
|
|
|
<style scoped> |
|
|
|
</style> |
|
<!-- |
|
/** |
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd |
|
* |
|
* @author Naveen MR <oof1lab@gmail.com> |
|
* @author Pranav C Balan <pranavxc@gmail.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/>. |
|
* |
|
*/ |
|
-->
|
|
|