Blame view

src/pages/notification.vue 2.49 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  <template>
   <v-app id="login">
f7979ec1a   Neeraj Sharma   add seach in heal...
3
4
      <app-toolbar class="app--toolbar">
        </app-toolbar>
04e3fbc56   Jatinder Singh   minor fix
5
      <v-toolbar color="white">
dd4ecae1d   Neeraj Sharma   search very fast ...
6
        <h4 class="text-lg-left text"><b>Push Notification</b></h4>
93a68cfa1   Jatinder Singh   first commit
7
        <v-spacer></v-spacer>
dd4ecae1d   Neeraj Sharma   search very fast ...
8
        <v-flex xs5 sm4 class="searchIcon">
250d1e021   Jatinder Singh   datatable change
9
        <v-text-field justify-right
93a68cfa1   Jatinder Singh   first commit
10
11
12
13
14
          prepend-icon="search"
          v-model="search"
          label="Find your users"
          single-line
          hide-details
4413a8d93   Jatinder Singh   changes
15
          color="black"
dd4ecae1d   Neeraj Sharma   search very fast ...
16
          class="mb-4"
5ac5570a9   Jatinder Singh   datatable changes
17
        > 
93a68cfa1   Jatinder Singh   first commit
18
      </v-text-field>
4413a8d93   Jatinder Singh   changes
19
20
      </v-flex>
      </v-toolbar>
93a68cfa1   Jatinder Singh   first commit
21
22
23
24
      <v-card>
      <v-card-text>
      <v-flex xs12>
      <v-textarea
defcc5da3   Jatinder Singh   report page
25
          v-model="SendNotificationcredentials.message"
93a68cfa1   Jatinder Singh   first commit
26
27
28
29
30
31
32
33
          solo
          name="input-7-4"
          label="Hello Users!">
      </v-textarea>
      </v-flex>
      </v-card-text>
      <v-flex text-xs-right>
      <div>
dd4ecae1d   Neeraj Sharma   search very fast ...
34
      <v-btn large class="text-lg-right mr-4" :disabled="!selected[0]" @click="send" color="black" id="active">send</v-btn>
93a68cfa1   Jatinder Singh   first commit
35
36
      </div></v-flex>
      <v-container grid-list-xl>
4413a8d93   Jatinder Singh   changes
37
      <v-card>
93a68cfa1   Jatinder Singh   first commit
38
39
40
41
42
      <v-data-table
        :headers="headers"
        :items="desserts"
        :search="search"
        v-model="selected"
ab72cb628   Jatinder Singh   report changes
43
        item-key="Name"
93a68cfa1   Jatinder Singh   first commit
44
        select-all
269061695   Jatinder Singh   changes
45
        class="text-xs-left"
5ac5570a9   Jatinder Singh   datatable changes
46
        :pagination.sync="pagination"
93a68cfa1   Jatinder Singh   first commit
47
      >
93a68cfa1   Jatinder Singh   first commit
48
      <template slot="items" slot-scope="props">
4413a8d93   Jatinder Singh   changes
49
        <th>
93a68cfa1   Jatinder Singh   first commit
50
51
52
53
54
          <v-checkbox
            v-model="props.selected"
            primary
            hide-details
          ></v-checkbox>
4413a8d93   Jatinder Singh   changes
55
        </th>
ab72cb628   Jatinder Singh   report changes
56
        <td>{{ props.item.Name }}</td>
93a68cfa1   Jatinder Singh   first commit
57
58
      </template>
      </v-data-table>
4413a8d93   Jatinder Singh   changes
59
        </v-card>
93a68cfa1   Jatinder Singh   first commit
60
61
62
63
64
      </v-container>
      </v-card>
   </v-app>
  </template>
  <script>
e173bab21   Jatinder Singh   api
65
  import axios from 'axios';
f7979ec1a   Neeraj Sharma   add seach in heal...
66
  import AppToolbar from '@/components/AppToolbar';
93a68cfa1   Jatinder Singh   first commit
67
  export default {
f7979ec1a   Neeraj Sharma   add seach in heal...
68
69
70
    components: {
      AppToolbar,
    },
93a68cfa1   Jatinder Singh   first commit
71
72
    data () {
      return {
defcc5da3   Jatinder Singh   report page
73
        message: '',
93a68cfa1   Jatinder Singh   first commit
74
75
        search: '',
        selected: [],
defcc5da3   Jatinder Singh   report page
76
        SendNotificationcredentials: {},
5ac5570a9   Jatinder Singh   datatable changes
77
78
79
        pagination: {
          rowsPerPage: 10,
        },
93a68cfa1   Jatinder Singh   first commit
80
81
82
83
84
        headers: [
          {
            text: 'User List',
            align: 'left',
            sortable: false,
4413a8d93   Jatinder Singh   changes
85
        
93a68cfa1   Jatinder Singh   first commit
86
          },
93a68cfa1   Jatinder Singh   first commit
87
88
89
        ],
        desserts: [
          {
ab72cb628   Jatinder Singh   report changes
90
            Name: 'ajay',
4413a8d93   Jatinder Singh   changes
91
92
          },
          {
ab72cb628   Jatinder Singh   report changes
93
            Name: 'amrit',
4413a8d93   Jatinder Singh   changes
94
95
          },
          {
ab72cb628   Jatinder Singh   report changes
96
            Name: 'Disant',
4413a8d93   Jatinder Singh   changes
97
98
          },
          {
ab72cb628   Jatinder Singh   report changes
99
            Name: 'Pardeep',
5ac5570a9   Jatinder Singh   datatable changes
100
          }
93a68cfa1   Jatinder Singh   first commit
101
102
        ]
      };
4413a8d93   Jatinder Singh   changes
103
104
    },
    methods: {
defcc5da3   Jatinder Singh   report page
105
106
107
      send () {
        console.log('=clicked==', this.SendNotificationcredentials);
      }
93a68cfa1   Jatinder Singh   first commit
108
109
    }
  };
8fc85e8ec   Jatinder Singh   data table changes
110
  </script>
09f34e0c8   Jatinder Singh   notification page
111
112
113
114
  <style>
  #active{
   color:white;
  }
dd4ecae1d   Neeraj Sharma   search very fast ...
115
116
117
118
119
120
121
122
123
  @media screen and (max-width: 769px){
  .text{
    font-size: 15px;
  }
  .searchIcon .v-icon {
      font-size: 20px;
      margin-left: 20px;
  }
  }
f42c1d9c9   Neeraj Sharma   something change ...
124
  /* .v-btn--large {
09f34e0c8   Jatinder Singh   notification page
125
  padding: 0 50px;
f42c1d9c9   Neeraj Sharma   something change ...
126
  } */
09f34e0c8   Jatinder Singh   notification page
127
  </style>