My SMM panel
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

36 líneas
1.0 KiB

  1. <template>
  2. <sidebar :active="active"></sidebar>
  3. <transition name="fade" mode="out-in">
  4. <div v-if="active === ''" id="main">
  5. <section class="welcome-pane"><h3>Welcome, user!</h3></section>
  6. <section class="credits-pane"><img src="../../images/wallet2.svg" alt="wallet" class="icon"/><p>Credits: ${{credits}}</p></section>
  7. <section class="alerts-pane"><h4>News and Announcements</h4>
  8. <p>We've just launched. Thanks for joining us.</p>
  9. </section>
  10. <section class="recent-pane"><h4>Recent Activity</h4>Recent activity showing last 5 completed orders </section>
  11. </div>
  12. <div v-else-if="active === '#orders'" id="main">
  13. <div class="actions"><a href="#orders/new">New</a></div>
  14. <section class="pending-pane">
  15. <h4>Pending Orders</h4>
  16. </section>
  17. </div>
  18. </transition>
  19. </template>
  20. <script>
  21. import Sidebar from './sidebar.vue'
  22. /* let token = RegExp('XSRF-TOKEN=([^;]+)').exec(document.cookie) */
  23. /* console.log(token) */
  24. export default {
  25. components: {
  26. Sidebar,
  27. },
  28. data() {
  29. return {active: window.location.hash, credits: 0, }
  30. },
  31. }
  32. </script>