Skip to content

Commit

Permalink
fixup! Rewrite settings in vue
Browse files Browse the repository at this point in the history
  • Loading branch information
artonge committed Jun 30, 2021
1 parent 61784f2 commit 0f6ceaa
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
35 changes: 35 additions & 0 deletions src/models/ActivitySettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* @copyright Copyright (c) 2021 Louis Chemineau <louis@chmn.me>
*
* @author Louis Chemineau <louis@chmn.me>
*
* @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/>.
*
*/

/**
*
* @typedef {Object} ActivityGroup
* @property {string} name - The name of the activity group
* @property {Object.<string, ActivityType>} activities - List off activities
**/

/**
*
* @typedef {Object} ActivityType
* @property {string} desc - The activity's description
* @property {Array<string>} methods - List of available methods to send a notification
**/
14 changes: 0 additions & 14 deletions src/settings-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@ import logger from './logger'

Vue.use(Vuex)

/**
*
* @typedef {Object} ActivityGroup
* @property {string} name - The name of the activity group
* @property {Object.<string, Activity>} activities - List off activities
**/

/**
*
* @typedef {Object} Activity
* @property {string} desc - The activity's description
* @property {Array<string>} methods - List of available methods to send a notification
**/

/**
*
* @typedef {Object} SettingsState
Expand Down

0 comments on commit 0f6ceaa

Please sign in to comment.