chore: repo refresh 2020-10 #74

Merged
kiyui merged 4 commits from dafne/repo-refresh into master 1 year ago
  1. 3
      .github/ISSUE_TEMPLATE/bug_report.md
  2. 2
      .github/ISSUE_TEMPLATE/feature_request.md
  3. 16
      CONTRIBUTING.md
  4. 1
      PULL_REQUEST_TEMPLATE.md
  5. 19
      night-light-slider.timur@linux.com/convenience.js
  6. 21
      night-light-slider.timur@linux.com/extension.js
  7. 2
      night-light-slider.timur@linux.com/org.gnome.shell.extensions.nightlightslider.data.gresource.xml
  8. 21
      night-light-slider.timur@linux.com/prefs.js
  9. 0
      night-light-slider.timur@linux.com/ui/prefs.ui

3
.github/ISSUE_TEMPLATE/bug_report.md

@ -8,11 +8,14 @@ assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**System Information:**
- OS:
- GNOME Version:

2
.github/ISSUE_TEMPLATE/feature_request.md

@ -8,8 +8,10 @@ assignees: ''
---
**Checklist:**
- [ ] I realise this extension extends on the existing GNOME night light feature and can only control the temperature.
- [ ] I have gone through the extension settings to check that this feature is available.
**Feature Description:**
Let me know if this feature request is related to an issue you may be facing.

16
CONTRIBUTING.md

@ -1,6 +1,6 @@
## Contributing
- Read the CODE_OF_CONDUCT
- Read the [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md)
- Speak in English, if possible
## Bug Reports, Feature Requests, & Questions
@ -9,6 +9,14 @@
## Code
- Run `yarn install` to set up the Git hooks
- Lint your code with [Prettier](https://prettier.io/)
- You agree that your code will be distributed under the [GPL 2](LICENSE)
- Run `yarn install` to set up the Git hooks to perform automated linting
- Otherwise, lint your code manually with [eslint](https://eslint.org/)
- You agree that your code will be distributed under the [GPL-2.0-or-later](LICENSE)
## Building
- If you do not already have the extension installed locally, you can symlink it with `yarn build:link`
- Run `yarn build:resources` to compile the resources
- Run `yarn build:schema` to compile the resources
- Run `yarn build` to produce a distribution archive
- View the script in `package.json` for building without `yarn`

1
PULL_REQUEST_TEMPLATE.md

@ -1,6 +1,7 @@
This fixes issue... This introduces the feature detailed in... etc.
**Changes made:**
- Converted codebase to Python
- Changed license to BSD
- Included 900 more NPM modules

19
night-light-slider.timur@linux.com/convenience.js

@ -1,4 +1,23 @@
/* convenience.js
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/* exported debounce setInterval */
const {GLib} = imports.gi;
function debounce(func, wait, options = {priority: GLib.PRIORITY_DEFAULT}) {

21
night-light-slider.timur@linux.com/extension.js

@ -1,5 +1,22 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported Indicator init */
/* extension.js
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/* exported init */
const {Gio, GLib, GObject, St} = imports.gi;

2
night-light-slider.timur@linux.com/org.gnome.shell.extensions.nightlightslider.data.gresource.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/shell/extensions/nightlightslider">
<file>prefs.ui</file>
<file>ui/prefs.ui</file>
</gresource>
</gresources>

21
night-light-slider.timur@linux.com/prefs.js

@ -1,4 +1,23 @@
/* prefs.js
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/* exported buildPrefsWidget init */
imports.gi.versions.Gtk = '3.0';
imports.gi.versions.Handy = '0.0';
const {GObject, Gio, Gtk, Handy} = imports.gi;
@ -16,7 +35,7 @@ const COLOR_SCHEMA = 'org.gnome.settings-daemon.plugins.color';
var NightLightExtensionPrefs = GObject.registerClass({
GTypeName: 'NightLightExtensionPrefs',
Template: 'resource:///org/gnome/shell/extensions/nightlightslider/prefs.ui',
Template: 'resource:///org/gnome/shell/extensions/nightlightslider/ui/prefs.ui',
InternalChildren: [
/* Night Light status infobar */
'infobar_status', 'btn_enable_night_light',

0
night-light-slider.timur@linux.com/prefs.ui → night-light-slider.timur@linux.com/ui/prefs.ui

Loading…
Cancel
Save