-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some reorganizing. hope this doesn't cause i18n issues
- Loading branch information
Showing
6 changed files
with
376 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
PKG_NAME = gnome-shell-extension-openweather | ||
UUID = [email protected] | ||
BASE_MODULES = metadata.json COPYING AUTHORS | ||
SRC_MODULES = extension.js openweathermap.js prefs.js stylesheet.css | ||
PREFS_MODULES = generalPage.js layoutPage.js locationsPage.js aboutPage.js | ||
SRC_MODULES = extension.js openweathermap.js prefs.js stylesheet.css constants.js | ||
PREFS_MODULES = generalPage.js layoutPage.js locationsPage.js aboutPage.js searchResultsWindow.js | ||
EXTRA_DIRECTORIES = media | ||
TOLOCALIZE = $(addprefix src/, extension.js openweathermap.js prefs.js) \ | ||
TOLOCALIZE = $(addprefix src/, extension.js openweathermap.js prefs.js constants.js) \ | ||
$(addprefix src/preferences/, $(PREFS_MODULES)) \ | ||
schemas/org.gnome.shell.extensions.openweather.gschema.xml | ||
MSGSRC = $(wildcard po/*.po) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const WeatherProvider = { | ||
OPENWEATHERMAP: 0, | ||
}; | ||
|
||
const WeatherUnits = { | ||
CELSIUS: 0, | ||
FAHRENHEIT: 1, | ||
KELVIN: 2, | ||
RANKINE: 3, | ||
REAUMUR: 4, | ||
ROEMER: 5, | ||
DELISLE: 6, | ||
NEWTON: 7, | ||
}; | ||
|
||
const WeatherWindSpeedUnits = { | ||
KPH: 0, | ||
MPH: 1, | ||
MPS: 2, | ||
KNOTS: 3, | ||
FPS: 4, | ||
BEAUFORT: 5, | ||
}; | ||
|
||
const WeatherPressureUnits = { | ||
HPA: 0, | ||
INHG: 1, | ||
BAR: 2, | ||
PA: 3, | ||
KPA: 4, | ||
ATM: 5, | ||
AT: 6, | ||
TORR: 7, | ||
PSI: 8, | ||
MMHG: 9, | ||
MBAR: 10, | ||
}; | ||
|
||
const WeatherPosition = { | ||
CENTER: 0, | ||
RIGHT: 1, | ||
LEFT: 2, | ||
}; | ||
|
||
// Keep enums in sync with GSettings schemas | ||
const GeolocationProvider = { | ||
OPENSTREETMAPS: 0, | ||
GEOCODE: 1, | ||
MAPQUEST: 2, | ||
}; | ||
|
||
export { | ||
WeatherProvider, | ||
WeatherUnits, | ||
WeatherWindSpeedUnits, | ||
WeatherPressureUnits, | ||
WeatherPosition, | ||
GeolocationProvider, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.