diff --git a/.gitignore b/.gitignore index 3321bd633..2f5969501 100644 --- a/.gitignore +++ b/.gitignore @@ -209,3 +209,6 @@ FakesAssemblies/ GeneratedArtifacts/ _Pvt_Extensions/ ModelManifest.xml + +# Greenshot credentials files +*.credentials.cs \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index b1833a20e..5008ba798 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -39,7 +39,7 @@ false false - + DEBUG;TRACE @@ -63,8 +63,59 @@ + + + $(Box_ClientId) + + + $(Box_ClientSecret) + + + $(DropBox_ClientId) + + + $(DropBox_ClientSecret) + + + $(Flickr_ClientId) + + + $(Flickr_ClientSecret) + + + $(Imgur_ClientId) + + + $(Imgur_ClientSecret) + + + $(Photobucket_ClientId) + + + $(Photobucket_ClientSecret) + + + $(Picasa_ClientId) + + + $(Picasa_ClientSecret) + + + + + + + + + + + + + + . + */ + +namespace GreenshotBoxPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for Box integration. + /// You can set your own values here + /// + public static class BoxCredentials { + public static string ClientId = "${Box_ClientId}"; + public static string ClientSecret = "${Box_ClientSecret}"; + } +} diff --git a/GreenshotDropboxPlugin/DropBoxCredentials.cs b/GreenshotDropboxPlugin/GreenshotDropboxPlugin.Credentials.template similarity index 86% rename from GreenshotDropboxPlugin/DropBoxCredentials.cs rename to GreenshotDropboxPlugin/GreenshotDropboxPlugin.Credentials.template index a96f154c0..3baf9fb94 100644 --- a/GreenshotDropboxPlugin/DropBoxCredentials.cs +++ b/GreenshotDropboxPlugin/GreenshotDropboxPlugin.Credentials.template @@ -1,31 +1,31 @@ -/* - * Greenshot - a free and open source screenshot tool - * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom - * - * For more information see: http://getgreenshot.org/ - * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot - * - * 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 1 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 . - */ - -namespace GreenshotDropboxPlugin { - /// - /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. - /// You can set your own values here - /// - public static class DropBoxCredentials { - public static string CONSUMER_KEY = "@credentials_dropbox_consumer_key@"; - public static string CONSUMER_SECRET = "@credentials_dropbox_consumer_secret@"; - } -} +/* + * Greenshot - a free and open source screenshot tool + * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom + * + * For more information see: http://getgreenshot.org/ + * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot + * + * 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 1 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 . + */ + +namespace GreenshotDropboxPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. + /// You can set your own values here + /// + public static class DropBoxCredentials { + public static string CONSUMER_KEY = "${DropBox_ClientId}"; + public static string CONSUMER_SECRET = "${DropBox_ClientSecret}"; + } +} diff --git a/GreenshotFlickrPlugin/FlickrCredentials.cs b/GreenshotFlickrPlugin/GreenshotFlickrPlugin.Credentials.template similarity index 85% rename from GreenshotFlickrPlugin/FlickrCredentials.cs rename to GreenshotFlickrPlugin/GreenshotFlickrPlugin.Credentials.template index abc1c3f11..865c9e3e5 100644 --- a/GreenshotFlickrPlugin/FlickrCredentials.cs +++ b/GreenshotFlickrPlugin/GreenshotFlickrPlugin.Credentials.template @@ -1,31 +1,31 @@ -/* - * Greenshot - a free and open source screenshot tool - * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom - * - * For more information see: http://getgreenshot.org/ - * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot - * - * 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 1 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 . - */ - -namespace GreenshotFlickrPlugin { - /// - /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. - /// You can set your own values here - /// - public static class FlickrCredentials { - public static string ConsumerKey = "@credentials_flickr_consumer_key@"; - public static string ConsumerSecret = "@credentials_flickr_consumer_secret@"; - } -} +/* + * Greenshot - a free and open source screenshot tool + * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom + * + * For more information see: http://getgreenshot.org/ + * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot + * + * 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 1 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 . + */ + +namespace GreenshotFlickrPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. + /// You can set your own values here + /// + public static class FlickrCredentials { + public static string ConsumerKey = "${Flickr_ClientId}"; + public static string ConsumerSecret = "${Flickr_ClientSecret}"; + } +} diff --git a/GreenshotImgurPlugin/ImgurCredentials.cs b/GreenshotImgurPlugin/GreenshotImgurPlugin.Credentials.template similarity index 85% rename from GreenshotImgurPlugin/ImgurCredentials.cs rename to GreenshotImgurPlugin/GreenshotImgurPlugin.Credentials.template index 2b16f2d45..ea6d7c5ca 100644 --- a/GreenshotImgurPlugin/ImgurCredentials.cs +++ b/GreenshotImgurPlugin/GreenshotImgurPlugin.Credentials.template @@ -1,31 +1,31 @@ -/* - * Greenshot - a free and open source screenshot tool - * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom - * - * For more information see: http://getgreenshot.org/ - * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot - * - * 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 1 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 . - */ - -namespace GreenshotImgurPlugin { - /// - /// This class is merely a placeholder for the file keeping the API key and secret for imgur integration. - /// You can set your own values here - /// - public static class ImgurCredentials { - public static string CONSUMER_KEY = "@credentials_imgur_consumer_key@"; - public static string CONSUMER_SECRET = "@credentials_imgur_consumer_secret@"; - } -} +/* + * Greenshot - a free and open source screenshot tool + * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom + * + * For more information see: http://getgreenshot.org/ + * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot + * + * 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 1 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 . + */ + +namespace GreenshotImgurPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for imgur integration. + /// You can set your own values here + /// + public static class ImgurCredentials { + public static string CONSUMER_KEY = "${Imgur_ClientId}"; + public static string CONSUMER_SECRET = "${Imgur_ClientSecret}"; + } +} diff --git a/GreenshotPhotobucketPlugin/PhotobucketCredentials.cs b/GreenshotPhotobucketPlugin/GreenshotPhotobucketPlugin.Credentials.template similarity index 84% rename from GreenshotPhotobucketPlugin/PhotobucketCredentials.cs rename to GreenshotPhotobucketPlugin/GreenshotPhotobucketPlugin.Credentials.template index e37c5533d..20a033ea8 100644 --- a/GreenshotPhotobucketPlugin/PhotobucketCredentials.cs +++ b/GreenshotPhotobucketPlugin/GreenshotPhotobucketPlugin.Credentials.template @@ -1,31 +1,31 @@ -/* - * Greenshot - a free and open source screenshot tool - * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom - * - * For more information see: http://getgreenshot.org/ - * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot - * - * 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 1 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 . - */ - -namespace GreenshotPhotobucketPlugin { - /// - /// This class is merely a placeholder for the file keeping the API key and secret for photobucket integration. - /// You can set your own values here - /// - public static class PhotobucketCredentials { - public static string ConsumerKey = "@credentials_photobucket_consumer_key@"; - public static string ConsumerSecret = "@credentials_photobucket_consumer_secret@"; - } -} +/* + * Greenshot - a free and open source screenshot tool + * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom + * + * For more information see: http://getgreenshot.org/ + * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot + * + * 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 1 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 . + */ + +namespace GreenshotPhotobucketPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for photobucket integration. + /// You can set your own values here + /// + public static class PhotobucketCredentials { + public static string ConsumerKey = "${Photobucket_ClientId}"; + public static string ConsumerSecret = "${Photobucket_ClientSecret}"; + } +} diff --git a/GreenshotPicasaPlugin/PicasaCredentials.cs b/GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template similarity index 85% rename from GreenshotPicasaPlugin/PicasaCredentials.cs rename to GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template index 88a7769f1..5cb7a2aac 100644 --- a/GreenshotPicasaPlugin/PicasaCredentials.cs +++ b/GreenshotPicasaPlugin/GreenshotPicasaPlugin.Credentials.template @@ -1,31 +1,31 @@ -/* - * Greenshot - a free and open source screenshot tool - * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom - * - * For more information see: http://getgreenshot.org/ - * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot - * - * 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 1 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 . - */ - -namespace GreenshotPicasaPlugin { - /// - /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. - /// You can set your own values here - /// - public static class PicasaCredentials { - public static string ClientId = "@credentials_picasa_consumer_key@"; - public static string ClientSecret = "@credentials_picasa_consumer_secret@"; - } -} +/* + * Greenshot - a free and open source screenshot tool + * Copyright (C) 2007-2020 Thomas Braun, Jens Klingen, Robin Krom + * + * For more information see: http://getgreenshot.org/ + * The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot + * + * 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 1 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 . + */ + +namespace GreenshotPicasaPlugin { + /// + /// This class is merely a placeholder for the file keeping the API key and secret for dropbox integration. + /// You can set your own values here + /// + public static class PicasaCredentials { + public static string ClientId = "${Picasa_ClientId}"; + public static string ClientSecret = "${Picasa_ClientSecret}"; + } +}