Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template lang='pug'>
  2. .icoThings
  3.   .icoThings-container
  4.     .icoThings-positioner
  5.       //- img(style="max-width: 220px" src="../assets/agoraLogo.png")
  6.       img.noselect(style="transform: rotate(180deg); max-width: 100%" src="~@/assets/logo.png" title="yes, this is the vue logo upside down")
  7.       .intro-text-container
  8.         .intro-text Welcome
  9.           //- .inline {{ siteTitle }}
  10.           //- .capitalize.inline Agora
  11.       .inventories-container.vertical
  12.         thing(
  13.           :thing=`"5a4e3eb47c0fdc593d0992ea"`
  14.           )
  15.         //- thing(
  16.           :thing=`{
  17.             title: 'An organizational planner for alopu',
  18.             description: 'This is the work status of alopu',
  19.             name: ['a lopu asana themed work planner'],
  20.             properties: [
  21.               {
  22.                 title: 'options',
  23.                 names: ['property'],
  24.                 'Array of Strings': [
  25.                   'show inventory',
  26.                   'hide description'
  27.                 ],
  28.                 type: 'Array of Strings',
  29.               },
  30.               {
  31.                 title: 'things schema',
  32.                 properties: [
  33.                   {
  34.                     title: 'properties',
  35.                     type: 'Array',
  36.                     Array: [
  37.                       {
  38.                         title: 'css',
  39.                         json: {
  40.                           'max-width':'200px',
  41.                           'width':'100%'
  42.                         },
  43.                         type: 'Thing'
  44.                       },
  45.                       {
  46.                         title: 'options',
  47.                         'Array of Strings': [
  48.                           'show title',
  49.                           'hide description',
  50.                           'show inventory',
  51.                           'feed',
  52.                           'ignore client option icon'
  53.                         ],
  54.                         type: 'Array of Strings',
  55.                         properties: [
  56.                           {
  57.                             title: 'overwrite',
  58.                             boolean: true,
  59.                             type: 'Boolean'
  60.                           }
  61.                         ]
  62.                       },
  63.                       {
  64.                         names: ['a lopu client option'],
  65.                         title: 'things limit',
  66.                         Number: 25,
  67.                         type: 'Number',
  68.                       },
  69.                       {
  70.                         title: 'things schema',
  71.                         Thing: {
  72.                           properties: [
  73.                             {
  74.                               title: 'options',
  75.                               Array: [
  76.                                
  77.                               ],
  78.                               type: 'Array',
  79.                               properties: [
  80.                                 {
  81.                                   title: 'overwrite',
  82.                                   boolean: true,
  83.                                   type: 'Boolean'
  84.                                 }
  85.                               ]
  86.                             }
  87.                           ]
  88.                         },
  89.                         type: 'Thing'
  90.                       }
  91.                     ]
  92.                   }
  93.                 ]
  94.               }
  95.             ],
  96.             things: [
  97.               {
  98.                 title: 'ideas'
  99.               },
  100.               {
  101.                 title: 'working on'
  102.               },
  103.               {
  104.                 title: 'needs debugging'
  105.               },
  106.               {
  107.                 title: 'done'
  108.               },
  109.             ]
  110.           }`)
  111.        
  112.        
  113. </template>
  114.  
  115. <script>
  116. export default {
  117.   name: 'icoThings-comp',
  118.   data () {
  119.     return {
  120.       entity: this.$store.state.entity,
  121.       uuid: this._uid
  122.     }
  123.   },
  124.   sockets: {
  125.     connect: function(){
  126.       // console.log("socket connect vue side")
  127.     },
  128.     // giveObjects(data){
  129.     //   // console.log(data)
  130.     //   if(this.uuid == data.id){
  131.     //     this.objects = data.objects
  132.     //   }
  133.     // }
  134.   },
  135.   created () {
  136.     // if(this.count !== 0){
  137.     //   this.getObjects({
  138.     //     count: this.count,
  139.     //     sort: 'alphabetical',
  140.     //     sortDirection: 'ascending',
  141.     //     id: this.uuid
  142.     //   })
  143.     // } else {
  144.     //   this.objects = null
  145.     // }
  146.   },
  147.   methods: {
  148.     // getObjects(opts){
  149.     //   this.$socket.emit('getObjects', opts)
  150.     // }
  151.   },
  152.   props: {
  153.     "siteTitle": {}
  154.   },
  155.   components: {
  156.   },
  157.   watch: {
  158.     // '$store.state.entity': function(){
  159.     //   this.entity = this.$store.state.entity
  160.     // },
  161.   },  
  162.   route: {
  163.     canActivate(){
  164.       return true
  165.     }
  166.   }}
  167. </script>
  168.  
  169. <!-- Add "scoped" attribute to limit CSS to this component only -->
  170. <style lang="sass" scoped>
  171. @import '~@/styles/vars'
  172. .icoThings
  173.   width: 100%
  174.   max-width: 100%
  175.   overflow: hidden
  176.   display: flex
  177.   align-items: center
  178.   justify-content: flex-start
  179.   flex-direction: column
  180.   .icoThings-container
  181.     width: 100%
  182. .intro-text-container
  183.   margin-top: 8px
  184.   margin-bottom: 40px
  185.   .intro-text
  186.     display: inline-block
  187. .inventories-container
  188.   display: flex
  189.   align-items: flex-start
  190.   justify-content: center
  191.   width: 100%
  192.   padding-left: 3%
  193.   padding-right: 3%
  194.   box-sizing: border-box
  195.   padding-bottom: 20px
  196.   .thing
  197.     // max-width: 1000px
  198.   &.vertical
  199.     align-items: center
  200.     justify-content: flex-start
  201.     flex-direction: column
  202.     // padding-left: 0%
  203.     // padding-right: 0%
  204.     &.inventory-width
  205.       width: 50%
  206.       .inventory-mode
  207.         width: 100%
  208.     .thing
  209.       margin-bottom: 20px
  210.   &.maps-inventory-container
  211.     padding-left: 0%       
  212.     padding-right: 0%
  213.     padding-bottom: 100px      
  214.     .inventory-mode
  215.       width: 100%
  216.     .thing
  217.       max-width: 100%
  218.   &.no-padding
  219.     padding: 0%
  220. .uppercase
  221.   text-transform: uppercase
  222.  
  223. .capitalize
  224.   text-transform: capitalize
  225.  
  226. .inline
  227.   display: inline-block
  228.  
  229. ul
  230.   list-style-type: none
  231.   padding: 0
  232.  
  233.  
  234. li
  235.   display: inline-block
  236.   margin: 0 10px
  237.  
  238.  
  239. a
  240.   color: #42b983
  241.  
  242. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement