Archive: ComponentOwl Rails app, DB backups, go redirect script

This commit is contained in:
EC2 Default User
2026-03-23 16:20:05 +00:00
commit 50037f386f
218 changed files with 14558 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<div class="subpage sitemap-content">
<h1>ComponentOwl.com Sitemap</h1>
<h2><%= t('txt.componentowl_long') %>&nbsp;/&nbsp;</h2>
<ul class="common top">
<li><strong><%= link(root_path, t('txt.menu.home')) %></strong></li>
<% Product.all_ordered.each do |product| %>
<li>
<strong><%= link(product_path(product), product.name) %></strong>
<% if product.product_pages.count > 1 %>
<ul class="common">
<% product.product_pages.root.cute_ordered.each do |product_page| %>
<% unless pricing_licensing?(product_page) %>
<li>
<%= link(product_page_path(product, product_page), product_page.name) %>
<% if product_page.children.any? %>
<ul class="common">
<% product_page.children.each do |child_product_page| %>
<li><%= link(product_page_path(product, child_product_page), child_product_page.name) %></li>
<% end %>
</ul>
<% end %>
</li>
<% end %>
<% end %>
</ul>
<% end %>
<% end %>
</li>
<% Product.all_ordered.non_free.each do |product| %>
<li>
<strong><%= link(order_path(product), "Pricing &amp; Licensing for #{product.name}") %></strong>
</li>
<% end %>
<li>
<strong><%= link("/support", t('txt.menu.support')) %></strong>
</li>
<li><strong><%= link(latest_comic, t('txt.menu.comics')) %></strong></li>
<li><strong><%= link(blog_url, t('txt.menu.blog')) %></strong></li>
<li><strong><%= link(about_path, t('txt.menu.about')) %></strong></li>
</ul>
<ul class="common top">
<li><strong><%= link("/quick-start-guide/better-listview/index.html", "Quick Start Guide for #{featured_product.name}") %></strong></li>
</ul>
<ul class="common top">
<li><%= link(download_path(featured_product), t('txt.download.thanks_general')) %></li>
<li><%= link(disclaimer_path, t('txt.footer.disclaimer')) %></li>
<li><%= link(privacy_policy_path, t('txt.footer.privacy_policy')) %></li>
</ul>
</div>

View File

@@ -0,0 +1,111 @@
xml.instruct! :xml, :version => "1.0"
xml.urlset :xmlns => "http://www.sitemaps.org/schemas/sitemap/0.9" do
# /
xml.url do
xml.loc root_url
xml.lastmod Date.today
xml.changefreq "daily"
xml.priority "0.9"
end
Product.all_ordered.each do |product|
# product pages
xml.url do
xml.loc product_url(product)
xml.lastmod product.last_updated_page.updated_at.to_date
xml.changefreq "weekly"
xml.priority "1.0"
end
for product_page in product.product_pages
xml.url do
xml.loc product_page_url(product, product_page)
xml.lastmod product_page.updated_at.to_date
xml.changefreq "weekly"
xml.priority "1.0"
end unless product_page == product.default_page || pricing_licensing?(product_page)
end
end
Product.all_ordered.non_free.each do |product|
xml.url do
xml.loc order_url(product)
xml.changefreq "weekly"
xml.priority "0.8"
end
end
# download pages
xml.url do
xml.loc download_url(featured_product)
xml.changefreq "weekly"
xml.priority "0.7"
end
# /support
xml.url do
xml.loc url_for(:controller => "support", :only_path => false)
xml.changefreq "weekly"
end
# /comics
xml.url do
xml.loc url_for(:controller => "comics", :only_path => false)
xml.changefreq "daily"
xml.lastmod latest_comic.publish_on
end
# /comics/:id
Comic.published.reverse_ordered.each do |comic|
xml.url do
xml.loc comic_url(comic)
xml.changefreq "monthly"
xml.priority "0.5"
end
end
# /blog
xml.url do
xml.loc blog_url
xml.lastmod Date.today
xml.changefreq "daily"
xml.priority "0.6"
end
# /about-us
xml.url do
xml.loc about_url
xml.changefreq "weekly"
end
# /quick-start-guide/better-listview/index.html
xml.url do
xml.loc "#{root_url}/quick-start-guide/better-listview/index.html"
xml.changefreq "weekly"
end
# /sitemap
xml.url do
xml.loc sitemap_url
xml.changefreq "weekly"
end
# /disclaimer
xml.url do
xml.loc disclaimer_url
xml.changefreq "monthly"
xml.priority "0.1"
end
# /privacy-policy
xml.url do
xml.loc privacy_policy_url
xml.changefreq "monthly"
xml.priority "0.1"
end
end