mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-12 13:40:19 +07:00
OPENIDE #163 Change external links
This commit is contained in:
4
CONTRIBUTING.md
Normal file
4
CONTRIBUTING.md
Normal file
@@ -0,0 +1,4 @@
|
||||
Contributing to OpenIDE
|
||||
===
|
||||
|
||||
Coming soon...
|
||||
@@ -35,14 +35,7 @@ class OpenIdeExternalResourceUrls : ExternalProductResourceUrls {
|
||||
Urls.newFromEncoded("https://download.openide.ru/ide").resolve(computePatchFileName(from, to))
|
||||
|
||||
override val bugReportUrl: ((String) -> Url)
|
||||
get() = { description ->
|
||||
Urls.newFromEncoded("https://youtrack.openide.ru/newissue").addParameters(mapOf(
|
||||
"project" to "12345",
|
||||
"clearDraft" to "true",
|
||||
"description" to description,
|
||||
"c" to "Affected versions: ${ApplicationInfo.getInstance().fullVersion}"
|
||||
))
|
||||
}
|
||||
get() = { Urls.newFromEncoded("https://gitflic.ru/project/openide/openide/issue/create") }
|
||||
|
||||
override val technicalSupportUrl: ((description: String) -> Url) = { productUrl.resolve("contacts") }
|
||||
|
||||
@@ -50,24 +43,27 @@ class OpenIdeExternalResourceUrls : ExternalProductResourceUrls {
|
||||
|
||||
override val downloadPageUrl = productUrl.resolve("download")
|
||||
|
||||
override val youTubeChannelUrl = Urls.newFromEncoded("https://www.youtube.com/openide")
|
||||
override val youTubeChannelUrl = Urls.newFromEncoded("https://www.youtube.com/@openide")
|
||||
|
||||
override val keyboardShortcutsPdfUrl: Url
|
||||
get() {
|
||||
val suffix = if (SystemInfo.isMac) "_Mac" else ""
|
||||
return productUrl.resolve("ide/docs/OpenIDE_ReferenceCard$suffix.pdf")
|
||||
}
|
||||
get() = productUrl
|
||||
//get() {
|
||||
// val suffix = if (SystemInfo.isMac) "_Mac" else ""
|
||||
// return productUrl.resolve("ide/docs/OpenIDE_ReferenceCard$suffix.pdf")
|
||||
//}
|
||||
|
||||
override val gettingStartedPageUrl = productUrl.resolve("ide/resources")
|
||||
override val gettingStartedPageUrl = productUrl
|
||||
//productUrl.resolve("ide/resources")
|
||||
|
||||
override val helpPageUrl: ((topicId: String) -> Url)
|
||||
get() = productUrl.resolve("help/ide/").let { baseUrl ->
|
||||
{ topicId ->
|
||||
baseUrl.resolve("${ApplicationInfo.getInstance().shortVersion}/").addParameters(mapOf(
|
||||
topicId to ""
|
||||
))
|
||||
}
|
||||
}
|
||||
get() = { productUrl }
|
||||
//get() = productUrl.resolve("help/ide/").let { baseUrl ->
|
||||
// { topicId ->
|
||||
// baseUrl.resolve("${ApplicationInfo.getInstance().shortVersion}/").addParameters(mapOf(
|
||||
// topicId to ""
|
||||
// ))
|
||||
// }
|
||||
//}
|
||||
|
||||
private fun computePatchFileName(from: BuildNumber, to: BuildNumber): String {
|
||||
val product = ApplicationInfo.getInstance().build.productCode
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package com.intellij.ide.actions
|
||||
|
||||
import com.intellij.ide.BrowserUtil
|
||||
@@ -13,6 +16,7 @@ import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.ui.MessageDialogBuilder
|
||||
import com.intellij.platform.ide.customization.ExternalProductResourceUrls
|
||||
import com.intellij.platform.ide.progress.withBackgroundProgress
|
||||
import com.jetbrains.rd.util.string.printToString
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
@@ -29,8 +33,8 @@ internal class ReportProblemAction : DumbAwareAction() {
|
||||
ExternalProductResourceUrls.getInstance().bugReportUrl?.let { url ->
|
||||
service<ReportFeedbackService>().coroutineScope.launch {
|
||||
withBackgroundProgress(project, IdeBundle.message("reportProblemAction.progress.title.submitting"), cancellable = true) {
|
||||
val description = getIssueDescription(project)
|
||||
BrowserUtil.browse(url(description).toExternalForm(), project)
|
||||
//val description = getIssueDescription(project)
|
||||
BrowserUtil.browse(url("").toExternalForm(), project)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@ class OpenIdeFeedbackReporter : FeedbackReporter {
|
||||
|
||||
override val destinationDescription = "openide.ru"
|
||||
|
||||
override fun feedbackFormUrl(description: String) = Urls.newFromEncoded("https://openide.ru/feedback")
|
||||
override fun feedbackFormUrl(description: String) = Urls.newFromEncoded("https://gitflic.ru/project/openide/openide")
|
||||
}
|
||||
@@ -19,13 +19,13 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Исходный код продукта доступен по адресу: <a href="">наш репозиторий</a>.
|
||||
Исходный код продукта доступен по адресу: <a href="https://gitflic.ru/project/openide/openide">наш репозиторий</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Дистрибутив OpenIDE включает в себя JetBrains Runtime, распространяемый по лицензии GPL v 2.0. Исходный код
|
||||
JetBrainsRuntime доступен по адресу:<br>
|
||||
<a href="">репозиторий</a>.
|
||||
<a href="https://gitflic.ru/project/openide/jbr">репозиторий</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@@ -53,13 +53,13 @@
|
||||
|
||||
<h2>УЧАСТИЕ В ПРОЕКТЕ</h2>
|
||||
<p>Мы приветствуем всех желающих внести свой вклад в развитие OpenIDE. Для участия в проекте вы можете:
|
||||
<p>1. Написать нам на <a href="mailto:xxx@xxx">xxx@xxx</a></p>
|
||||
<p>1. Написать нам на <a href="mailto:info@openide.ru">info@openide.ru</a></p>
|
||||
<p>2. Создать Pull Request в репозитории OpenIDE.</p>
|
||||
<p>Предлагаемые вам изменения должны соответствовать правилам, указанным в <a href="">ссылка на contributing.md</a></p>
|
||||
<p>Предлагаемые вам изменения должны соответствовать правилам, указанным в <a href="https://gitflic.ru/project/openide/openide/blob/?file=CONTRIBUTING.md">contributing.md</a></p>
|
||||
|
||||
<h2>ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ</h2>
|
||||
<p>
|
||||
Политику конфиденциальности можно найти на данном сайте, перейдя по <a href="">этой ссылке</a>
|
||||
Политику конфиденциальности можно найти на данном сайте, перейдя по <a href="https://openide.ru/privacy-policy">этой ссылке</a>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user